Function at 0x401690
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405cd2
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 - 0x218], 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
push 0x40a894
lea ecx, [ebp - 0x210]
call fcn.00403930
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.00404bd0
add esp, 4
lea ecx, [ebp - 0x214]
cmp dword [0x40a8d8], 0xf
mov eax, 0x40a8c4
cmova eax, dword [0x40a8c4]
push 0
push 0
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
je 0x40177a
xor esi, esi
jmp 0x401a3b
push 0xb0
lea eax, [ebp - 0x158]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x158], 0x407388
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x148], 0x40736c
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], 3
push eax
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x218], 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], 4
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], 5
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 0x401880
nop dword [eax]
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 0x401850
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 6
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 - 0x218], 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 0x4018fc
mov eax, dword [ebp - 0x120]
mov esi, dword [eax]
test esi, esi
je 0x4018fc
mov eax, dword [ebp - 0x130]
cmp esi, dword [ebp - 0x108]
cmovb esi, dword [ebp - 0x108]
mov ecx, dword [eax]
jmp 0x40191f
test cl, 4
jne 0x401964
mov eax, dword [ebp - 0x124]
mov edx, dword [eax]
test edx, edx
je 0x401964
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 0x401964
cmp esi, 0xf
ja 0x40194a
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 0x401964
push ecx
mov byte [ebp - 0x21c], 0
lea ecx, [ebp - 0x90]
push dword [ebp - 0x21c]
push esi
call fcn.00404890
mov dword [ebp - 4], 7
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]
mov ecx, dword [ebp - 0x7c]
add esp, 8
neg eax
sbb esi, esi
neg esi
cmp ecx, 0xf
jbe 0x4019dc
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
mov byte [ebp - 4], 0xa
cmp ecx, 0x1000
jb 0x4019d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401abf
push ecx
push edx
call fcn.004050da
add esp, 8
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
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 fcn.00402cd0
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_]
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
lea ecx, [ebp - 0x200]
call fcn.00403850
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_]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x94]
cmp ecx, 0xf
jbe 0x401acf
mov edx, dword [ebp - 0xa8]
inc ecx
mov eax, edx
mov dword [ebp - 4], 0xb
cmp ecx, 0x1000
jb 0x401ac5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401ac5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004050da
add esp, 8
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.00404e4a
mov esp, ebp
pop ebp
ret