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

Disassembly:
push 0xffffffffffffffff
push 0x45e12e
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4770c4]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4770c4]
xor eax, esp
push eax
lea eax, [esp + 0x45c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x470]
mov ebp, dword [esp + 0x46c]
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x464], ebx
cmp dword [edi + 0x14], ebx
jne 0x401e30
push ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
push 0x46c228
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00403320
cmp dword [esp + 0x48c], 0x10
jb 0x4020f1
mov ecx, dword [esp + 0x478]
push ecx
call fcn.00445f80
add esp, 4
jmp 0x4020f1
call fcn.00402ea0
push ebx
push ebx
push ebx
push ebx
push str.Http_connect
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x90], eax
cmp eax, ebx
jne 0x401e9a
push 0xc
add esi, 0x74
mov eax, 0x46c44c
call fcn.004016d0
push ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
push 0x46c228
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00403320
cmp dword [esp + 0x48c], 0x10
jb 0x4020f1
mov edx, dword [esp + 0x478]
push edx
call fcn.00445f80
add esp, 4
jmp 0x4020f1
push edi
push esi
call fcn.00402120
mov edi, 0x10
cmp dword [esi + 0x1c], edi
jb 0x401eb0
mov eax, dword [esi + 8]
jmp 0x401eb3
lea eax, [esi + 8]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
mov eax, dword [esi + 0x90]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x94], eax
cmp eax, ebx
jne 0x401efa
push 0xc
add esi, 0x74
mov eax, 0x46c44c
call fcn.004016d0
push 0x46c228
mov ecx, ebp
call fcn.00403400
cmp dword [esp + 0x48c], edi
jmp 0x401e15
mov dword [esi], ebx
cmp dword [esi + 0x54], edi
jb 0x401f06
mov ecx, dword [esi + 0x40]
jmp 0x401f09
lea ecx, [esi + 0x40]
push ebx
push SysReAllocString
push ebx
push ebx
push 0x46c280
push ecx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x98], eax
cmp eax, ebx
jne 0x401f4d
push 0xc
add esi, 0x74
mov eax, 0x46c44c
call fcn.004016d0
push 0x46c228
mov ecx, ebp
call fcn.00403400
jmp 0x4020e5
cmp dword [esp + 0x488], ebx
jne 0x401f63
push esi
lea eax, [esp + 0x478]
call fcn.00402470
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x14]
cmp dword [eax + 0x18], edi
jb 0x401f74
mov eax, dword [eax + 4]
jmp 0x401f77
add eax, 4
mov ecx, dword [esp + 0x478]
cmp dword [esp + 0x48c], edi
jae 0x401f8e
lea ecx, [esp + 0x478]
push edx
mov edx, dword [esp + 0x48c]
push eax
mov eax, dword [esi + 0x98]
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
jne 0x401fc2
mov eax, esi
call fcn.00402530
push 0x46c228
mov ecx, ebp
call fcn.00403400
jmp 0x4020e5
push 0x400
lea ecx, [esp + 0x59]
push ebx
push ecx
mov byte [esp + 0x60], bl
call fcn.00447cc0
mov ecx, dword [esi + 0x98]
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x5c]
push eax
push 0x15
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, ebx
je 0x401faa
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x3c]
call fcn.00403400
lea eax, [esp + 0x38]
push eax
mov edx, 0x46c2d4
mov byte [esp + 0x468], 1
call fcn.00402930
cmp eax, 0xffffffff
je 0x402041
mov eax, esi
call fcn.00402530
push 0x46c228
mov ecx, ebp
call fcn.00403400
jmp 0x4020dc
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x14]
push ecx
push 0x400
mov byte [esp + 0x46c], 2
mov eax, dword [esi + 0x98]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x5c]
push edx
push eax
call edi
test eax, eax
je 0x4020c7
jmp 0x402080
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4020c7
mov byte [esp + eax + 0x54], bl
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402093
sub eax, edx
push eax
lea ecx, [esp + 0x58]
push ecx
lea eax, [esp + 0x24]
call fcn.00402a10
mov ecx, dword [esi + 0x98]
lea edx, [esp + 0x14]
push edx
push 0x400
lea eax, [esp + 0x5c]
push eax
push ecx
call edi
test eax, eax
jne 0x402080
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.00402e70
lea ecx, [esp + 0x1c]
call fcn.00402ef0
lea ecx, [esp + 0x38]
call fcn.00402ef0
lea ecx, [esp + 0x474]
call fcn.00402ef0
mov eax, ebp
mov ecx, dword [esp + 0x45c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x444]
xor ecx, esp
call fcn.00445f20
add esp, 0x454
ret 0x24