Function at 0x1000f58c
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x28], edi
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x50
mov dword [ebp - 4], 0x840cf700
cmp ebx, edi
je 0x1000f962
push 0xc
pop esi
call fcn.10012679
mov dword [ebp - 8], eax
cmp eax, edi
je 0x1000f962
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
cmp dword [ebx + 0x20], edi
je 0x1000f61b
mov esi, dword [ebx + 0x1c]
add esi, esi
call fcn.10012679
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x1000f962
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push esi
call sub.ntdll.dll_memcpy
add esp, 0xc
push dword [ebx + 0x1c]
push esi
push dword [ebx + 0x28]
call fcn.1001499e
mov eax, dword [ebx + 8]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x1000f956
cmp dword [ebx + 0x2c], edi
je 0x1000f647
mov dword [ebp - 0x14], 0x1bb
mov dword [ebp - 4], 0x848cf700
push edi
push edi
push 3
push edi
push edi
push dword [ebp - 0x14]
push dword [ebx]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x1000f937
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, edi
je 0x1000f685
push 0x90
push 4
mov eax, esi
mov edx, 0x100266c4
call fcn.100117e3
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x1000f6a4
push 0x80
push 8
mov edx, 0x1002635c
call fcn.100117e3
push edi
push dword [ebp - 4]
push edi
push edi
push eax
push dword [ebx + 4]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp + 8], eax
cmp eax, edi
je 0x1000f937
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp dword [ebx + 0x10], edi
jne 0x1000f702
push 0x34
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x1000f6ed
push 0x92
push 0x33
mov edx, 0x10026278
call fcn.100117e3
push 0x20000000
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x1000f937
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x1000f71e
push 0x20000000
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x1000f937
cmp dword [ebx + 0x10], edi
je 0x1000f77b
cmp dword [ebx + 0x14], edi
je 0x1000f77b
push 0x50
pop eax
call fcn.1001dad0
mov eax, esp
cmp eax, edi
je 0x1000f747
push 0x8a
push 0x4d
mov edx, 0x10026228
call fcn.100117e3
push dword [ebx + 0x14]
push eax
lea eax, [ebp - 0x12c]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
push 0x20000000
push 0xffffffffffffffff
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x1000f937
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [ebx + 0x34], edi
je 0x1000f7a2
push 4
lea eax, [ebp - 0xc]
push eax
push 6
push dword [ebp + 8]
mov dword [ebp - 0xc], 0xafc8
call esi
test eax, eax
je 0x1000f937
cmp dword [ebx + 0x30], edi
je 0x1000f7c3
push 4
lea eax, [ebp - 0xc]
push eax
push 5
push dword [ebp + 8]
mov dword [ebp - 0xc], 0xafc8
call esi
test eax, eax
je 0x1000f937
cmp dword [ebx + 0x2c], edi
je 0x1000f80a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1f
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
je 0x1000f937
push dword [ebp - 0xc]
or dword [ebp - 4], 0x3380
lea eax, [ebp - 4]
push eax
push 0x1f
push dword [ebp + 8]
call esi
test eax, eax
je 0x1000f937
mov eax, dword [ebp - 0x18]
cmp eax, edi
jne 0x1000f814
mov eax, dword [ebx + 0x18]
push dword [ebx + 0x1c]
mov edi, dword [ebp + 8]
push eax
call fcn.1000f510
test eax, eax
je 0x1000f935
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x1000f935
cmp dword [ebp - 0x1c], 0xc8
jne 0x1000f935
mov esi, 0x1000
call fcn.10012679
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
test eax, eax
je 0x1000f935
call fcn.10012679
mov dword [ebp - 4], eax
test eax, eax
je 0x1000f935
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000f8f0
cmp dword [ebp - 0x10], 0
mov edi, dword [ebp - 8]
je 0x1000f8f3
push dword [ebp - 0x10]
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push dword [ebp - 4]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x10]
add dword [edi + 8], eax
mov esi, dword [edi + 8]
mov edi, dword [edi + 4]
add esp, 0xc
lea esi, [esi + 0x1000]
call fcn.100126c8
mov edi, dword [ebp - 8]
mov dword [edi + 4], eax
test eax, eax
je 0x1000f8f3
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x1000
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1000f892
jmp 0x1000f8f3
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
call fcn.1001272d
mov esi, dword [edi + 4]
test esi, esi
je 0x1000f911
cmp dword [edi + 8], 0
jne 0x1000f911
call fcn.1001272d
and dword [edi + 4], 0
cmp dword [ebx + 0x24], 0
je 0x1000f92f
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1000f92f
mov eax, dword [edi + 8]
test eax, eax
je 0x1000f92f
push eax
push ecx
push dword [ebx + 0x28]
call fcn.1001499e
mov dword [edi], 1
xor edi, edi
push dword [ebp - 0x24]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
cmp dword [ebp - 0x14], edi
je 0x1000f94c
push dword [ebp - 0x14]
call esi
cmp dword [ebp + 8], edi
je 0x1000f956
push dword [ebp + 8]
call esi
mov esi, dword [ebp - 0x18]
cmp esi, edi
je 0x1000f962
call fcn.1001272d
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x138]
pop edi
pop esi
pop ebx
leave
ret 4