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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5746
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4b8], ecx
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0
mov byte [ebp - 0x464], 0
push 0x3ff
push 0
lea eax, [ebp - 0x463]
push eax
call fcn.10092830
add esp, 0xc
mov dword [ebp - 0x4ac], 1
mov dword [ebp - 0x4a8], 0x400
lea ecx, [ebp - 0x480]
call fcn.10002230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a4]
call fcn.10005390
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.10005390
mov byte [ebp - 4], 3
push 0
push 0
push 0
push 1
push 0x10107074
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x488], eax
cmp dword [ebp - 0x488], 0
jne 0x10006246
push 3
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
call fcn.100af510
add esp, 0xc
mov dword [ebp - 0x4bc], eax
mov edx, dword [ebp - 0x4bc]
mov dword [ebp - 0x4c0], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0x64]
call fcn.10005340
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.10003050
lea ecx, [ebp - 0x64]
call fcn.100aa4c0
push eax
push 0x10107080
lea ecx, [ebp - 0x4a4]
push ecx
call fcn.100abd40
add esp, 0xc
jmp 0x1000637f
push 0
push 0x4000000
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.10002210
push eax
mov edx, dword [ebp - 0x488]
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0
jne 0x100062e5
push 3
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
call fcn.100af510
add esp, 0xc
mov dword [ebp - 0x4c4], eax
mov ecx, dword [ebp - 0x4c4]
mov dword [ebp - 0x4c8], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4c8]
push edx
lea ecx, [ebp - 0x64]
call fcn.10005340
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.10003050
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4b0], eax
lea ecx, [ebp - 0x64]
call fcn.100aa4c0
push eax
push str.InternetOpenUrlA_failed__s
lea eax, [ebp - 0x4a4]
push eax
call fcn.100abd40
add esp, 0xc
jmp 0x1000637f
cmp dword [ebp + 0x28], 0
jbe 0x1000631e
push 4
lea ecx, [ebp + 0x28]
push ecx
push 6
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x1000631e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101070e8
call fcn.100b1bb0
push eax
call fcn.100b2600
add esp, 0xc
mov eax, dword [ebp - 0x4a8]
push eax
push 0
lea ecx, [ebp - 0x464]
push ecx
call fcn.10092830
add esp, 0xc
lea edx, [ebp - 0x4ac]
push edx
mov eax, dword [ebp - 0x4a8]
sub eax, 1
push eax
lea ecx, [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x4ac], 0
je 0x10006376
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x480]
call fcn.100041b0
cmp dword [ebp - 0x4ac], 0
jne 0x1000631e
cmp dword [ebp - 0x488], 0
je 0x10006395
mov ecx, dword [ebp - 0x488]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x484], 0
je 0x100063ab
mov edx, dword [ebp - 0x484]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp + 8]
call fcn.10002160
mov ecx, dword [ebp - 0x4b4]
or ecx, 1
mov dword [ebp - 0x4b4], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.10003050
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4a4]
call fcn.10003050
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x480]
call fcn.100018b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.100018b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret 0x24