Function at 0x41da30
Capabilities:
Check internet connectivity via wininet
Create http request
Get http content length
Read data from internet
Receive data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46ca1e
push eax
mov eax, 0xa2bc
mov dword fs:[0], esp
call fcn.0043e5d0
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xcd]
mov byte [esp + 0xcc], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0xa2e0]
push 0x8000000
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
lea ecx, [esp + 0xd0]
push eax
mov esi, 1
push ecx
push edx
mov dword [esp + 0xa2e4], esi
mov dword [esp + 0x34], 0x200
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
cmp eax, ebx
jne 0x41dacb
mov edi, dword [esp + 0xa2dc]
push 0x48edd8
mov ecx, edi
call fcn.0045b618
mov dword [esp + 0x10], esi
jmp 0x41dba4
lea ecx, [esp + 0x44]
call fcn.004012f0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xcc]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00401360
add esp, 0xc
push eax
lea ecx, [esp + 0xa2e4]
mov byte [esp + 0xa2d8], 2
call fcn.0045b6e3
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa2d4], 1
call fcn.0045b5aa
lea eax, [esp + 0x2c]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x50]
call fcn.00459b66
mov edx, dword [esp + 0x86]
lea eax, [esp + 0x8c]
and edx, 0xffff
push edx
push str.Agent_ld
push eax
call fcn.0043e574
mov al, byte [esp + 0x38]
add esp, 0xc
test al, 4
push ebx
push ebx
push ebx
jne 0x41db78
lea ecx, [esp + 0x98]
push 4
push ecx
jmp 0x41db81
lea edx, [esp + 0x98]
push ebx
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, ebx
jne 0x41dbbe
mov edi, dword [esp + 0xa2dc]
push 0x48edd8
mov ecx, edi
call fcn.0045b618
mov dword [esp + 0x10], esi
lea ecx, [esp + 0xa2e0]
mov byte [esp + 0xa2d4], bl
call fcn.0045b5aa
mov eax, edi
jmp 0x41ddf2
mov ecx, dword [0x488484]
mov eax, dword [str.Accept:___r_n_r_n]
mov edx, dword [0x488488]
mov esi, dword [esp + 0xa2e0]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
mov eax, dword [0x48848c]
push ebx
lea ecx, [esp + 0x38]
push 0x84000100
push ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x3c]
push eax
push edx
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x41dc19
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x41dc58
lea eax, [esp + 0x30]
push ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x20000005
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x41dc46
mov dword [esp + 0x18], ebx
jmp 0x41dc4c
cmp dword [esp + 0x18], ebx
ja 0x41dc78
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov esi, dword [esp + 0xa2dc]
push 0x48edd8
mov ecx, esi
call fcn.0045b618
mov dword [esp + 0x10], 1
jmp 0x41dddd
push 0x2800
call fcn.0045b2eb
add esp, 4
lea ecx, [esp + 0x50]
push 0x400
push 0x2800
push eax
call fcn.00463b06
push ecx
mov byte [esp + 0xa2d8], 3
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x489bb0
call fcn.0045b618
mov ecx, dword [esp + 0x18]
call fcn.0041d780
mov ecx, 0x2800
xor eax, eax
lea edi, [esp + 0x2cc]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
push edx
lea eax, [esp + 0x2d0]
push 0x2800
push eax
push esi
call edi
test eax, eax
je 0x41dd1d
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x41dd1d
lea ecx, [esp + 0x2cc]
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00463cdd
lea edx, [esp + 0x28]
lea eax, [esp + 0x2cc]
push edx
push 0x2800
push eax
push esi
call edi
test eax, eax
jne 0x41dcea
push 0x492044
lea ecx, [esp + 0x18]
push 0x492060
push ecx
call fcn.0045b7d9
mov eax, dword [eax]
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [0x492048]
lea ecx, [esp + 0x58]
push eax
push ecx
mov byte [esp + 0xa2e4], 4
call fcn.0041de10
add esp, 0x10
lea ecx, [esp + 0x14]
mov edi, eax
mov byte [esp + 0xa2d4], 3
call fcn.0045b5aa
push edi
lea ecx, [esp + 0x24]
call fcn.0045b618
push edi
mov byte [esp + 0xa2d8], 5
call fcn.0043e66c
add esp, 4
lea ecx, [esp + 0x50]
call fcn.00463b6d
push eax
call fcn.0045b314
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebp
call esi
mov esi, dword [esp + 0xa2dc]
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.0045b31f
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 1
mov byte [esp + 0xa2d4], 3
call fcn.0045b5aa
lea ecx, [esp + 0x50]
mov byte [esp + 0xa2d4], 1
call fcn.00463b7f
lea ecx, [esp + 0xa2e0]
mov byte [esp + 0xa2d4], bl
call fcn.0045b5aa
mov eax, esi
mov ecx, dword [esp + 0xa2cc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa2c8
ret 8