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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x790], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x794], eax
xor ebx, ebx
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x7a0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x784], esi
mov dword [ebp - 0x7a4], eax
mov byte [ebp - 0x5c], bl
push edi
mov edi, ecx
test esi, esi
je 0x408d0e
cmp byte [esi], 0x40
jne 0x408d0e
lea eax, [esi + 1]
push 0x40
push eax
call fcn.00416a00
mov dword [ebp - 0x78c], eax
pop ecx
pop ecx
test eax, eax
je 0x408d0e
mov ecx, eax
lea eax, [esi + 1]
sub ecx, esi
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 0x78c]
inc eax
mov dword [ebp - 0x784], eax
cmp dword [edi + 0x14], ebx
jne 0x408d2d
mov ecx, edi
call fcn.00408b8d
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, 1
cmp esi, 1
jne 0x40915d
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [edi + 0x1c], ebx
je 0x408d3d
push dword [edi + 0x1c]
call esi
cmp dword [edi + 0x18], ebx
je 0x408d47
push dword [edi + 0x18]
call esi
mov esi, dword [ebp - 0x784]
lea eax, [ebp - 0x264]
mov dword [ebp - 0x7ac], eax
mov ecx, 0x104
lea eax, [ebp - 0x160]
mov dword [edi + 0x18], ebx
mov dword [ebp - 0x7d0], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x7b4], eax
xor eax, eax
mov word [ebp - 0x7c8], ax
lea eax, [ebp - 0x7e0]
push eax
push ebx
push esi
mov dword [edi + 0x1c], ebx
mov dword [ebp - 0x7a8], ecx
mov dword [ebp - 0x7cc], ecx
mov dword [ebp - 0x7b8], ebx
mov dword [ebp - 0x7bc], ebx
mov dword [ebp - 0x7d8], ebx
mov dword [ebp - 0x7dc], ebx
mov dword [ebp - 0x7e0], 0x3c
mov dword [ebp - 0x7b0], ecx
mov dword [ebp - 0x7c0], ebx
mov dword [ebp - 0x7c4], ebx
mov byte [ebp - 0x160], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edx, 0xffffffff
mov cl, 2
mov dword [ebp - 0x78c], edx
test esi, esi
je 0x40914d
cmp dword [ebp - 0x7d4], edx
je 0x40914d
push 0x408c4f
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push edi
push ebx
push 3
lea eax, [edi + 0xac]
push eax
lea ecx, [edi + 0x2c]
push ecx
push dword [ebp - 0x7c8]
lea eax, [ebp - 0x160]
push eax
push dword [edi + 0x14]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, 3
cmp dword [edi + 0x18], ebx
je 0x40915d
mov esi, 0x437664
mov dword [ebp - 0x778], 0x437660
mov dword [ebp - 0x774], ebx
cmp dword [ebp + 0x10], ebx
jne 0x408e7c
mov eax, dword [ebp - 0x790]
test eax, eax
je 0x408e81
cmp byte [eax], bl
je 0x408e81
mov esi, eax
jmp 0x408e81
mov esi, str.POST
mov edx, 0x1bb
mov eax, 0x84400100
cmp word [ebp - 0x7c8], dx
mov ecx, 0x84c02100
cmove eax, ecx
mov dword [ebp - 0x788], eax
lea eax, [ebp - 0x768]
cmp dword [ebp - 0x7a8], ebx
je 0x408ecb
push dword [ebp - 0x7ac]
push dword [ebp - 0x7b4]
push 0x436ea0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x408ed8
push dword [ebp - 0x7b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp - 0x788]
lea eax, [ebp - 0x778]
push eax
push ebx
push str.HTTP_1.1
lea eax, [ebp - 0x768]
push eax
push esi
push dword [edi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, 4
cmp dword [edi + 0x1c], ebx
je 0x40915d
push ebx
push ebx
push 0x4d
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0xa0000000
mov esi, str.Content_Type:_application_x_www_form_urlencoded_r_n
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [edi + 0x1c]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
call esi
cmp byte [ebp - 0x5c], bl
je 0x408f5a
push 0xa0000000
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [edi + 0x1c]
call esi
cmp dword [edi + 0x28], 1
jne 0x408f97
lea esi, [edi + 0x2c]
push esi
call fcn.004211b0
pop ecx
inc eax
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0x2b
push dword [edi + 0x1c]
call esi
lea eax, [edi + 0xac]
push eax
call fcn.004211b0
pop ecx
inc eax
push eax
lea eax, [edi + 0xac]
push eax
push 0x2c
push dword [edi + 0x1c]
call esi
mov ecx, dword [ebp - 0x794]
test ecx, ecx
je 0x408faa
cmp byte [ecx], bl
je 0x408faa
or eax, 0xffffffff
jmp 0x408fb2
mov eax, ebx
mov dword [ebp - 0x78c], eax
mov dword [ebp - 0x788], ebx
mov byte [ebp - 0x779], 5
push dword [ebp + 0x10]
push dword [ebp - 0x790]
push eax
push ecx
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x780], eax
test esi, esi
jne 0x4090c5
cmp eax, 0x2f0d
je 0x408ffe
cmp eax, 0x2f06
je 0x408ffe
cmp eax, 0x2f19
jne 0x40903d
push 4
pop esi
lea eax, [ebp - 0x798]
mov dword [ebp - 0x798], esi
push eax
lea eax, [ebp - 0x784]
push eax
push 0x1f
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 0x784], 0x380
lea eax, [ebp - 0x784]
push esi
push eax
push 0x1f
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [edi + 0x28], 1
jne 0x409076
lea esi, [edi + 0x2c]
push esi
call fcn.004211b0
pop ecx
inc eax
push eax
push esi
push 0x2b
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
lea esi, [edi + 0xac]
push esi
call fcn.004211b0
pop ecx
inc eax
push eax
push esi
push 0x2c
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [ebp - 0x788]
mov ecx, dword [ebp - 0x794]
inc eax
mov dword [ebp - 0x788], eax
cmp eax, 2
mov eax, dword [ebp - 0x78c]
jl 0x408fbf
mov eax, dword [ebp - 0x780]
push 0xfffffffffffffffe
pop ebx
cmp eax, 0x2ee7
je 0x409157
mov cl, byte [ebp - 0x779]
cmp eax, 0x2efd
je 0x40915d
push 0xfffffffffffffffd
pop ebx
jmp 0x40915d
push ebx
lea eax, [ebp - 0x79c]
mov dword [ebp - 0x79c], 0xa
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x13
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x780], eax
mov cl, 7
mov byte [ebp - 0x779], cl
test esi, esi
jne 0x409104
push 0xfffffffffffffff3
jmp 0x4090bf
lea eax, [ebp - 0x1c]
push eax
call fcn.00421e90
xor ebx, ebx
inc ebx
pop ecx
cmp eax, 0xc8
je 0x409151
cmp eax, 0xce
je 0x409151
push 2
pop ebx
cmp eax, 0xca
je 0x409151
push 3
pop ebx
cmp eax, 0x1f7
je 0x409151
mov cl, byte [ebp - 0x779]
push 0xfffffffffffffff4
pop ebx
cmp eax, 0x1f8
je 0x409145
mov ebx, eax
mov eax, dword [ebp - 0x780]
jmp 0x40915d
mov ebx, edx
jmp 0x40915d
mov eax, dword [ebp - 0x780]
mov cl, byte [ebp - 0x779]
mov edx, dword [ebp - 0x7a0]
test edx, edx
je 0x409169
mov dword [edx], eax
mov eax, dword [ebp - 0x7a4]
test eax, eax
je 0x409175
mov byte [eax], cl
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041559f
leave
ret 0x18