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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov dword [ebp - 0xb8], ecx
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x5c], eax
push 0
push 0
mov eax, dword [ebp - 0xb8]
push dword [eax + 0x6c]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov eax, dword [ebp - 0xb8]
movzx eax, word [eax + 0x68]
push eax
push dword [ebp - 0x54]
mov eax, dword [ebp - 0xb8]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x34], 0
je 0x403343
cmp dword [ebp - 0x34], 0xffffffff
je 0x403343
mov dword [ebp - 0xbc], 1
jmp 0x40334a
and dword [ebp - 0xbc], 0
movzx eax, byte [ebp - 0xbc]
test eax, eax
jne 0x40336f
push 0
mov ecx, dword [ebp + 8]
call fcn.004084c7
lea ecx, [ebp - 0x34]
call fcn.00401e2d
mov eax, dword [ebp + 8]
jmp 0x4036cd
mov eax, dword [ebp - 0xb8]
add eax, 0x58
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xb8]
add ecx, 0x50
call fcn.00408573
mov dword [ebp - 0x10], 0x409544
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
mov eax, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x6c], eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push dword [ebp - 0x60]
push 0x409540
push dword [ebp - 0x64]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
je 0x4033ee
cmp dword [ebp - 0x18], 0xffffffff
je 0x4033ee
mov dword [ebp - 0xc0], 1
jmp 0x4033f5
and dword [ebp - 0xc0], 0
movzx eax, byte [ebp - 0xc0]
test eax, eax
jne 0x403431
push 0
mov ecx, dword [ebp + 8]
call fcn.004084c7
lea ecx, [ebp - 0x18]
call fcn.00401e2d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
push dword [ebp - 0x70]
call fcn.00401eb5
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00401e2d
mov eax, dword [ebp + 8]
jmp 0x4036cd
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x74], eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x74]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x403455
and dword [ebp - 0xc4], 0
jmp 0x403461
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4034a1
push 0
mov ecx, dword [ebp + 8]
call fcn.004084c7
lea ecx, [ebp - 0x18]
call fcn.00401e2d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x78]
call fcn.00401eb5
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00401e2d
mov eax, dword [ebp + 8]
jmp 0x4036cd
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0xb8]
call fcn.0040304f
mov ecx, dword [ebp - 0xb8]
call fcn.0040310c
push str.Content_Length
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xb8]
call fcn.0040318d
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
call fcn.0040875e
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x84], eax
push dword [ebp - 0x84]
call fcn.00401eb5
pop ecx
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
call fcn.004084c7
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x403541
and dword [ebp - 0xc8], 0
jmp 0x40354d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4035a8
push 0
mov ecx, dword [ebp + 8]
call fcn.004084c7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], eax
push dword [ebp - 0x90]
call fcn.00401eb5
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00401e2d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x94], eax
push dword [ebp - 0x94]
call fcn.00401eb5
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00401e2d
mov eax, dword [ebp + 8]
jmp 0x4036cd
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
movsx eax, byte [eax]
cmp eax, 0xff
jne 0x403654
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
movsx eax, byte [eax + 1]
cmp eax, 0xfe
jne 0x403654
mov eax, dword [ebp - 0x38]
inc eax
push eax
lea ecx, [ebp - 0x40]
call fcn.004084c7
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xa4], eax
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0xa0]
mov eax, dword [ebp - 0x38]
dec eax
push eax
mov eax, dword [ebp - 0xa4]
inc eax
inc eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xb8]
add ecx, 0x18
call fcn.0040853c
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.0040853c
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xa8], eax
push dword [ebp - 0xa8]
call fcn.00401eb5
pop ecx
push 0
lea ecx, [ebp - 0x21]
call fcn.00401c60
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xac], eax
push dword [ebp - 0xac]
lea ecx, [ebp - 0x21]
call fcn.00401d20
mov ecx, eax
call fcn.00401e0a
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004084ed
lea ecx, [ebp - 0x21]
call fcn.00401cb8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xb0], eax
push dword [ebp - 0xb0]
call fcn.00401eb5
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00401e2d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb4], eax
push dword [ebp - 0xb4]
call fcn.00401eb5
pop ecx
lea ecx, [ebp - 0x34]
call fcn.00401e2d
mov eax, dword [ebp + 8]
leave
ret 4