Function at 0x10015270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fde8
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x1005e424]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x40], esi
xor ebx, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
push 1
push 3
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xf8]
call fcn.1000f020
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
push 0x20
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.100010c0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x10015399
nop word [eax + 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 - 0x48], eax
cmovae esi, dword [ebp - 0x28]
mov dword [eax], 0
lea eax, [ebp - 0x44]
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 - 0x44]
je 0x100154f0
mov ecx, dword [ebp - 0x48]
cmp dword [ecx], 0x22
je 0x100154e6
mov byte [ebp - 0x29], al
cmp edi, ebx
je 0x1001535e
mov byte [edi], al
inc edi
mov dword [ebp - 0x3c], edi
jmp 0x10015371
lea eax, [ebp - 0x29]
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.1000acb0
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
push 0x20
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.100010c0
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10015310
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
sub edi, esi
push eax
push 0x40
push edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100153d3
push edi
push esi
push dword [ebp - 0x30]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebp - 0x29], 1
jmp 0x100153d7
mov byte [ebp - 0x29], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1001540b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10015401
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100154b7
push edx
push ecx
call fcn.1004cf0b
add esp, 8
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xfc], eax
lea ecx, [ebp - 0xe0]
call fcn.1000f3a0
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
test esi, esi
je 0x10015491
sub ebx, esi
mov eax, esi
cmp ebx, 0x1000
jb 0x10015487
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100154b7
push ebx
push esi
call fcn.1004cf0b
add esp, 8
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x100154c7
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100154bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100154bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004cf0b
add esp, 8
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004cf19
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