Function at 0x40cf50
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x44f179
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov eax, dword [0x4664d0]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x114]
xor esi, esi
push edi
mov dword [esp + 0xf8], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edi
call fcn.004388ae
add esp, 4
mov ebp, eax
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], esi
mov byte [esp + 0xdc], 0
push 1
push 0x22
lea ecx, [esp + 0x60]
mov dword [esp + 0x108], esi
call fcn.004083d0
push esi
push esi
push esi
push esi
push 0x453488
mov byte [esp + 0x114], 1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x40d03d
mov edx, dword [esp + 0x10c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cff6
push 0
push 0x84003000
sub eax, esi
push eax
mov eax, dword [esp + 0x114]
push edx
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x40d03d
mov al, byte [esp + 0x118]
test al, al
je 0x40d064
push 0
lea ecx, [esp + 0x20]
push ecx
push ebp
push 0x15
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40d045
or edi, 0xffffffff
jmp 0x40d130
push edi
push ebp
lea ecx, [esp + 0xe0]
call fcn.00402f40
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xd8]
push edx
call fcn.0040cb20
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x10]
push eax
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40d099
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d099
push eax
push ebp
lea ecx, [esp + 0x60]
call fcn.00408160
lea ecx, [esp + 0x10]
push ecx
push edi
push ebp
push esi
call ebx
test eax, eax
jne 0x40d078
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x5c]
call fcn.00409350
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x104], 2
call fcn.00409350
mov ecx, dword [edi + 0x14]
mov edx, dword [eax + 0x18]
mov edi, 0x10
cmp edx, edi
mov byte [esp + 0x100], 3
jb 0x40d0db
mov eax, dword [eax + 4]
jmp 0x40d0de
add eax, 4
mov ebx, dword [esp + 0x110]
push ecx
push eax
mov ecx, ebx
call fcn.00402f40
cmp dword [esp + 0x38], edi
jb 0x40d101
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004388a9
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jb 0x40d129
mov edx, dword [esp + 0x40]
push edx
call fcn.004388a9
add esp, 4
mov edi, dword [ebx + 0x14]
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x40d13d
push ebp
call fcn.004388a9
add esp, 4
test esi, esi
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x40d14a
push esi
call ebp
test ebx, ebx
je 0x40d151
push ebx
call ebp
lea ecx, [esp + 0xa4]
mov byte [esp + 0x100], 0
call fcn.00407700
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], 0x452c34
call fcn.00431807
cmp dword [esp + 0xf0], 0x10
jb 0x40d196
mov eax, dword [esp + 0xdc]
push eax
call fcn.004388a9
add esp, 4
mov ecx, dword [esp + 0xf8]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe8]
pop ebx
call fcn.00422ede
add esp, 0xf4
ret 0x14