Function at 0x405d70
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x440]
push eax
push edi
mov edi, eax
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
pop edi
pop eax
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x40], 0x2710
push 0
push 0xffffffffffffffff
push 0x2000
call fcn.004096a0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.004082d0
push 0
push 0xb3
push 0x412070
push 0xffffffffffffffff
lea eax, [ebp - 0x3c]
push eax
call fcn.004082d0
push 0
push 0
push 0
push 1
push dword [ebp - 0x3c]
call fcn.00407c80
mov dword [ebp - 0x450], eax
push dword [ebp - 0x450]
call sub.WININET.DLL_InternetOpenW
mov dword [ebp - 0x10], eax
push dword [ebp - 0x450]
call fcn.00407ce0
cmp dword [ebp - 0x10], 0
jne 0x405e8f
jmp 0x405fc5
push 4
lea eax, [ebp - 0x40]
push eax
push 2
push dword [ebp - 0x10]
call sub.WININET.DLL_InternetSetOptionA
push 0
push 0x84000100
push 0
push 0
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00407c80
mov dword [ebp - 0x454], eax
push dword [ebp - 0x454]
push dword [ebp - 0x10]
call sub.WININET.DLL_InternetOpenUrlW
mov dword [ebp - 0x14], eax
push dword [ebp - 0x454]
call fcn.00407ce0
cmp dword [ebp - 0x14], 0
jne 0x405ee1
jmp 0x405fc5
push 0xffffffffffffffff
push 0x200
call fcn.004096a0
push eax
push 0x200
lea eax, [ebp - 0x440]
push eax
call fcn.004084e0
mov dword [ebp - 0x444], 0x200
push 0
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x440]
push eax
push 0x13
push dword [ebp - 0x14]
call sub.WININET.DLL_HttpQueryInfoW
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x448]
test eax, eax
sete al
shr eax, 1
sbb eax, eax
lea ebx, [ebp - 0x440]
push ebx
mov ebx, eax
call fcn.0040ab80
cmp eax, 0xc8
setne al
shr eax, 1
sbb eax, eax
or ebx, eax
je 0x405f58
jmp 0x405fc5
lea eax, [ebp - 0x30]
push eax
push 0x2000
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call sub.WININET.DLL_InternetReadFile
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x30], 0
sete al
shr eax, 1
sbb eax, eax
mov ebx, dword [ebp - 0x448]
test ebx, ebx
sete bl
shr ebx, 1
sbb ebx, ebx
or eax, ebx
je 0x405f94
jmp 0x405fb2
push 0
push 0xffffffffffffffff
push dword [ebp - 0x30]
lea ebx, [ebp - 0x20]
push ebx
call fcn.004091f0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00409f20
jmp 0x405f58
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
call fcn.004082d0
push dword [ebp - 0x14]
call sub.WININET.DLL_InternetCloseHandle
push dword [ebp - 0x10]
call sub.WININET.DLL_InternetCloseHandle
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.00408d40
test eax, eax
sete al
shr eax, 1
sbb eax, eax
mov ebx, dword [ebp - 0x44c]
test ebx, ebx
sete bl
shr ebx, 1
sbb ebx, ebx
and eax, ebx
je 0x40600b
mov dword [ebp - 0x44c], 1
jmp 0x405e55
lea ebx, [ebp - 0x3c]
push ebx
call fcn.004093e0
lea ebx, [ebp - 0x2c]
push ebx
call fcn.004093e0
lea ebx, [ebp - 0x20]
push ebx
call fcn.004093e0
lea ebx, [ebp - 0xc]
push ebx
call fcn.00408be0
pop ebx
mov esp, ebp
pop ebp
ret 4