Function at 0x401f60
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447548
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x19104
call fcn.004413a0
mov eax, dword [0x4592c4]
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 eax, dword [ebp + 8]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x19070]
mov byte [ebp - 4], 1
call fcn.0040138b
lea eax, [ebp - 0x19070]
push eax
lea esi, [ebp - 0x19038]
mov byte [ebp - 4], 2
call fcn.00403b88
xor eax, eax
mov dword [ebp - 0x1903c], 7
mov dword [ebp - 0x19040], ebx
mov word [ebp - 0x19050], ax
push 3
mov esi, 0x44c21c
push esi
lea eax, [ebp - 0x19038]
mov byte [ebp - 4], 4
call fcn.00402cd9
cmp eax, 0xffffffff
je 0x402018
push 3
push esi
lea eax, [ebp - 0x19038]
call fcn.00402cd9
add eax, 3
push eax
xor edi, edi
lea esi, [ebp - 0x19038]
call fcn.0040167f
push 0x2f
pop edi
push 1
lea eax, [ebp - 0x19090]
push eax
lea eax, [ebp - 0x19038]
mov dword [ebp - 0x19090], edi
call fcn.00402cd9
cmp eax, 0xffffffff
je 0x4020da
push 1
lea eax, [ebp - 0x19090]
push eax
lea eax, [ebp - 0x19038]
mov dword [ebp - 0x19090], edi
call fcn.00402cd9
lea ebx, [eax + 1]
push 0xffffffffffffffff
lea eax, [ebp - 0x19038]
push eax
lea esi, [ebp - 0x190bc]
call fcn.00402897
push 0xffffffffffffffff
lea ecx, [ebp - 0x19054]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 5
call fcn.00401865
push ebx
push 1
mov byte [ebp - 4], 4
call fcn.00401952
push 1
lea eax, [ebp - 0x19090]
push eax
lea eax, [ebp - 0x19038]
mov dword [ebp - 0x19090], edi
call fcn.00402cd9
push eax
lea eax, [ebp - 0x19038]
push eax
lea esi, [ebp - 0x190f8]
call fcn.00402897
push 0xffffffffffffffff
lea ecx, [ebp - 0x19038]
push ecx
mov byte [ebp - 4], 6
call fcn.00401865
push ebx
push 1
mov byte [ebp - 4], 4
call fcn.00401952
push ebx
cmp dword [ebp - 0x19024], ebx
jne 0x402106
push 1
lea esi, [ebp - 0x19054]
call fcn.00401952
push ebx
push 1
lea esi, [ebp - 0x19038]
call fcn.00401952
push ebx
push 1
jmp 0x4025f3
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1909c], eax
cmp eax, ebx
jne 0x40215c
cmp dword [ebp + 0xc], ebx
je 0x402159
push 0x44c224
lea ecx, [ebp - 0x190bc]
call fcn.00403b66
mov byte [ebp - 4], 7
lea eax, [ebp - 0x190bc]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403278
push ebx
push 1
lea ecx, [ebp - 0x190bc]
call fcn.00401d71
push ebx
jmp 0x4020e3
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
xor eax, eax
mov dword [ebp - 0x190c4], ebx
lea edi, [ebp - 0x190c0]
push 4
stosd dword es:[edi], eax
lea eax, [ebp - 0x190d0]
push eax
push 5
push dword [ebp - 0x1909c]
mov dword [ebp - 0x190d4], 8
mov dword [ebp - 0x190d0], 0x3e8
call esi
mov edi, dword [ebp - 0x1909c]
push 4
lea eax, [ebp - 0x190d0]
push eax
push 2
push edi
call esi
lea eax, [ebp - 0x190d4]
push eax
lea eax, [ebp - 0x190c4]
push eax
push 0x32
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x4021e8
test byte [ebp - 0x190c4], 1
jne 0x4021e8
push 8
lea eax, [ebp - 0x190c4]
push eax
push 0x32
push edi
mov dword [ebp - 0x190c4], 1
call esi
cmp dword [ebp - 0x19020], 8
mov eax, dword [ebp - 0x19034]
jae 0x4021fd
lea eax, [ebp - 0x19034]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 0x19090], esi
cmp esi, ebx
jne 0x402242
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 0xc], ebx
je 0x402159
push 0x44c224
lea ecx, [ebp - 0x190bc]
call fcn.00403b66
mov byte [ebp - 4], 8
jmp 0x402133
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x40227b
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
cmp dword [ebp + 0xc], ebx
je 0x402159
push 0x44c224
lea ecx, [ebp - 0x190bc]
call fcn.00403b66
mov byte [ebp - 4], 9
jmp 0x402133
mov dword [ebp - 0x190dc], 0x44c228
mov dword [ebp - 0x190d8], ebx
cmp dword [ebp - 0x19040], ebx
jbe 0x4022ac
cmp dword [ebp - 0x1903c], 8
jb 0x4022a4
mov eax, dword [ebp - 0x19050]
jmp 0x4022ae
lea eax, [ebp - 0x19050]
jmp 0x4022ae
xor eax, eax
push ebx
push 0x84400000
lea ecx, [ebp - 0x190dc]
push ecx
push ebx
push str.HTTP_1.1
push eax
push 0x44c244
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x19094], eax
cmp eax, ebx
jne 0x402306
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
cmp dword [ebp + 0xc], ebx
je 0x402159
push 0x44c224
lea ecx, [ebp - 0x190bc]
call fcn.00403b66
mov byte [ebp - 4], 0xa
jmp 0x402133
push str.Host
lea eax, [ebp - 0x19114]
call fcn.0040138b
push 0x44c24c
push eax
lea eax, [ebp - 0x190f8]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040332c
add esp, 0xc
lea ecx, [ebp - 0x19038]
push ecx
push eax
lea eax, [ebp - 0x1908c]
push eax
mov byte [ebp - 4], 0xc
call fcn.00403372
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x190f8]
call fcn.00401952
push ebx
push 1
lea esi, [ebp - 0x19114]
mov byte [ebp - 4], 0xf
call fcn.00401952
cmp dword [ebp - 0x19074], 8
mov eax, dword [ebp - 0x19088]
jae 0x40237f
lea eax, [ebp - 0x19088]
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov edi, 0x20000000
push edi
push 0xffffffffffffffff
push eax
push dword [ebp - 0x19094]
call esi
push edi
mov edi, dword [ebp - 0x19094]
push 0xffffffffffffffff
push str.Content_Length:_0
push edi
call esi
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x402417
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x19090]
call esi
push dword [ebp - 0x1909c]
call esi
cmp dword [ebp + 0xc], ebx
je 0x4025c7
push 0x44c224
lea ecx, [ebp - 0x190bc]
call fcn.00403b66
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x190bc]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403278
push ebx
push 1
lea ecx, [ebp - 0x190bc]
call fcn.00401d71
jmp 0x4025c7
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x190c8]
push eax
lea eax, [ebp - 0x19098]
push eax
lea eax, [ebp - 0x190cc]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x190cc], ebx
mov dword [ebp - 0x190a0], ebx
mov dword [ebp - 0x190c8], ebx
mov dword [ebp - 0x19098], 4
call esi
test eax, eax
jne 0x402495
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x19090]
call esi
push dword [ebp - 0x1909c]
call esi
cmp dword [ebp + 0xc], ebx
je 0x4025c7
push 0x44c224
lea ecx, [ebp - 0x190bc]
call fcn.00403b66
mov byte [ebp - 4], 0x11
jmp 0x4023ec
lea eax, [ebp - 0x190c8]
push eax
lea eax, [ebp - 0x19098]
push eax
lea eax, [ebp - 0x190a0]
push eax
push 0x20000005
push edi
call esi
mov dword [ebp - 0x19094], ebx
mov dword [ebp - 0x19098], ebx
lea eax, [ebp - 0x19098]
push eax
push 0x19000
lea eax, [ebp - 0x1901c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x402556
mov esi, dword [ebp - 0x19098]
cmp esi, ebx
jbe 0x402556
add dword [ebp - 0x19094], esi
cmp dword [ebp + 0xc], ebx
je 0x4024be
push ebx
lea ecx, [ebp - 0x190bc]
mov dword [ebp - 0x190a4], 0xf
call fcn.00401d55
push esi
lea eax, [ebp - 0x1901c]
push eax
lea ecx, [ebp - 0x190bc]
call fcn.00403ad1
lea eax, [ebp - 0x190bc]
push eax
push dword [ebp - 0x19094]
mov byte [ebp - 4], 0x12
push dword [ebp - 0x190a0]
lea ecx, [ebp + 0xc]
push dword [ebp - 0x190cc]
call fcn.00403278
push ebx
push 1
lea ecx, [ebp - 0x190bc]
mov byte [ebp - 4], 0xf
call fcn.00401d71
jmp 0x4024be
mov eax, dword [ebp - 0x19094]
cmp eax, dword [ebp - 0x190a0]
je 0x4025ae
cmp dword [ebp + 0xc], ebx
je 0x4025ae
push ebx
lea ecx, [ebp - 0x190bc]
mov dword [ebp - 0x190a4], 0xf
call fcn.00401d55
lea eax, [ebp - 0x190bc]
push eax
push ebx
mov byte [ebp - 4], 0x13
push dword [ebp - 0x190a0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403278
push ebx
push 1
lea ecx, [ebp - 0x190bc]
call fcn.00401d71
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x19090]
call esi
push dword [ebp - 0x1909c]
call esi
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x1908c]
call fcn.00401952
push ebx
push edi
lea esi, [ebp - 0x19054]
call fcn.00401952
push ebx
push edi
lea esi, [ebp - 0x19038]
call fcn.00401952
push ebx
push edi
lea esi, [ebp - 0x19070]
call fcn.00401952
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0xc]
call fcn.00402fc1
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.00433357
leave
ret 0x24