Function at 0x408cd0
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
sub esp, 0x428
push ebx
push esi
push edi
lea eax, [esp + 0x1c]
push eax
mov edi, ecx
lea ecx, [esp + 0x38]
push ecx
push 0x26
push 0
mov byte [esp + 0x1f], 0
mov dword [esp + 0x2c], 0x400
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
mov eax, dword [esp + 0x34]
lea esi, [edi + 4]
cmp eax, 3
jne 0x408d32
cmp dword [edi + 0x18], 0x10
jb 0x408d20
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push 0
push edx
push ecx
push 3
jmp 0x408d74
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push 0
push edx
push ecx
mov eax, esi
push 3
jmp 0x408d74
test eax, eax
jne 0x408d60
cmp dword [edi + 0x18], 0x10
jb 0x408d4e
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push 0
push edx
push ecx
push 0
jmp 0x408d74
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push 0
push edx
push ecx
mov eax, esi
push 0
jmp 0x408d74
cmp dword [edi + 0x18], 0x10
jb 0x408d6a
mov eax, dword [esi]
jmp 0x408d6c
mov eax, esi
push 0
push 0
push 0
push 1
mov ebx, dword [sym.imp.WININET.dll_InternetOpenA]
push eax
call ebx
mov dword [esp + 0x10], eax
test eax, eax
jne 0x408d9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0x428
ret 8
mov eax, dword [0x42863c]
mov edx, dword [str.Accept:___r_n_r_n]
mov ecx, dword [0x428640]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x438]
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x24], edx
mov edx, dword [0x428644]
push ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
jb 0x408ddc
mov ebp, dword [eax + 4]
add eax, 4
mov dword [esp + 0x18], eax
jmp 0x408de3
lea ebp, [eax + 4]
mov dword [esp + 0x18], ebp
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x408e93
cmp dword [esp + 0x38], 1
je 0x408e84
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, 0x10
cmp dword [edi + 0x18], ebp
jb 0x408e30
mov esi, dword [esi]
push 0
push 0
push 0
push 1
push esi
call ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x408e84
mov ecx, dword [esp + 0x43c]
cmp dword [ecx + 0x18], ebp
jb 0x408e57
mov edx, dword [esp + 0x18]
mov esi, dword [edx]
jmp 0x408e5b
mov esi, dword [esp + 0x18]
push 0
push 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x408e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408fc9
mov ebp, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x20000005
push ebp
mov dword [esp + 0x34], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x408ec7
call ebx
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x440]
mov edi, dword [esi + 8]
test edi, edi
je 0x408ef2
push 0
push 0
push 0
push edi
push ebp
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
cmp eax, edi
je 0x408ef2
call ebx
push 0
mov ecx, esi
call fcn.00404620
xor bl, bl
mov eax, dword [esi]
mov edx, eax
sub edx, dword [esi + 8]
cmp edx, 0x2000
jae 0x408f4c
lea edi, [eax + 0x100000]
cmp edi, eax
jbe 0x408f4c
push edi
call fcn.004127a2
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x408f46
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x408f3f
mov eax, dword [esi]
cmp eax, edi
jb 0x408f2b
mov eax, edi
push eax
push ecx
push ebp
call fcn.004152e0
mov eax, dword [esi + 4]
push eax
call fcn.00415d60
add esp, 0x10
mov dword [esi], edi
mov dword [esi + 4], ebp
jmp 0x408f48
xor bl, bl
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
sub edx, ecx
cmp edx, 0x2000
jb 0x408f99
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push 0x2000
add eax, ecx
push eax
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
sete bl
test bl, bl
je 0x408fc2
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x408f99
mov ecx, dword [esi + 8]
add ecx, eax
push ecx
mov ecx, esi
call fcn.00404620
test bl, bl
je 0x408fc2
cmp dword [esp + 0x18], 0
ja 0x408ef4
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x408fba
cmp dword [esi + 8], eax
seta byte [esp + 0x13]
jmp 0x408fc2
cmp dword [esi + 8], eax
sete byte [esp + 0x13]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x428
ret 8