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

Disassembly:
push 0xffffffffffffffff
push 0x4298ce
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.00425ac0
mov eax, dword [0x43b14c]
xor eax, esp
mov dword [esp + 0x1030], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
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 [0x44130c]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x44130c
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 0x40a950
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 [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
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.00401450
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, 0x42d28c
mov byte [esp + 0x1050], 2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a744
sub eax, edx
sar eax, 1
mov ebx, eax
push 0x42d28c
lea eax, [esp + 0x20]
call fcn.00401450
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jle 0x40a7a5
push 2
push 0x42d2ec
lea edx, [esp + 0x20]
push edx
call fcn.00403eb0
mov eax, 0x42d28c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a786
sub eax, edx
sar eax, 1
push eax
push 0x42d28c
lea eax, [esp + 0x20]
push eax
call fcn.00403eb0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
xor edi, edi
call fcn.00403160
mov ecx, eax
mov bl, 3
lea eax, [esp + 0x34]
mov byte [esp + 0x1050], bl
call fcn.00403530
mov eax, dword [eax]
push str.https:__
push eax
call fcn.004198f9
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 0x40a805
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 0x40a82d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x40a839
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 0x40a8b8
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 0x40a88b
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 0x40a950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a950
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.00405cd0
test edi, edi
je 0x40a8fc
cmp dword [esp + 0x20], 0
jne 0x40a8c6
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 0x40a924
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 0x40a94c
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.00418df4
add esp, 0x1040
ret