Function at 0x4032a0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4118c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x416040]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x416040]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov ebx, edx
xor esi, esi
mov dword [ebx], esi
mov edx, dword [0x4170ac]
mov edi, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4170ac
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], esi
mov edx, dword [0x4170ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4170ac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x58], 1
mov edx, dword [0x4170ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4170ac
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x58], 2
mov edx, dword [0x4170ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4170ac
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x60], 3
lea edx, [esp + 0x20]
mov ecx, edi
mov dword [esp + 0x4c], 0x544547
call fcn.00403080
add esp, 8
test eax, eax
jne 0x40341f
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403418
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40367f
push esi
push esi
push esi
push esi
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:8.0.1__Gecko_20100101_Firefox_8.0.1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x4035e4
mov ebp, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [esp + 0x18]
push ecx
push 2
push eax
mov dword [esp + 0x24], 0x7530
call ebp
mov eax, dword [esp + 0x1c]
push 4
lea edx, [esp + 0x18]
push edx
push 5
push eax
call ebp
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x18]
push ecx
push 6
push edx
call ebp
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 3
mov eax, ebp
neg eax
push 0
sbb eax, eax
push 0
and eax, 0x16b
add eax, 0x50
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esp + 0x40], eax
test eax, eax
je 0x4035cc
mov ecx, 0x84000100
test ebp, ebp
je 0x4034bb
mov ecx, 0x84800100
push 0
push ecx
mov ecx, dword [esp + 0x28]
push 0
push edi
push 0
push ecx
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
je 0x4035c1
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
push 0
push 0
push eax
push ecx
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4035ba
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x20000013
push ebp
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x403531
cmp dword [ebx], 0xc8
jne 0x4035ba
push 1
push 0x1389
call fcn.004050b4
mov esi, eax
add esp, 8
test esi, esi
je 0x4035ba
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x30]
push edx
push 0x1388
push esi
push ebp
call ebx
test eax, eax
je 0x40359b
mov eax, dword [esp + 0x30]
test eax, eax
jbe 0x40359b
mov edi, dword [esp + 0x2c]
add edi, eax
lea eax, [edi + 0x1389]
push eax
push esi
mov dword [esp + 0x34], edi
call fcn.004050f4
mov esi, eax
add esp, 8
test esi, esi
je 0x4035ba
lea ecx, [esp + 0x30]
push ecx
push 0x1388
lea edx, [esi + edi]
push edx
push ebp
call ebx
test eax, eax
jne 0x40355e
test esi, esi
je 0x4035ba
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
mov edx, esi
mov byte [esi + eax], 0
call fcn.00402510
mov dword [esp + 0x34], 1
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x4035e4
push esi
call fcn.00403fb6
add esp, 4
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403609
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40362e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40367b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00403a66
add esp, 0x48
ret