Function at 0x100162e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100513b8
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x1005f424]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x30], eax
xor edi, edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
push 1
push 3
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xfc]
call fcn.1000fc60
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 0x20
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.100010c0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x10016429
nop dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov dword [ebp - 0x4c], eax
cmovae esi, dword [ebp - 0x28]
mov dword [eax], 0
lea eax, [ebp - 0x30]
push 0x10
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add esp, 0xc
cmp esi, dword [ebp - 0x30]
je 0x10016586
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx], 0x22
je 0x1001657c
mov esi, dword [ebp - 0x38]
mov byte [ebp - 0x29], al
cmp edi, esi
je 0x100163e1
mov byte [edi], al
inc edi
mov dword [ebp - 0x44], edi
jmp 0x100163f7
lea eax, [ebp - 0x29]
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.1000b1e0
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x38], esi
push 0x20
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.100010c0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
jne 0x10016390
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
jmp 0x1001642b
xor eax, eax
sub edi, eax
lea eax, [ebp - 0x3c]
push eax
push 0x40
push edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10016467
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
push edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 0x29], 1
jmp 0x1001646b
mov byte [ebp - 0x29], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1001649f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10016495
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001654e
push ecx
push edx
call fcn.1004e7f9
add esp, 8
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xfc], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x100], eax
lea ecx, [ebp - 0xe4]
call fcn.10010270
lea ecx, [ebp - 0xdc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x94]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x10016528
sub esi, ecx
mov eax, ecx
cmp esi, 0x1000
jb 0x1001651e
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001654e
push esi
push ecx
call fcn.1004e7f9
add esp, 8
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x1001655e
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10016554
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10016554
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1004e7f9
add esp, 8
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004e807
mov esp, ebp
pop ebp
ret
push str.stoul_argument_out_of_range
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__
push str.invalid_stoul_argument
call sub.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__
int3