Function at 0x4057d0
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434c26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push edi
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
push 0x73
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_74.0.3729.169_Safari_537.36
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.004037c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0x2c]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp edx, 8
jb 0x405878
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40586e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40599f
push edx
push ecx
call fcn.004171b5
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test ebx, ebx
je 0x4059a4
push esi
push eax
push 0x80000100
push eax
push eax
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x4059d6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0xd]
mov dword [ebp - 4], 3
push eax
push 0x400
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
call fcn.004054c0
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
push 0x400
push edi
push esi
mov dword [ebp - 0x18], 1
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40594d
nop dword [eax + eax]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40594d
push dword [ebp - 0x1c]
add eax, edi
mov ecx, ebx
push eax
push edi
push dword [ebx + 4]
call fcn.00405350
lea eax, [ebp - 0x14]
push eax
push 0x400
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405920
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
pop esi
test edi, edi
je 0x40598d
mov ecx, dword [ebp - 0x20]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x405983
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a0f
push ecx
push edi
call fcn.004171b5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0041b74f
push str.Couldnt_open_Internet_
lea ecx, [ebp - 0x58]
call fcn.00405620
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00406460
push eax
lea ecx, [ebp - 0x28]
call fcn.00405660
push 0x444110
lea eax, [ebp - 0x28]
push eax
call fcn.004180bf
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.Couldnt_open_URL_
lea ecx, [ebp - 0x70]
call fcn.00405620
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00406460
push eax
lea ecx, [ebp - 0x34]
call fcn.00405660
push 0x444110
lea eax, [ebp - 0x34]
push eax
call fcn.004180bf
call fcn.0041b74f
int3