Function at 0x40b548
Capabilities:
Connect to http server
Parse url
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x478a78]
xor eax, ebp
mov dword [ebp + 0x1fc], eax
mov eax, dword [ebp + 0x210]
push ebx
push esi
mov esi, dword [ebp + 0x20c]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x214]
push edi
mov edi, dword [ebp + 0x208]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x218]
push 0x38
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0xc], ecx
call fcn.0043d840
lea eax, [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x6c], 0xff
mov dword [ebp - 0x50], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x40b5df
xor al, al
jmp 0x40b776
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc ecx
mov dword [ebp - 8], ecx
cmp byte [eax + 0x1c], bl
jne 0x40b5f8
push ecx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x68]
jmp 0x40b606
push ebx
push ebx
push 3
push ebx
push ebx
mov dword [ebp - 8], ebx
push 0x1bb
push dword [ebp - 0x70]
push dword [eax + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi], eax
mov edi, eax
cmp edi, ebx
je 0x40b5d8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x1c], 0x461a78
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x14], ebx
jne 0x40b65b
cmp byte [ebp + 0x220], bl
jne 0x40b65b
push dword [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
cmp byte [ecx + 0x1c], bl
jne 0x40b654
push str.HTTP_1.0
push dword [ebp - 0x54]
push 0x461a5c
jmp 0x40b671
push str.HTTP_1.1
jmp 0x40b64a
push dword [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push str.HTTP_1.1
push dword [ebp - 0x54]
push 0x461a3c
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [esi], eax
cmp eax, ebx
je 0x40b5d8
xor eax, eax
cmp dword [ebp - 0x14], ebx
je 0x40b750
push 9
pop ecx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], 0x28
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x40b6b2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x40b6b4
xor eax, eax
mov edi, dword [ebp + 0x21c]
push ebx
push ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push ebx
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0xc]
mov dword [ebp - 0x28], edi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x40b6e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b5d8
cmp edi, ebx
jle 0x40b73f
mov eax, dword [ebp + 0x21c]
mov edi, 0x400
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x21c]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
jg 0x40b70d
mov eax, edi
lea edx, [ebp - 0x10]
push edx
push eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + ecx - 0x400]
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40b73f
add dword [ebp - 8], edi
mov eax, dword [ebp - 8]
sub dword [ebp - 0xc], edi
add eax, 0xfffffc00
cmp eax, dword [ebp + 0x21c]
jl 0x40b6fa
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
jne 0x40b774
jmp 0x40b6da
cmp dword [ebp - 0x10], ebx
je 0x40b75e
push dword [ebp - 0x10]
call fcn.0043d70f
pop ecx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
push dword [esi]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40b5d8
mov al, 1
mov ecx, dword [ebp + 0x1fc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dae6
add ebp, 0x200
leave
ret 0x1c