Function at 0x1004e080
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

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], 0x1004f5c0
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 0x1004e120
test eax, eax
je 0x1004e150
jmp 0x1004e148
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 0x1004e16f
inc edi
mov ebx, edi
inc edi
jmp 0x1004e112
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 0x1004e3b9
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.1004e460
add esp, 0x20
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
jge 0x1004e3fb
lea eax, [eax + eax*2]
lea ecx, [edi + eax*4]
cmp byte [esi + 1], 0
je 0x1004e290
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
lea ecx, [esi + 0x48]
push 1
call fcn.1004dd80
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.1004de90
mov ecx, dword [esi + 0x24]
xor eax, eax
test ecx, ecx
je 0x1004e2c0
cmp ecx, 1
lea ebx, [esi + 0x14]
jne 0x1004e373
test cl, 1
mov edx, dword [ebp + 8]
je 0x1004e27f
cmp dword [esi + 0x28], 0x10
mov ecx, ebx
jb 0x1004e275
mov ecx, dword [esi + 0x14]
cmp byte [ecx + eax], 0x2b
jne 0x1004e27f
mov byte [ecx + eax], 0x20
mov eax, dword [esi + 0x24]
mov dword [esi + 0xf0], 1
jmp 0x1004e2c6
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 0x1004e110
jmp 0x1004e36b
mov edx, dword [ebp + 8]
lea ebx, [esi + 0x14]
cmp dword [esi + 0x28], 0x10
mov ecx, ebx
jb 0x1004e2d1
mov ecx, dword [esi + 0x14]
mov dword [esi + 0xf0], 1
push eax
push ecx
push edx
call fcn.1004ec80
add esp, 0xc
mov eax, dword [esi + 0x28]
cmp eax, 0x10
mov ebx, dword [esi + 4]
jb 0x1004e321
mov ecx, dword [esi + 0x14]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x1004e317
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x1004e40f
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.100f6c02
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
lea edi, [esi + 0x4c]
mov ecx, edi
call fcn.1002c0a0
mov ecx, edi
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 0x1004e110
inc dword [esi + 0xc]
jmp 0x1004e110
mov edx, ecx
and edx, 0xfffffffe
xor eax, eax
jmp 0x1004e38b
add eax, 2
cmp edx, eax
je 0x1004e262
cmp dword [esi + 0x28], 0x10
mov edi, ebx
jb 0x1004e396
mov edi, dword [esi + 0x14]
cmp byte [edi + eax], 0x2b
jne 0x1004e3a0
mov byte [edi + eax], 0x20
cmp dword [esi + 0x28], 0x10
mov edi, ebx
jb 0x1004e3ab
mov edi, dword [esi + 0x14]
cmp byte [edi + eax + 1], 0x2b
jne 0x1004e380
mov byte [edi + eax + 1], 0x20
jmp 0x1004e380
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.10007360
add esp, 0x20
pop ebp
ret