Function at 0x1004af70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov esi, esp
mov dword [esi + 0xd0], ebp
mov dword [esi + 0xd4], esp
mov dword [esi + 0xe0], 0xffffffff
mov dword [esi + 0xdc], 0x100504d0
mov eax, dword fs:[0]
mov dword [esi + 0xd8], eax
lea eax, [esi + 0xd8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
lea edi, [esi + 0x38]
mov ecx, edi
push 1
call fcn.1004e960
lea eax, [esi + 8]
mov dword [esi], eax
mov dword [esi + 4], 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 0x1004f910
mov dword [esi + 0x10], method.std::_Packaged_state_void____cdecl___void__.virtual_12
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 0x1004f910
mov dword [esi + 0x1c], method.std::_Packaged_state_void____cdecl___void__.virtual_12
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], 0x1004fb60
mov dword [esi + 0x28], 0x1004fba0
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], 0x1004fb60
mov dword [esi + 0x34], 0x1004fba0
mov dword [esi + 0xe0], 0
push 4
push eax
push dword [ebp + 0xc]
push edi
call fcn.1004ec80
add esp, 0x10
lea ecx, [esi + 0x38]
push dword [ebp + 8]
call fcn.1004ea90
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x38], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [esi + eax + 0x34], ecx
mov dword [esi + 0x3c], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
test byte [esi + 0x78], 1
je 0x1004b0b5
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
mov ecx, 0x34
test eax, eax
jne 0x1004b085
mov eax, dword [esi + 0x58]
mov eax, dword [eax]
mov ecx, 0x30
mov ecx, dword [esi + ecx + 0x38]
add eax, dword [ecx]
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx]
sub eax, ecx
cmp eax, 0x1000
jb 0x1004b0ab
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x1004b124
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.100e81b0
add esp, 8
lea ecx, [esi + 0x3c]
lea edi, [esi + 0x88]
mov eax, dword [esi + 0x48]
mov dword [eax], 0
mov eax, dword [esi + 0x58]
mov dword [eax], 0
mov eax, dword [esi + 0x68]
mov dword [eax], 0
mov eax, dword [esi + 0x4c]
mov dword [eax], 0
mov eax, dword [esi + 0x5c]
mov dword [eax], 0
mov eax, dword [esi + 0x6c]
mov dword [eax], 0
mov dword [esi + 0x74], 0
and byte [esi + 0x78], 0xfe
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov eax, dword [esi + 0xd8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop word [eax + eax]
push ebp
sub esp, 0x10
lea esi, [ebp - 0xe4]
mov ebp, dword [esi + 0xd0]
lea ecx, [esi + 0x38]
call fcn.1004ebd0
add esp, 0x10
pop ebp
ret