Function at 0x4036d0
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 0x54b608
mov eax, dword fs:[0]
push eax
mov eax, 0x1ac0
call fcn.0052c730
mov eax, dword [0x5acf20]
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.0052cdb0
push 0x7f
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
push edi
push eax
call fcn.0052cdb0
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], bl
push edi
push eax
call fcn.0052cdb0
push 0x823
lea eax, [ebp - 0x1257]
mov byte [ebp - 0x1258], bl
push edi
push eax
call fcn.0052cdb0
push 0x823
lea eax, [ebp - 0xa33]
mov byte [ebp - 0xa34], bl
push edi
push eax
call fcn.0052cdb0
push 0x38
lea eax, [ebp - 0x1ac8]
push edi
push eax
call fcn.0052cdb0
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], 0x100
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 0x4039b3
cmp dword [ebp - 0x1ac0], 3
jne 0x4039b3
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 0x4039b3
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 0x4039b3
cmp dword [ebp - 0x1a9c], edi
je 0x4038b6
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 0x4038a7
jmp 0x4038c2
mov eax, 0x2f
mov word [ebp - 0xa34], ax
push 0
push 0x80200000
push 0
push 0x55bce0
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 0x4039b3
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 0x4039b5
mov eax, dword [ebp - 0x1a80]
cmp eax, 0xc8
je 0x4039b3
cmp eax, 0x12e
jne 0x4039b3
push 0x823
lea eax, [ebp - 0x1a7b]
mov byte [ebp - 0x1a7c], 0
push 0
push eax
call fcn.0052cdb0
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.00402500
jmp 0x4039b5
xor esi, esi
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4039ce
push edi
call eax
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x1a88]
test ecx, ecx
je 0x4039db
push ecx
call eax
test ebx, ebx
je 0x4039e6
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x4039f7
push dword [ebp + 8]
call fcn.00406027
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.0052c2cf
mov esp, ebp
pop ebp
ret