Function at 0x4015a0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406352
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
push 0xb8
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [0x40a768], 0xf
lea ecx, [ebp - 0x210]
mov eax, 0x40a754
cmova eax, dword [0x40a754]
push eax
call fcn.004040c0
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x214], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x210]
mov eax, dword [ebp - 0x210]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x210]
call fcn.00405220
add esp, 4
lea ecx, [ebp - 0x214]
cmp dword [0x40a780], 0xf
mov eax, 0x40a76c
cmova eax, dword [0x40a76c]
push 0
push 0
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
je 0x4016c0
xor esi, esi
jmp 0x401943
push 0xb0
lea eax, [ebp - 0x158]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x158], 0x407428
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x148], 0x4073c4
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x21c], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x158]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x15c], eax
lea ecx, [ebp - 0x140]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x78]
mov ecx, dword [ebp - 0x214]
push edx
push 0x64
lea edx, [ebp - 0x74]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x4017c2
push 0
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x148]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x78]
push edx
push 0x64
lea edx, [ebp - 0x74]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
mov eax, dword [ebp - 0x78]
test eax, eax
jne 0x401792
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 5
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x104]
mov eax, ecx
and al, 0x22
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x21c], 5
movq qword [ebp - 0x228], xmm0
mov dword [ebp - 0x220], 0
movups xmmword [ebp - 0x90], xmm0
mov byte [ebp - 0x90], 0
cmp al, 2
je 0x40183e
mov eax, dword [ebp - 0x120]
mov esi, dword [eax]
test esi, esi
je 0x40183e
mov eax, dword [ebp - 0x130]
cmp esi, dword [ebp - 0x108]
cmovb esi, dword [ebp - 0x108]
mov ecx, dword [eax]
jmp 0x401861
test cl, 4
jne 0x4018a6
mov eax, dword [ebp - 0x124]
mov edx, dword [eax]
test edx, edx
je 0x4018a6
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x114]
mov esi, dword [eax]
add esi, edx
mov eax, ecx
sub esi, ecx
test eax, eax
je 0x4018a6
cmp esi, 0xf
ja 0x40188c
push esi
push ecx
lea eax, [ebp - 0x90]
mov dword [ebp - 0x80], esi
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [ebp + esi - 0x90], 0
jmp 0x4018a6
push ecx
mov byte [ebp - 0x218], 0
lea ecx, [ebp - 0x90]
push dword [ebp - 0x218]
push esi
call fcn.00404ee0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0xa8]
cmp dword [ebp - 0x94], 0xf
lea eax, [ebp - 0x90]
cmova ecx, dword [ebp - 0xa8]
cmp dword [ebp - 0x7c], 0xf
push ecx
cmova eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 8
lea ecx, [ebp - 0x90]
mov esi, eax
call fcn.004042b0
mov ecx, dword [ebp - 0x158]
mov ecx, dword [ecx + 4]
mov dword [ebp + ecx - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0x15c], ecx
lea ecx, [ebp - 0x140]
call fcn.00402ef0
lea ecx, [ebp - 0x138]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor eax, eax
test esi, esi
setne al
mov dword [ebp - 0x218], eax
mov esi, eax
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x210]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x70]
mov dword [ebp + edx - 0x214], ecx
lea ecx, [ebp - 0x200]
call fcn.00403a50
lea ecx, [ebp - 0x1f8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1a0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa8]
call fcn.004042b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004054eb
mov esp, ebp
pop ebp
ret