Function at 0x10054a00
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov esi, esp
mov dword [esi + 0xe0], ebp
mov edx, dword [ebp + 8]
mov dword [esi + 0xe4], esp
mov dword [esi + 0xf0], 0xffffffff
lea eax, [esi + 0xe8]
mov dword [esi + 0xec], 0x10056280
mov ecx, dword fs:[0]
mov dword [esi + 0xe8], ecx
mov dword fs:[0], eax
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov ecx, dword [edx + eax + 0x24]
mov dword [esi + 0x38], ecx
mov ecx, dword [edx + eax + 0x20]
mov dword [esi + 0x34], ecx
movzx ecx, byte [edx + eax + 0x40]
mov byte [esi + 3], cl
mov ecx, dword [edx + eax + 0x18]
mov dword [esi + 0x2c], ecx
mov ecx, dword [edx + eax + 0x1c]
mov dword [esi + 0x30], ecx
movzx eax, word [edx + eax + 0x14]
mov dword [esi + 0x3c], eax
mov byte [esi + 2], 0
mov dword [esi + 0xc], 0
mov ebx, dword [ebp + 0xc]
nop dword [eax]
mov edi, ebx
movzx eax, byte [edi]
cmp eax, 0x25
je 0x10054aa0
test eax, eax
je 0x10054ad0
jmp 0x10054ac8
mov eax, edi
sub eax, ebx
mov edx, eax
sar edx, 0x1f
mov dword [esi + 0xf0], 0xffffffff
mov ecx, dword [ebp + 8]
push edx
push eax
push ebx
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__]
cmp byte [edi + 1], 0x25
jne 0x10054aef
inc edi
mov ebx, edi
inc edi
jmp 0x10054a92
mov eax, edi
sub eax, ebx
mov edx, eax
sar edx, 0x1f
mov dword [esi + 0xf0], 0xffffffff
mov ecx, dword [ebp + 8]
push edx
push eax
push ebx
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__]
cmp byte [edi], 0
je 0x10054dc9
mov byte [esi + 1], 0
mov dword [esi + 8], 0xffffffff
mov ebx, dword [ebp + 0x14]
push ebx
lea eax, [esi + 0xc]
push eax
mov eax, edi
mov edi, dword [ebp + 0x10]
push edi
mov dword [esi + 0x10], eax
push eax
lea eax, [esi + 8]
push eax
lea eax, [esi + 1]
push eax
lea eax, [esi + 2]
push eax
push dword [ebp + 8]
call fcn.10054e70
add esp, 0x20
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
jge 0x10054e0b
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
cmp byte [esi + 1], 0
je 0x10054c10
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
lea ecx, [esi + 0x48]
push 1
call fcn.100546e0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov ecx, dword [edi + edx + 0x3c]
mov dword [esi + eax + 0x84], ecx
movzx ecx, byte [edi + edx + 0x40]
mov byte [esi + eax + 0x88], cl
lea ecx, [esi + eax + 0x48]
lea eax, [edi + edx]
mov dword [esi + 0xf0], 0
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::ios_base____thiscall_std::ios_base::copyfmt_class_std::ios_base_const__]
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
or dword [esi + eax + 0x5c], 0x20
mov eax, dword [esi + 0x40]
push dword [eax]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi + 0x10]
lea eax, [esi + 0x48]
push eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x44]
call dword [eax + ecx*4 + 4]
add esp, 0x14
lea ecx, [esi + 0x48]
lea eax, [esi + 0x14]
push eax
call fcn.10054810
mov ecx, dword [esi + 0x24]
xor eax, eax
test ecx, ecx
je 0x10054c40
cmp ecx, 1
lea ebx, [esi + 0x14]
jne 0x10054d80
test cl, 1
mov edx, dword [ebp + 8]
je 0x10054bff
cmp dword [esi + 0x28], 0x10
mov ecx, ebx
jb 0x10054bf5
mov ecx, dword [esi + 0x14]
cmp byte [ecx + eax], 0x2b
jne 0x10054bff
mov byte [ecx + eax], 0x20
mov eax, dword [esi + 0x24]
mov dword [esi + 0xf0], 1
jmp 0x10054c46
push dword [ecx]
push dword [esi + 8]
mov ebx, dword [esi + 4]
push ebx
push dword [esi + 0x10]
push dword [ebp + 8]
call dword [edi + eax*4 + 4]
add esp, 0x14
cmp byte [esi + 2], 0
jne 0x10054a90
jmp 0x10054d78
mov edx, dword [ebp + 8]
lea ebx, [esi + 0x14]
cmp dword [esi + 0x28], 0x10
mov ecx, ebx
jb 0x10054c51
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xf0], 1
push eax
push ecx
push edx
call fcn.1002fa10
add esp, 0xc
mov eax, dword [esi + 0x28]
cmp eax, 0x10
mov ebx, dword [esi + 4]
jb 0x10054ca1
mov ecx, dword [esi + 0x14]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x10054c97
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10054e1f
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.100ea090
add esp, 8
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x48], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi + 0x48]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x50]
mov dword [esi + eax + 0x44], ecx
mov dword [esi + 0x4c], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
test byte [esi + 0x88], 1
je 0x10054d12
mov eax, dword [esi + 0x6c]
mov eax, dword [eax]
lea ecx, [esi + 0x7c]
test eax, eax
jne 0x10054ce0
mov eax, dword [esi + 0x68]
mov eax, dword [eax]
lea ecx, [esi + 0x78]
mov ecx, dword [ecx]
add eax, dword [ecx]
mov ecx, dword [esi + 0x58]
mov ecx, dword [ecx]
sub eax, ecx
cmp eax, 0x1000
jb 0x10054d08
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10054e1f
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.100ea090
add esp, 8
mov eax, dword [esi + 0x58]
mov dword [eax], 0
mov eax, dword [esi + 0x68]
mov dword [eax], 0
mov eax, dword [esi + 0x78]
mov dword [eax], 0
mov eax, dword [esi + 0x5c]
mov dword [eax], 0
mov eax, dword [esi + 0x6c]
mov dword [eax], 0
mov eax, dword [esi + 0x7c]
mov dword [eax], 0
mov dword [esi + 0x84], 0
and byte [esi + 0x88], 0xfe
lea ecx, [esi + 0x4c]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esi + 0x98]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
cmp byte [esi + 2], 0
jne 0x10054a90
inc dword [esi + 0xc]
jmp 0x10054a90
mov edx, ecx
and edx, 0xfffffffe
xor eax, eax
jmp 0x10054d9b
add eax, 2
cmp edx, eax
je 0x10054be2
cmp dword [esi + 0x28], 0x10
mov edi, ebx
jb 0x10054da6
mov edi, dword [esi + 0x14]
cmp byte [edi + eax], 0x2b
jne 0x10054db0
mov byte [edi + eax], 0x20
cmp dword [esi + 0x28], 0x10
mov edi, ebx
jb 0x10054dbb
mov edi, dword [esi + 0x14]
cmp byte [edi + eax + 1], 0x2b
jne 0x10054d90
mov byte [edi + eax + 1], 0x20
jmp 0x10054d90
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x34]
mov dword [edx + eax + 0x20], ecx
mov ecx, dword [esi + 0x38]
mov dword [edx + eax + 0x24], ecx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x2c]
mov dword [edx + eax + 0x18], ecx
mov ecx, dword [esi + 0x30]
mov dword [edx + eax + 0x1c], ecx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x3c]
mov dword [edx + eax + 0x14], ecx
mov eax, dword [edx]
mov eax, dword [eax + 4]
movzx ecx, byte [esi + 3]
mov byte [edx + eax + 0x40], cl
mov eax, dword [esi + 0xe8]
mov dword fs:[0], eax
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 cs:[eax + eax]
push ebp
sub esp, 0x20
lea esi, [ebp - 0xf4]
mov ebp, dword [esi + 0xe0]
lea ecx, [esi + 0x14]
call fcn.100075b0
add esp, 0x20
pop ebp
ret