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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b6ae
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10ac
call fcn.0041ed40
mov eax, dword [0x43b5a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x108c], esi
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1088], esi
mov dword [ebp - 0x10a0], eax
push 0x433b13
lea ecx, [ebp - 0x1084]
mov dword [ebp - 4], 1
xor ebx, ebx
call fcn.00401bd2
mov byte [ebp - 4], 3
cmp dword [edi + 0x10], ebx
jne 0x404b30
mov dword [ebp - 0x10a8], 0xe
push 0x438280
lea eax, [ebp - 0x10a8]
push eax
call fcn.0041513b
mov ecx, esi
call fcn.00405090
push ebx
push ebx
push ebx
push ebx
push str.Http_connect
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
test eax, eax
jne 0x404b63
mov dword [ebp - 0x10b0], 1
push 0x438280
lea eax, [ebp - 0x10b0]
jmp 0x404b2a
mov esi, 0x433b13
push esi
lea ecx, [ebp - 0x1054]
mov dword [ebp - 0x1094], 0x50
call fcn.00401bd2
push esi
lea ecx, [ebp - 0x103c]
mov byte [ebp - 4], 4
call fcn.00401bd2
sub esp, 0x18
mov ecx, esp
push edi
mov byte [ebp - 4], 5
call fcn.004023a1
lea eax, [ebp - 0x1094]
push eax
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x1054]
push eax
call fcn.00404f00
cmp dword [ebp - 0x1028], 0x10
lea ecx, [ebp - 0x103c]
cmovae ecx, dword [ebp - 0x103c]
cmp dword [ebp - 0x1040], 0x10
lea edx, [ebp - 0x1054]
cmovae edx, dword [ebp - 0x1054]
cmp dword [edi + 0x14], 0x10
jb 0x404be7
mov edi, dword [edi]
mov esi, dword [ebp - 0x1094]
movzx eax, si
push eax
push ecx
push edx
push edi
push str.lpUrl:_s__nstrHostName:_s__nstrPageName:_s__nport:_d_n
call fcn.00413e5c
mov edi, dword [ebp - 0x108c]
add esp, 0x14
cmp dword [ebp - 0x1040], 0x10
push ebx
push ebx
push 3
push ebx
push ebx
lea eax, [ebp - 0x1054]
cmovae eax, dword [ebp - 0x1054]
push esi
push eax
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [edi + 4], eax
test eax, eax
jne 0x404c4c
mov dword [ebp - 0x109c], 2
push 0x438280
lea eax, [ebp - 0x109c]
jmp 0x404b2a
mov dword [ebp - 0x1058], 0xf
mov dword [ebp - 0x105c], ebx
mov byte [ebp - 0x106c], bl
mov esi, 0x435d48
push esi
mov byte [ebp - 4], 6
call fcn.00401001
pop ecx
push eax
push esi
lea ecx, [ebp - 0x106c]
call fcn.00401dba
cmp dword [ebp - 0x1028], 0x10
push ebx
push 0x80000000
push ebx
push ebx
lea ecx, [ebp - 0x103c]
cmovae ecx, dword [ebp - 0x103c]
cmp dword [ebp - 0x1058], 0x10
push str.HTTP_1.1
lea eax, [ebp - 0x106c]
cmovae eax, dword [ebp - 0x106c]
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x108c], eax
mov dword [edi + 8], eax
test eax, eax
jne 0x404ce6
mov dword [ebp - 0x10a4], 1
push 0x438280
lea eax, [ebp - 0x10a4]
jmp 0x404b2a
cmp dword [ebp + 0x24], 0
jne 0x404cf0
mov edx, ebx
jmp 0x404d07
cmp dword [ebp + 0x28], 0x10
lea edx, [ebp + 0x14]
cmovae edx, dword [ebp + 0x14]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x404cfe
sub edx, ecx
cmp dword [ebp + 0x3c], 0
jne 0x404d11
mov esi, ebx
jmp 0x404d28
cmp dword [ebp + 0x40], 0x10
lea esi, [ebp + 0x2c]
cmovae esi, dword [ebp + 0x2c]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x404d1f
sub esi, ecx
cmp dword [ebp + 0x40], 0x10
push esi
lea ecx, [ebp + 0x2c]
cmovae ecx, dword [ebp + 0x2c]
cmp dword [ebp + 0x28], 0x10
push ecx
lea eax, [ebp + 0x14]
cmovae eax, dword [ebp + 0x14]
push edx
push eax
push dword [ebp - 0x108c]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x404d6c
mov dword [ebp - 0x10ac], 3
push 0x438280
lea eax, [ebp - 0x10ac]
jmp 0x404b2a
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1023]
push ebx
push eax
mov byte [ebp - 0x1024], bl
call fcn.00417240
add esp, 0xc
lea eax, [ebp - 0x1090]
push ebx
push eax
lea eax, [ebp - 0x1024]
push eax
push 0x15
push dword [edi + 8]
mov dword [ebp - 0x1090], esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x404dc6
mov dword [ebp - 0x10b4], 4
push 0x438280
lea eax, [ebp - 0x10b4]
jmp 0x404b2a
lea eax, [ebp - 0x1024]
push 0x435d80
push eax
call fcn.004140b0
pop ecx
pop ecx
test eax, eax
je 0x404df7
mov dword [ebp - 0x1098], 5
push 0x438280
lea eax, [ebp - 0x1098]
jmp 0x404b2a
lea eax, [ebp - 0x1090]
push eax
push esi
lea eax, [ebp - 0x1024]
push eax
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404e52
mov eax, dword [ebp - 0x1090]
test eax, eax
je 0x404e52
cmp eax, 0x1001
jae 0x404e4d
mov byte [ebp + eax - 0x1024], bl
lea eax, [ebp - 0x1024]
push eax
call fcn.00401001
pop ecx
push eax
lea eax, [ebp - 0x1024]
push eax
lea ecx, [ebp - 0x1084]
call fcn.004025a2
jmp 0x404df7
call fcn.00412b63
cmp dword [ebp - 0x1070], 0x10
lea eax, [ebp - 0x1084]
cmovae eax, dword [ebp - 0x1084]
push eax
call fcn.004050c9
mov esi, eax
push esi
call fcn.00401001
pop ecx
mov ecx, dword [ebp - 0x10a0]
push eax
push esi
call fcn.00401dba
lea ecx, [ebp - 0x106c]
call fcn.00401c01
lea ecx, [ebp - 0x103c]
call fcn.00401c01
lea ecx, [ebp - 0x1054]
call fcn.00401c01
jmp 0x404ec7
lea ecx, [ebp - 0x1084]
call fcn.00401c01
lea ecx, [ebp + 0x14]
call fcn.00401c01
lea ecx, [ebp + 0x2c]
call fcn.00401c01
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041206b
leave
ret 0x3c