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

Disassembly:
push 0x9c
mov eax, 0x4269a2
call fcn.00418141
mov ebx, ecx
mov ecx, dword [ebp + 0x1c]
xor edx, edx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
or dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0xa0], ecx
xor ecx, ecx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], edx
mov word [ebp - 0x5c], cx
mov dword [ebp - 4], edx
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], edx
mov word [ebp - 0x74], cx
lea ecx, [ebp - 0x7d]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push eax
call fcn.00409704
test al, al
je 0x409f6b
push ecx
mov ecx, ebx
call fcn.004096bc
test al, al
je 0x409f6b
movzx edx, byte [ebp - 0x7d]
lea ecx, [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x8c], 0x1bb
cmp byte [ebx], al
push eax
push eax
push 3
push eax
cmovne edx, eax
cmp dword [ebp - 0x48], 8
push eax
cmovae ecx, dword [ebp - 0x5c]
test dl, dl
push 0x50
pop eax
cmovne eax, dword [ebp - 0x8c]
movzx eax, ax
push eax
push ecx
push dword [ebx + 0x7c]
mov dword [ebp - 0x84], edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x409f3d
lea ecx, [ebx + 0x4c]
cmp dword [ecx + 0x14], 8
jb 0x409bc4
mov ecx, dword [ecx]
and dword [ebp - 0xa4], 0
xor eax, eax
and dword [ebp - 0x34], 0
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp + 0xc]
movzx eax, al
mov byte [ebp - 4], 2
dec eax
je 0x409c02
push 0x42f120
call fcn.0041454e
pop ecx
push eax
push 0x42f120
jmp 0x409c13
push str.POST
call fcn.0041454e
pop ecx
push eax
push str.POST
lea ecx, [ebp - 0x44]
call fcn.00406681
lea eax, [ebx + 0x64]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x7c], eax
jb 0x409c2c
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x60], 8
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x78], 0x800000
cmovae edx, dword [ebp - 0x74]
cmp dword [ebp - 0x30], 8
push 0
cmovae ecx, dword [ebp - 0x44]
xor eax, eax
cmp byte [ebp - 0x84], al
cmovne eax, dword [ebp - 0x78]
or eax, 0x8404f700
push eax
lea eax, [ebp - 0xa8]
push eax
push 0
push dword [ebp - 0x7c]
push edx
push ecx
push dword [ebp - 0x8c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x409eef
test esi, esi
je 0x409c8b
mov eax, dword [esi + 0x10]
jmp 0x409c8d
xor eax, eax
test esi, esi
je 0x409c9b
cmp dword [esi + 0x14], 0x10
jb 0x409c9d
mov esi, dword [esi]
jmp 0x409c9d
xor esi, esi
mov ecx, dword [ebx + 0x44]
add ebx, 0x34
cmp dword [ebx + 0x14], 8
jb 0x409cab
mov ebx, dword [ebx]
push eax
push esi
push ecx
push ebx
mov ebx, dword [ebp - 0x7c]
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x409ea4
push 0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 4
push eax
lea eax, [ebp - 0x88]
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x409d1f
or dword [ebp - 0x88], 0xffffffff
mov esi, str.HttpQueryInfo:statusCode
and dword [ebp - 0x1c], eax
push esi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0041454e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406681
mov byte [ebp - 4], 3
jmp 0x409ecf
xor ecx, ecx
mov esi, ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ecx
push ecx
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push eax
push ecx
push 0x15
push ebx
mov dword [ebp - 0x84], ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x409e19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
je 0x409e19
push dword [ebp - 0x84]
call fcn.00417aa6
mov dword [ebp - 0x78], eax
pop ecx
test eax, eax
je 0x409e19
push esi
lea ecx, [ebp - 0x84]
push ecx
push eax
push 0x15
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, dword [ebp - 0x78]
test eax, eax
je 0x409dff
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x409dff
and dword [ebp - 0x1c], 0
xor ecx, ecx
shr eax, 1
push eax
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push esi
mov dword [ebp - 0x18], 7
call fcn.00406681
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.00408fe2
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004065b8
push esi
call fcn.00417b38
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040a09d
mov esi, dword [ebp - 0x7c]
test edi, edi
je 0x409e97
and dword [ebp - 0x78], 0
push 0x10000
mov dword [edi + 0x38], esi
call fcn.00417aa6
mov esi, eax
pop ecx
test esi, esi
je 0x409e97
jmp 0x409e66
cmp dword [ebp - 0x78], 0
jbe 0x409e90
push dword [ebp - 0x78]
mov ecx, edi
push esi
call fcn.0040a50c
test al, al
je 0x409e89
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x409e62
push dword [edi + 0x14]
push dword [ebp - 0x7c]
call eax
test al, al
jne 0x409e7d
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x409e37
jmp 0x409e90
mov dword [ebp - 0x88], 0xfffffffe
jmp 0x409e90
or dword [ebp - 0x88], 0xffffffff
push esi
call fcn.00417b38
pop ecx
lea ecx, [ebp - 0x9c]
call fcn.004033db
jmp 0x409ee4
and dword [ebp - 0x1c], 0
xor eax, eax
mov esi, str.HttpSendRequest
mov dword [ebp - 0x18], 7
push esi
mov word [ebp - 0x2c], ax
call fcn.0041454e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406681
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
push eax
call fcn.00409fee
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004065b8
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
jmp 0x409f2f
xor eax, eax
mov dword [ebp - 0x18], 7
mov esi, str.HttpOpenRequest
mov word [ebp - 0x2c], ax
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
call fcn.0041454e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406681
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
call fcn.00409fee
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004065b8
push dword [ebp - 0x8c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x409fa0
xor eax, eax
mov dword [ebp - 0x30], 7
mov esi, str.InternetConnect
mov word [ebp - 0x44], ax
xor ebx, ebx
push esi
mov dword [ebp - 0x34], ebx
call fcn.0041454e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00406681
mov byte [ebp - 4], 8
jmp 0x409f97
xor eax, eax
mov dword [ebp - 0x30], 7
mov esi, str.OpenInternet_of_BadUrl
mov word [ebp - 0x44], ax
xor ebx, ebx
push esi
mov dword [ebp - 0x34], ebx
call fcn.0041454e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00406681
mov byte [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
call fcn.00409fee
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.004065b8
test edi, edi
je 0x409fc8
cmp byte [edi + 0xc], 2
jne 0x409fc8
cmp dword [edi + 0x10], 0xffffffff
je 0x409fc8
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x10], 0xffffffff
mov esi, dword [ebp - 0x88]
lea ecx, [ebp - 0x74]
push ebx
push 1
call fcn.004065b8
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004065b8
mov eax, esi
call fcn.004180f0
ret 0x18