Function at 0x10056f90
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], 0x10058820
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 0x10057030
test eax, eax
je 0x10057060
jmp 0x10057058
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 0x1005707f
inc edi
mov ebx, edi
inc edi
jmp 0x10057022
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 0x10057359
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.10057400
add esp, 0x20
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
jge 0x1005739b
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
cmp byte [esi + 1], 0
je 0x100571a0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
lea ecx, [esi + 0x48]
push 1
call fcn.10056c70
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.10056da0
mov ecx, dword [esi + 0x24]
xor eax, eax
test ecx, ecx
je 0x100571d0
cmp ecx, 1
lea ebx, [esi + 0x14]
jne 0x10057310
test cl, 1
mov edx, dword [ebp + 8]
je 0x1005718f
cmp dword [esi + 0x28], 0x10
mov ecx, ebx
jb 0x10057185
mov ecx, dword [esi + 0x14]
cmp byte [ecx + eax], 0x2b
jne 0x1005718f
mov byte [ecx + eax], 0x20
mov eax, dword [esi + 0x24]
mov dword [esi + 0xf0], 1
jmp 0x100571d6
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 0x10057020
jmp 0x10057308
mov edx, dword [ebp + 8]
lea ebx, [esi + 0x14]
cmp dword [esi + 0x28], 0x10
mov ecx, ebx
jb 0x100571e1
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xf0], 1
push eax
push ecx
push edx
call fcn.10032190
add esp, 0xc
mov eax, dword [esi + 0x28]
cmp eax, 0x10
mov ebx, dword [esi + 4]
jb 0x10057231
mov ecx, dword [esi + 0x14]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x10057227
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x100573af
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.100f14b0
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 0x100572a2
mov eax, dword [esi + 0x6c]
mov eax, dword [eax]
lea ecx, [esi + 0x7c]
test eax, eax
jne 0x10057270
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 0x10057298
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x100573af
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.100f14b0
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 0x10057020
inc dword [esi + 0xc]
jmp 0x10057020
mov edx, ecx
and edx, 0xfffffffe
xor eax, eax
jmp 0x1005732b
add eax, 2
cmp edx, eax
je 0x10057172
cmp dword [esi + 0x28], 0x10
mov edi, ebx
jb 0x10057336
mov edi, dword [esi + 0x14]
cmp byte [edi + eax], 0x2b
jne 0x10057340
mov byte [edi + eax], 0x20
cmp dword [esi + 0x28], 0x10
mov edi, ebx
jb 0x1005734b
mov edi, dword [esi + 0x14]
cmp byte [edi + eax + 1], 0x2b
jne 0x10057320
mov byte [edi + eax + 1], 0x20
jmp 0x10057320
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.10007600
add esp, 0x20
pop ebp
ret