Function at 0x1000a720
Capabilities:
Access peb ldr_data
Create http request
Read data from internet
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x1002923e
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.100256f0
mov eax, dword [0x1003b030]
xor eax, esp
mov dword [esp + 0x1030], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003b030]
xor eax, esp
push eax
lea eax, [esp + 0x1048]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1058]
xor ebx, ebx
mov dword [esp + 0x1050], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [0x1004130c]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x1004130c
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], ebp
call edx
add eax, 0x10
mov dword [esi], eax
push ebx
push ebx
push ebx
mov edi, 1
push edi
mov dword [esp + 0x1060], ebx
push ebx
mov dword [esp + 0x3c], edi
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, ebx
je 0x1000aa30
push 4
lea eax, [esp + 0x40]
push eax
push 0x41
push esi
mov dword [esp + 0x4c], edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, dword [0x1004130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1004130c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.Accept_Encoding:_gzip__deflate_r_nConnection:_Close
lea ebx, [edi + 0x30]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1054], edi
call fcn.10001450
mov edx, dword [0x1004130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1004130c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, 0x1002d2e0
mov byte [esp + 0x1050], 2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000a824
sub eax, edx
sar eax, 1
mov ebx, eax
push 0x1002d2e0
lea eax, [esp + 0x20]
call fcn.10001450
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jle 0x1000a885
push 2
push 0x1002d340
lea edx, [esp + 0x20]
push edx
call fcn.10003da0
mov eax, 0x1002d2e0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000a866
sub eax, edx
sar eax, 1
push eax
push 0x1002d2e0
lea eax, [esp + 0x20]
push eax
call fcn.10003da0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
xor edi, edi
call fcn.10002f50
mov ecx, eax
mov bl, 3
lea eax, [esp + 0x34]
mov byte [esp + 0x1050], bl
call fcn.10003320
mov eax, dword [eax]
push str.https:__
push eax
call fcn.100191a9
add esp, 8
test eax, eax
mov byte [esp + 0x1050], bl
mov eax, dword [esp + 0x34]
sete byte [esp + 0x17]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000a8e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1050], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a90d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x1000a919
mov edi, 0x800000
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esp + 0x30]
push 0
or edi, 0x4000000
push edi
push eax
push ebp
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
jne 0x1000a998
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x1050], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000a96b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x1050], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aa30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1000aa30
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
lea edx, [esp + 0x48]
push edx
push ebx
call ebp
mov esi, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + eax + 0x44], 0
call fcn.10005d40
test edi, edi
je 0x1000a9dc
cmp dword [esp + 0x20], 0
jne 0x1000a9a6
mov byte [esp + 0x1050], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000aa04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1050], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000aa2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x38]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
call edi
push esi
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1048]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1030]
xor ecx, esp
call fcn.100186a4
add esp, 0x1040
ret