Function at 0x40e397
Capabilities:
Check http status code
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0xc], ebx
call fcn.0040eb89
test eax, eax
jne 0x40e3bf
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001001
jmp 0x40e6f4
mov ecx, ebx
call fcn.0040deed
push dword [ebp + 0xc]
lea ecx, [ebx + 0x1c]
push dword [ebx + 0x1148]
call fcn.0040e859
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x40e3ed
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001002
jmp 0x40e6f4
lea eax, [ebp - 0x498]
push 0x400
push eax
push dword [ebp + 0xc]
call fcn.0040ecba
add esp, 0xc
test eax, eax
jne 0x40e416
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x2000100a
jmp 0x40e6f4
push edi
push 0x80400000
push edi
push 0x437ea8
lea eax, [ebp - 0x498]
push edi
push eax
push edi
push esi
call dword [0x442518]
mov edi, eax
test edi, edi
jne 0x40e446
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001005
jmp 0x40e6f4
push edi
mov ecx, ebx
call fcn.0040dfb3
push edi
mov ecx, ebx
call fcn.0040e06f
and dword [ebp - 0x10], 0
and byte [ebp + 0xc], 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push edi
call fcn.0040f20e
push 0x18
call fcn.00421c57
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
je 0x40e597
push 0x10
lea eax, [esi + 4]
push dword [ebp + 8]
mov dword [esi], edi
push eax
call fcn.004208c0
and byte [esi + 0x13], bl
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 0x40e133
push ebx
push ebx
call fcn.0042281e
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x40e58c
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40e6be
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40e5ae
mov eax, dword [ebp - 0x14]
cmp eax, 0x2ee2
je 0x40e5b9
cmp eax, 0x2efd
je 0x40e5c4
cmp eax, 2
jne 0x40e53b
cmp dword [ebp - 0x10], 0
jne 0x40e51c
push 1
pop esi
push esi
call fcn.0040e6fd
test eax, eax
pop ecx
jne 0x40e5cf
mov dword [ebp - 0x10], esi
jmp 0x40e45e
push 0
push dword [ebp + 0x10]
push dword [0x442464]
call dword [0x4424f4]
cmp eax, 1
jne 0x40e5cf
jmp 0x40e45e
test eax, eax
jne 0x40e59d
push 4
mov ebx, 0x20000013
pop esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
mov dword [ebp - 4], esi
call dword [0x442514]
test eax, eax
je 0x40e6ac
cmp dword [ebp - 8], 0x197
jne 0x40e570
mov byte [ebp + 0xc], 1
push 0
push 7
push 0
push edi
push dword [ebp + 0x10]
call dword [0x4424f8]
cmp eax, 0x2f00
jne 0x40e5e4
jmp 0x40e45e
test esi, esi
je 0x40e597
push esi
call fcn.00421dfa
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push edi
call dword [0x442508]
jmp 0x40e6f4
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001007
jmp 0x40e5a2
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001006
jmp 0x40e5a2
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001003
jmp 0x40e5a2
push edi
call dword [0x442508]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001009
jmp 0x40e6f4
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 8]
push eax
push ebx
push edi
mov dword [ebp - 4], esi
call dword [0x442514]
test eax, eax
je 0x40e6ac
cmp dword [ebp - 8], 0xc8
je 0x40e62c
cmp dword [ebp - 8], 0x130
je 0x40e62c
push edi
call dword [0x442508]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
add eax, 0x20007000
mov dword [ecx], eax
jmp 0x40e6f4
cmp byte [ebp + 0xc], 0
mov esi, 0x80
jne 0x40e671
push esi
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00420b00
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x98]
push eax
push 0x2b
push edi
call dword [0x4424ec]
lea eax, [ebp - 0x98]
push eax
call fcn.00420cc0
test eax, eax
pop ecx
jbe 0x40e6a2
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
lea eax, [ebx + 0x1038]
push eax
push 0x2b
push edi
call dword [0x4424ec]
lea eax, [ebp - 4]
add ebx, 0x10b8
push eax
push ebx
push 0x2c
push edi
mov dword [ebp - 4], esi
call dword [0x4424ec]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
mov eax, edi
jmp 0x40e6f6
push edi
call dword [0x442508]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001004
jmp 0x40e6f4
cmp eax, 0x102
push ebx
jne 0x40e6de
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [0x442508]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001006
jmp 0x40e6f4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [0x442508]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x20001008
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14