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

Disassembly:
push 0xffffffffffffffff
push 0x45c869
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov eax, dword [0x4774f0]
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.0044603d
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.00409b80
push esi
push esi
push esi
push esi
push 0x4614c8
mov byte [esp + 0x114], 1
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x40ce4d
mov edx, dword [esp + 0x10c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ce06
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 0x40ce4d
mov al, byte [esp + 0x118]
test al, al
je 0x40ce74
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 0x40ce55
or edi, 0xffffffff
jmp 0x40cf40
push edi
push ebp
lea ecx, [esp + 0xe0]
call fcn.00403690
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xd8]
push edx
call fcn.0040c930
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 0x40cea9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40cea9
push eax
push ebp
lea ecx, [esp + 0x60]
call fcn.00409970
lea ecx, [esp + 0x10]
push ecx
push edi
push ebp
push esi
call ebx
test eax, eax
jne 0x40ce88
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x5c]
call fcn.0040a310
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x104], 2
call fcn.0040a310
mov ecx, dword [edi + 0x14]
mov edx, dword [eax + 0x18]
mov edi, 0x10
cmp edx, edi
mov byte [esp + 0x100], 3
jb 0x40ceeb
mov eax, dword [eax + 4]
jmp 0x40ceee
add eax, 4
mov ebx, dword [esp + 0x110]
push ecx
push eax
mov ecx, ebx
call fcn.00403690
cmp dword [esp + 0x38], edi
jb 0x40cf11
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00446038
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jb 0x40cf39
mov edx, dword [esp + 0x40]
push edx
call fcn.00446038
add esp, 4
mov edi, dword [ebx + 0x14]
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x40cf4d
push ebp
call fcn.00446038
add esp, 4
test esi, esi
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x40cf5a
push esi
call ebp
test ebx, ebx
je 0x40cf61
push ebx
call ebp
lea ecx, [esp + 0xa4]
mov byte [esp + 0x100], 0
call fcn.00409530
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], 0x460c84
call fcn.0043ef7a
cmp dword [esp + 0xf0], 0x10
jb 0x40cfa6
mov eax, dword [esp + 0xdc]
push eax
call fcn.00446038
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.004305ce
add esp, 0xf4
ret 0x14