Function at 0x493db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72f9bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push edi
mov dword [ebp - 0x10], 0
je 0x493e19
mov dword [ebx], 0x74c448
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], 0
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
push esi
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xc], 0
call fcn.00503d60
mov esi, eax
add esp, 4
test esi, esi
je 0x493eb0
push 1
mov dword [ebp - 4], 2
call fcn.006ddd22
add esp, 4
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
jmp 0x493eb2
xor esi, esi
mov dword [edi + 0x30], esi
mov ecx, edi
lea esi, [ebx + 4]
mov dword [edi + 0x3c], 0
push 0x20
mov dword [ebp + 8], esi
mov dword [edi + 0x38], esi
call fcn.00499750
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x493eee
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
and eax, 0x13
or eax, 4
mov dword [edi + 0xc], eax
and ecx, eax
jne 0x493fbc
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00503d60
mov esi, eax
add esp, 4
test esi, esi
je 0x493f36
push 1
mov byte [ebp - 4], 4
call fcn.006ddd22
add esp, 4
mov dword [esi + 4], eax
jmp 0x493f38
xor esi, esi
lea eax, [ebx + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
pop esi
mov dword [eax], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 4
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
test cl, 4
je 0x493fc8
mov esi, str.ios_base::badbit_set
jmp 0x493fd8
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00497c50
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004944f0
push 0x819f70
lea eax, [ebp - 0x30]
push eax
call fcn.006f41a3
int3