Function at 0x402524
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0x438
mov eax, 0x42546a
call fcn.00411cc5
push str.Content_type:_application_x_www_form_urlencoded_r_n
lea eax, [ebp - 0x424]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040417c
mov byte [ebp - 4], 1
mov eax, dword [0x4322e4]
mov esi, 0x4322e4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
mov byte [ebp - 4], 2
call fcn.004022ce
pop ecx
push dword [ebp - 0x420]
lea edi, [ebp - 0x438]
call fcn.0040101a
mov byte [ebp - 4], 3
mov eax, dword [0x4322e4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x418]
push eax
mov byte [ebp - 4], 4
call fcn.00402f06
lea eax, [ebp - 0x418]
mov dword [esp], str.TN
push eax
call fcn.00404080
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x418]
call fcn.00404c18
push ebx
push ebx
push ebx
push ebx
push 0x42a0d0
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x43c], eax
jne 0x402646
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004054c6
or eax, 0xffffffff
call fcn.00411d48
ret
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x430]
push dword [ebp - 0x434]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [ebp - 0x440], eax
je 0x4025ec
xor eax, eax
cmp dword [ebp - 0x438], 4
jne 0x402679
mov eax, 0x800000
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x42c]
push str.POST
push dword [ebp - 0x440]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x444], edi
je 0x4025ec
mov esi, dword [ebp - 0x424]
push esi
call dword [0x4270e8]
push 0x20000000
push eax
push esi
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
mov eax, dword [ebp - 0x418]
je 0x4025f2
push dword [eax - 0xc]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x40273a
or ebx, 0xffffffff
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, ebx
jmp 0x402640
push 0x3ff
lea eax, [ebp - 0x413]
push ebx
push eax
mov byte [ebp - 0x414], bl
call fcn.00411d70
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push 5
mov esi, 0x400
push edi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x402789
mov eax, dword [ebp - 0x41c]
mov byte [ebp + eax - 0x414], bl
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4027c7
mov eax, dword [ebp - 0x41c]
cmp eax, ebx
jbe 0x4027d3
mov byte [ebp + eax - 0x414], bl
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x444]
mov dword [ebp - 0x41c], esi
call edi
test eax, eax
jne 0x4027a1
push dword [ebp - 0x444]
call fcn.00406b87
pop ecx
push dword [ebp - 0x440]
call fcn.00406b87
pop ecx
push dword [ebp - 0x43c]
call fcn.00406b87
pop ecx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00403f7b
mov ecx, dword [ebp - 0x428]
cmp dword [ecx - 0xc], ebx
jl 0x40283d
push str.false
push ecx
call fcn.0040f84e
cmp eax, ebx
pop ecx
pop ecx
mov ecx, dword [ebp - 0x428]
je 0x40283d
sub eax, ecx
js 0x40283d
lea eax, [ecx - 0x10]
call fcn.004054c6
jmp 0x4026e2
lea eax, [ecx - 0x10]
call fcn.004054c6
xor ebx, ebx
inc ebx
jmp 0x4026e2