Function at 0x1000f972
Capabilities:
Check http status code
Check if file exists
Connect to http server
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], 0x50
mov dword [ebp - 0x14], 0x840cf700
cmp esi, ebx
je 0x1000fc3b
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x1000f9cb
push 0x83
push 8
mov edx, 0x10026364
call fcn.100117e3
push eax
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x1000f9df
mov dword [ebp - 8], 1
push 0x1002079c
push 0x100207a0
push dword [esi]
call fcn.100119fe
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x1000fc3b
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.ntdll.dll_strstr]
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1000fc33
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000fa19
push ebx
push ebx
sub eax, edi
add dword [ebp - 0xc], eax
mov eax, dword [esi + 8]
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x1000fc33
cmp dword [ebp - 8], ebx
je 0x1000fa51
mov dword [ebp - 0x10], 0x1bb
mov dword [ebp - 0x14], 0x848cf700
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1000fc14
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
cmp edi, ebx
je 0x1000fa90
push 0x84
push 3
mov eax, edi
mov edx, 0x10026698
call fcn.100117e3
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x1000faaf
push 0x80
push 8
mov edx, 0x1002635c
call fcn.100117e3
push ebx
push dword [ebp - 0x14]
push ebx
push ebx
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1000fc14
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x1000faec
push 0x20000000
push 0xffffffffffffffff
push esi
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x1000fc14
cmp dword [ebp - 8], ebx
je 0x1000fb37
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x1f
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x1000fc14
push dword [ebp - 0x14]
or dword [ebp - 8], 0x3380
lea eax, [ebp - 8]
push eax
push 0x1f
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x1000fc14
mov edi, dword [ebp - 4]
push ebx
push ebx
call fcn.1000f510
test eax, eax
je 0x1000fc14
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000fc14
cmp dword [ebp - 0x18], 0xc8
jne 0x1000fc14
mov edi, 0x1000
mov esi, edi
call fcn.10012679
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1000fc14
mov esi, dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000fbaa
mov edi, dword [esi + 4]
call fcn.100122a2
mov edi, 0x1000
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000fbf2
jmp 0x1000fbc7
mov esi, dword [ebp + 8]
cmp dword [ebp - 8], ebx
je 0x1000fbf2
push dword [ebp - 0xc]
push dword [esi + 4]
mov esi, dword [ebp - 8]
call fcn.100124f2
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1000fbc4
mov esi, dword [ebp - 0xc]
call fcn.1001272d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], ebx
je 0x1000fc0d
push dword [eax + 0x14]
push dword [eax + 4]
call fcn.1001256a
mov dword [ebp - 0x20], 1
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
cmp dword [ebp - 0x10], ebx
je 0x1000fc29
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 4], ebx
je 0x1000fc33
push dword [ebp - 4]
call esi
mov esi, dword [ebp - 0x1c]
call fcn.1001272d
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
leave
ret 4