Function at 0x404ee0
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549cf8
mov eax, dword fs:[0]
push eax
mov eax, 0x1ac0
call fcn.00531c50
mov eax, dword [0x5aaef0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1a8c], eax
push 0xff
xor edi, edi
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x1a84], 4
lea eax, [ebp - 0x20f]
mov dword [ebp - 0x1a88], ebx
push edi
push eax
mov dword [ebp - 0x1a80], ebx
mov byte [ebp - 0x210], bl
call fcn.00531650
push 0x7f
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
push edi
push eax
call fcn.00531650
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], bl
push edi
push eax
call fcn.00531650
push 0x823
lea eax, [ebp - 0x1257]
mov byte [ebp - 0x1258], bl
push edi
push eax
call fcn.00531650
push 0x823
lea eax, [ebp - 0xa33]
mov byte [ebp - 0xa34], bl
push edi
push eax
call fcn.00531650
push 0x38
lea eax, [ebp - 0x1ac8]
push edi
push eax
call fcn.00531650
lea eax, [ebp - 0x210]
mov dword [ebp - 0x1acc], 0x3c
mov dword [ebp - 0x1abc], eax
lea ecx, [ebp - 0x1acc]
add esp, 0x48
mov dword [ebp - 0x1ab8], pe_nt_image_headers32
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp - 0x110]
mov dword [ebp - 0x1ab0], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x1aa8], eax
lea eax, [ebp - 0x1258]
push ecx
mov dword [ebp - 0x1aa0], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push edi
push edi
push eax
mov dword [ebp - 0x1aac], 0x80
mov dword [ebp - 0x1aa4], 0x80
mov dword [ebp - 0x1a9c], 0x824
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x4051c3
cmp dword [ebp - 0x1ac0], 3
jne 0x4051c3
push edi
push edi
push edi
push edi
push str.down
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x4051c3
push edi
push edi
push 3
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x1ab4]
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x1a88], esi
test esi, esi
je 0x4051c3
cmp dword [ebp - 0x1a9c], edi
je 0x4050c6
mov ecx, dword [ebp - 0x1aa0]
lea edx, [ebp - 0xa34]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4050b7
jmp 0x4050d2
mov eax, 0x2f
mov word [ebp - 0xa34], ax
push 0
push 0x80200000
push 0
push 0x55ae30
push str.HTTP_1.1
lea eax, [ebp - 0xa34]
push eax
push str.HEAD
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
push 0
mov edi, eax
mov dword [ebp - 0x1a80], 0
push 0
push edi
mov dword [ebp - 0x1a84], 4
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4051c3
push 0
lea eax, [ebp - 0x1a84]
mov dword [ebp - 0x1a80], 0
push eax
lea eax, [ebp - 0x1a80]
mov dword [ebp - 0x1a84], 4
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov esi, eax
test esi, esi
je 0x4051c5
mov eax, dword [ebp - 0x1a80]
cmp eax, 0xc8
je 0x4051c3
cmp eax, 0x12e
jne 0x4051c3
push 0x823
lea eax, [ebp - 0x1a7b]
mov byte [ebp - 0x1a7c], 0
push 0
push eax
call fcn.00531650
add esp, 0xc
mov dword [ebp - 0x1a90], 0x824
lea eax, [ebp - 0x1a90]
push 0
push eax
lea eax, [ebp - 0x1a7c]
push eax
push 0x21
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [ebp - 0x1a8c]
lea eax, [ebp - 0x1a7c]
push eax
call fcn.00403790
jmp 0x4051c5
xor esi, esi
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4051de
push edi
call eax
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1a88]
test ecx, ecx
je 0x4051eb
push ecx
call eax
test ebx, ebx
je 0x4051f6
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x405207
push dword [ebp + 8]
call fcn.0040b2d3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052fe70
mov esp, ebp
pop ebp
ret