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

Disassembly:
push 0xffffffffffffffff
push 0x47f280
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x49d2b0]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x46c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x47c]
mov eax, dword [esp + 0x484]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x24], ebp
mov edi, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x474], 1
push ebx
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x44ca53
push 0xc
add esi, 0x74
mov eax, 0x48a2a8
call fcn.00402880
push ebx
mov esi, 0xf
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push 0x485815
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00403080
mov dword [esp + 0x14], 1
mov byte [esp + 0x474], bl
cmp dword [esp + 0x4a0], 0x10
jb 0x44ca39
mov edx, dword [esp + 0x48c]
push edx
call fcn.0045f4bb
add esp, 4
mov dword [esp + 0x4a0], esi
mov dword [esp + 0x49c], ebx
mov byte [esp + 0x48c], bl
jmp 0x44ce30
call fcn.0044d190
push ebx
push ebx
push ebx
push ebx
push 0x48a1d8
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x94], eax
cmp eax, ebx
jne 0x44cade
push 0xc
add esi, 0x74
mov eax, 0x48a2a8
call fcn.00402880
push ebx
mov esi, 0xf
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push 0x485815
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00403080
mov dword [esp + 0x14], 1
mov byte [esp + 0x474], bl
cmp dword [esp + 0x4a0], 0x10
jb 0x44ca39
mov eax, dword [esp + 0x48c]
push eax
call fcn.0045f4bb
add esp, 4
mov dword [esp + 0x4a0], esi
mov dword [esp + 0x49c], ebx
mov byte [esp + 0x48c], bl
jmp 0x44ce30
push edi
mov edi, esi
call fcn.0044ce60
mov ecx, dword [esi + 0x94]
push 4
lea edi, [esi + 0x90]
push edi
push 2
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [esi + 0x1c], 0x10
jb 0x44cb09
mov eax, dword [esi + 8]
jmp 0x44cb0c
lea eax, [esi + 8]
mov edx, dword [esi + 0x94]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x98], eax
cmp eax, ebx
jne 0x44cb8e
push 0xc
add esi, 0x74
mov eax, 0x48a2a8
call fcn.00402880
push 0x485815
mov ecx, ebp
call fcn.00403160
mov dword [esp + 0x14], 1
mov byte [esp + 0x474], bl
cmp dword [esp + 0x4a0], 0x10
jb 0x44cb70
mov eax, dword [esp + 0x48c]
push eax
call fcn.0045f4bb
add esp, 4
mov dword [esp + 0x4a0], 0xf
mov dword [esp + 0x49c], ebx
mov byte [esp + 0x48c], bl
jmp 0x44ce30
mov ecx, dword [esp + 0x480]
mov dword [esp + 0x1c], 0x48580c
cmp ecx, 1
je 0x44cbaa
mov dword [esp + 0x1c], 0x485810
push 4
push edi
push 2
push eax
mov dword [esi], ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [esi + 0x54], 0x10
jb 0x44cbc3
mov eax, dword [esi + 0x40]
jmp 0x44cbc6
lea eax, [esi + 0x40]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x98]
push ebx
push 0x80000000
push ebx
push ebx
push str.HTTP_1.1
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x9c], eax
cmp eax, ebx
jne 0x44cc18
push 0xc
add esi, 0x74
mov eax, 0x48a2a8
call fcn.00402880
push 0x485815
mov ecx, ebp
call fcn.00403160
mov dword [esp + 0x14], 1
jmp 0x44ce1d
cmp dword [esp + 0x49c], ebx
jne 0x44cc2e
push esi
lea eax, [esp + 0x48c]
call fcn.0044d0b0
mov eax, dword [esi + 0x9c]
push 4
push edi
push 2
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edi, 1
cmp dword [esp + 0x480], edi
jne 0x44cc7a
cmp dword [esp + 0x4a0], 0x10
mov eax, dword [esp + 0x48c]
jae 0x44cc66
lea eax, [esp + 0x48c]
mov ecx, dword [esp + 0x49c]
mov edx, dword [esi + 0x9c]
push ebx
push ebx
push ecx
push eax
push edx
jmp 0x44ccbc
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x14]
mov ecx, 0x10
cmp dword [eax + 0x18], ecx
jb 0x44cc90
mov eax, dword [eax + 4]
jmp 0x44cc93
add eax, 4
cmp dword [esp + 0x4a0], ecx
mov ecx, dword [esp + 0x48c]
jae 0x44ccaa
lea ecx, [esp + 0x48c]
push edx
push eax
mov eax, dword [esp + 0x4a4]
push eax
push ecx
mov ecx, dword [esi + 0x9c]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, ebx
jne 0x44cce2
mov eax, esi
call fcn.0044d110
push 0x485815
mov ecx, ebp
call fcn.00403160
mov dword [esp + 0x14], edi
jmp 0x44ce1d
push 0x400
lea edx, [esp + 0x69]
push ebx
push edx
mov byte [esp + 0x70], bl
call fcn.00464610
mov edx, dword [esi + 0x9c]
add esp, 0xc
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x6c]
push ecx
push 0x15
push edx
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, ebx
je 0x44ccc6
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x4c]
call fcn.00403160
mov byte [esp + 0x474], 2
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov edx, 0x48a200
call fcn.0044d130
cmp eax, 0xffffffff
je 0x44cd66
mov eax, esi
call fcn.0044d110
push 0x485815
mov ecx, ebp
call fcn.00403160
mov dword [esp + 0x14], edi
jmp 0x44ce0c
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x474], 3
mov ecx, dword [esi + 0x9c]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [esp + 0x18]
push edx
push 0x400
lea eax, [esp + 0x6c]
push eax
push ecx
call edi
cmp eax, ebx
je 0x44cde7
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x44cde7
mov byte [esp + eax + 0x64], bl
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44cdb3
sub eax, edx
push eax
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x34]
call fcn.00405d70
mov edx, dword [esi + 0x9c]
lea eax, [esp + 0x18]
push eax
push 0x400
lea ecx, [esp + 0x6c]
push ecx
push edx
call edi
cmp eax, ebx
jne 0x44cda0
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.00402c50
mov dword [esp + 0x14], 1
mov byte [esp + 0x474], 2
lea ecx, [esp + 0x2c]
call fcn.00402c80
mov byte [esp + 0x474], 1
lea ecx, [esp + 0x48]
call fcn.00402c80
mov byte [esp + 0x474], bl
lea ecx, [esp + 0x488]
call fcn.00402c80
mov eax, ebp
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.0045f4ac
add esp, 0x464
ret 0x28