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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543260
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x58f860]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x88], ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x4a72da
xor al, al
jmp 0x4a76d3
lea ecx, [ebp - 0x28]
call fcn.0040ee90
lea ecx, [ebp - 0x14]
call fcn.0040ee90
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x591ad4
call fcn.0047ecf0
mov ecx, eax
call fcn.004a76f0
push eax
lea ecx, [ebp - 0x28]
call fcn.0041c8e0
lea ecx, [ebp - 0x5c]
call fcn.0040f740
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4a7454
mov dword [ebp - 0x3c], 0xbb8
push 4
lea ecx, [ebp - 0x3c]
push ecx
push 2
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0x102
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.0041cb20
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4a744a
push 0x100000
call fcn.004c8580
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x40], ecx
push 0x100000
push 0
mov edx, dword [ebp - 0x40]
push edx
call fcn.00512af0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push 0x100000
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x2c], 0
jbe 0x4a7421
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
call fcn.004c8580
add esp, 4
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00512af0
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00511ce0
add esp, 0xc
cmp dword [ebp - 0x40], 0
je 0x4a7440
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.005124eb
add esp, 4
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4a7463
mov dword [ebp - 4], 0xffffffff
mov byte [ebp - 0x19], 0
cmp dword [ebp - 0x20], 0
je 0x4a76ae
push 0x3a8
mov eax, dword [ebp - 0x20]
push eax
call fcn.0042cf40
add esp, 8
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0051330e
add esp, 4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x190
jge 0x4a7670
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041cec0
push str.__r_n_t
lea ecx, [ebp - 0x14]
call fcn.0047e330
push 0
push 0x565f60
lea ecx, [ebp - 0x14]
call fcn.0047e090
mov dword [ebp - 0x50], eax
push 0
push 0x565f5c
lea ecx, [ebp - 0x14]
call fcn.0047e090
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x50], 0
jle 0x4a7670
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x50]
add ecx, 1
push ecx
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0047e500
push eax
mov ecx, dword [ebp + 8]
call fcn.0041c8e0
lea ecx, [ebp - 0x6c]
call fcn.0040f740
push 0
push 0x565f54
lea ecx, [ebp - 0x14]
call fcn.0047e090
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
push 0x558c1c
lea ecx, [ebp - 0x14]
call fcn.0047e090
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x50]
sub ecx, 3
push ecx
mov edx, dword [ebp - 0x50]
add edx, 3
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x14]
call fcn.0047e500
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0041c8e0
lea ecx, [ebp - 0x70]
call fcn.0040f740
push 0x565dec
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041cac0
add esp, 8
movzx edx, al
test edx, edx
jne 0x4a75d1
push 0x565e0c
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041cac0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x4a75d1
push 0x565e04
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041cac0
add esp, 8
movzx eax, al
test eax, eax
jne 0x4a75d1
push 0x565dfc
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041cac0
add esp, 8
movzx edx, al
test edx, edx
je 0x4a75e2
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0041c8e0
jmp 0x4a766c
push 0
push 0x565efc
mov ecx, dword [ebp + 0xc]
call fcn.0047e090
mov dword [ebp - 0x58], eax
push 0
push str.l:S
mov ecx, dword [ebp + 0xc]
call fcn.0047e090
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x58], 0
jle 0x4a763a
mov ecx, dword [ebp + 0xc]
call fcn.0041cc20
sub eax, dword [ebp - 0x58]
sub eax, 1
push eax
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0047e5c0
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0041c8e0
lea ecx, [ebp - 0x74]
call fcn.0040f740
jmp 0x4a766c
cmp dword [ebp - 0x54], 0
jle 0x4a766c
mov ecx, dword [ebp + 0xc]
call fcn.0041cc20
sub eax, dword [ebp - 0x58]
sub eax, 3
push eax
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0047e5c0
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0041c8e0
lea ecx, [ebp - 0x78]
call fcn.0040f740
mov byte [ebp - 0x19], 1
cmp dword [ebp - 0x44], 0
je 0x4a768f
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.005124eb
add esp, 4
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x20], 0
je 0x4a76ae
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
push eax
call fcn.005124eb
add esp, 4
mov dword [ebp - 0x20], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0x81], cl
lea ecx, [ebp - 0x14]
call fcn.0040f740
lea ecx, [ebp - 0x28]
call fcn.0040f740
mov al, byte [ebp - 0x81]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc