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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549d30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5aaef0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x2c], ebx
xor esi, esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push esi
push esi
push esi
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1c], eax
push esi
test eax, eax
jne 0x4052a4
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4054de
push 0x4000000
push 0
push 0
push dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x4052d3
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push dword [ebp - 0x1c]
call esi
xor esi, esi
jmp 0x4054de
push 0x1f4
call fcn.00531b67
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4052fe
push dword [ebp - 0x34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
xor esi, esi
jmp 0x4054de
mov dword [ebp - 0x20], 0
push 0x1f4
push 0
push eax
call fcn.00531650
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 0x1f4
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.WININET.dll_InternetReadFile]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x20], ecx
jbe 0x40541a
jmp 0x405340
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0xe]
mov al, byte [ecx + eax]
mov byte [ebp - 0xd], al
mov byte [ebp - 0xe], al
cmp edx, edi
jae 0x4053b7
cmp ebx, edx
ja 0x4053b7
mov eax, edx
sub eax, ebx
mov dword [ebp - 0x18], eax
cmp edi, esi
jne 0x4053ae
mov eax, esi
sub eax, edi
cmp eax, 1
jae 0x4053ab
mov eax, ebx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405428
sub esi, ebx
or eax, 0xffffffff
mov ecx, esi
sub edi, ebx
shr ecx, 1
inc edi
sub eax, ecx
cmp eax, esi
jae 0x40538f
xor esi, esi
jmp 0x405391
add esi, ecx
cmp esi, edi
lea ecx, [ebp - 0x2c]
cmovb esi, edi
push esi
call fcn.00406890
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
test edi, edi
je 0x405409
mov al, byte [ebx + eax]
jmp 0x405407
cmp edi, esi
jne 0x405403
mov eax, esi
sub eax, edi
cmp eax, 1
jae 0x405400
mov eax, ebx
sub eax, edi
dec eax
cmp eax, 1
jb 0x405428
sub esi, ebx
or eax, 0xffffffff
mov ecx, esi
sub edi, ebx
shr ecx, 1
inc edi
sub eax, ecx
cmp eax, esi
jae 0x4053e4
xor esi, esi
jmp 0x4053e6
add esi, ecx
cmp esi, edi
lea ecx, [ebp - 0x2c]
cmovb esi, edi
push esi
call fcn.00406890
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov al, byte [ebp - 0xd]
test edi, edi
je 0x405409
mov byte [edi], al
inc ecx
inc edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x20]
jb 0x405340
cmp dword [ebp - 0x20], 0
je 0x405432
mov eax, dword [ebp - 0x30]
jmp 0x405305
push str.vector_T__too_long
call fcn.0054975b
mov esi, ebx
cmp ebx, edi
je 0x4054cc
mov edx, dword [ebp - 0x14]
nop
mov al, byte [esi]
mov ecx, dword [edx + 0x10]
mov byte [ebp - 0xd], al
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x40550b
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
cmp eax, 0xfffffffe
ja 0x40550b
mov edx, dword [edx + 0x14]
cmp edx, eax
jae 0x4054a8
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004027e0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4054c0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x14], 0x10
mov edx, dword [ecx + 0x10]
jb 0x40548b
mov ecx, dword [ecx]
mov al, byte [ebp - 0xd]
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], eax
jb 0x405503
mov ecx, dword [edx]
mov byte [ecx + eax], 0
jmp 0x4054c3
test eax, eax
jne 0x40547d
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
cmp edx, 0x10
jb 0x4054bd
mov eax, dword [eax]
mov byte [eax], 0
mov edx, dword [ebp - 0x14]
inc esi
cmp esi, edi
jne 0x405440
mov esi, 1
test ebx, ebx
je 0x4054de
push ebx
call fcn.0040b2d3
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x4054ef
push dword [ebp + 8]
call fcn.0040b2d3
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
mov byte [ecx + eax], 0
jmp 0x4054c3
push str.string_too_long
call fcn.0054975b
int3