Function at 0x41ce40
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 0x474d7e
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x450], eax
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov eax, dword [esp + 0x478]
mov ebp, dword [esp + 0x474]
mov dword [esp + 0x1c], eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0x10], ebp
mov edi, edx
mov dword [esp + 0x18], eax
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x474], eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x41cf01
push 0xc
add esi, 0x74
mov eax, 0x47bc68
call fcn.00403eb0
push 0
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], 0
push 0x47a966
mov ecx, ebp
mov byte [ebp + 4], 0
call fcn.00403510
cmp dword [esp + 0x494], 0x10
jb 0x41cefa
mov edx, dword [esp + 0x480]
push edx
call fcn.0045850d
add esp, 4
mov eax, ebp
jmp 0x41d288
call fcn.0041d5c0
push 0
push 0
push 0
push 0
push str.Http_connect
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x94], eax
test eax, eax
jne 0x41cf73
push 0xc
add esi, 0x74
mov eax, 0x47bc68
call fcn.00403eb0
push 0
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], 0
push 0x47a966
mov ecx, ebp
mov byte [ebp + 4], 0
call fcn.00403510
cmp dword [esp + 0x494], 0x10
jb 0x41cefa
mov eax, dword [esp + 0x480]
push eax
call fcn.0045850d
add esp, 4
mov eax, ebp
jmp 0x41d288
push edi
push esi
call fcn.0041d2c0
mov ecx, dword [esi + 0x94]
mov ebp, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edi, [esi + 0x90]
push edi
push 2
push ecx
call ebp
cmp dword [esi + 0x1c], 0x10
jb 0x41cf9f
mov eax, dword [esi + 8]
jmp 0x41cfa2
lea eax, [esi + 8]
mov edx, dword [esi + 0x94]
push 0
push 0
push 3
push 0
push 0
push 0x50
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x98], eax
test eax, eax
jne 0x41d008
push 0xc
add esi, 0x74
mov eax, 0x47bc68
call fcn.00403eb0
mov esi, dword [esp + 0x10]
push 0x47a966
mov ecx, esi
call fcn.004035f0
cmp dword [esp + 0x494], 0x10
jb 0x41d286
mov eax, dword [esp + 0x480]
push eax
call fcn.0045850d
add esp, 4
jmp 0x41d286
mov dword [esp + 0x18], 0x47bb94
cmp ebx, 1
je 0x41d01d
mov dword [esp + 0x18], str.POST
push 4
push edi
push 2
push eax
mov dword [esi], ebx
call ebp
cmp dword [esi + 0x54], 0x10
jb 0x41d032
mov eax, dword [esi + 0x40]
jmp 0x41d035
lea eax, [esi + 0x40]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x98]
push 0
push 0x80000000
push 0
push 0
push str.HTTP_1.1
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x9c], eax
test eax, eax
jne 0x41d086
push 0xc
add esi, 0x74
mov eax, 0x47bc68
call fcn.00403eb0
mov esi, dword [esp + 0x10]
push 0x47a966
mov ecx, esi
call fcn.004035f0
jmp 0x41d27a
cmp dword [esp + 0x490], 0
jne 0x41d09d
push esi
lea eax, [esp + 0x480]
call fcn.0041d4a0
mov eax, dword [esi + 0x9c]
push 4
push edi
push 2
push eax
call ebp
cmp ebx, 1
jne 0x41d0de
cmp dword [esp + 0x494], 0x10
mov eax, dword [esp + 0x480]
jae 0x41d0c8
lea eax, [esp + 0x480]
mov ecx, dword [esp + 0x490]
mov edx, dword [esi + 0x9c]
push 0
push 0
push ecx
push eax
push edx
jmp 0x41d120
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x14]
mov ecx, 0x10
cmp dword [eax + 0x18], ecx
jb 0x41d0f4
mov eax, dword [eax + 4]
jmp 0x41d0f7
add eax, 4
cmp dword [esp + 0x494], ecx
mov ecx, dword [esp + 0x480]
jae 0x41d10e
lea ecx, [esp + 0x480]
push edx
push eax
mov eax, dword [esp + 0x498]
push eax
push ecx
mov ecx, dword [esi + 0x9c]
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x41d146
mov eax, esi
call fcn.0041d500
mov esi, dword [esp + 0x10]
push 0x47a966
mov ecx, esi
call fcn.004035f0
jmp 0x41d27a
push 0x400
lea edx, [esp + 0x61]
push 0
push edx
mov byte [esp + 0x68], 0
call fcn.0045da70
mov edx, dword [esi + 0x9c]
add esp, 0xc
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
push ecx
push 0x16
push edx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x41d12a
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
call fcn.004035f0
push 0
lea ecx, [esp + 0x44]
push ecx
mov edx, str._404
mov byte [esp + 0x474], 1
call fcn.00402590
cmp eax, 0xffffffff
je 0x41d1ce
mov eax, esi
call fcn.0041d500
mov esi, dword [esp + 0x10]
push 0x47a966
mov ecx, esi
call fcn.004035f0
jmp 0x41d271
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
lea edx, [esp + 0x14]
push edx
push 0x400
mov byte [esp + 0x474], 2
mov ecx, dword [esi + 0x9c]
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x64]
push eax
push ecx
call edi
test eax, eax
je 0x41d258
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41d258
mov byte [esp + eax + 0x5c], 0
lea eax, [esp + 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d224
sub eax, edx
push eax
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x2c]
call fcn.004029f0
mov edx, dword [esi + 0x9c]
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esp + 0x64]
push ecx
push edx
call edi
test eax, eax
jne 0x41d210
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00403a00
lea ecx, [esp + 0x24]
call fcn.00403a30
lea ecx, [esp + 0x40]
call fcn.00403a30
lea ecx, [esp + 0x47c]
call fcn.00403a30
mov eax, esi
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.004584fe
add esp, 0x460
ret 0x24