Function at 0x495bd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611167
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0
push esi
mov dword [ebx], 0x6f03fc
push edi
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push 8
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov esi, dword [eax + 4]
add esi, ebx
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004e2142
mov edi, eax
mov dword [ebp - 0x14], eax
add esp, 4
test edi, edi
je 0x495cb8
push 1
mov dword [ebp - 4], 2
call fcn.00508da5
add esp, 4
mov dword [edi + 4], eax
jmp 0x495cbd
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [esi + 0x30], edi
lea edi, [ebx + 0x10]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 4
push eax
call fcn.00457f56
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x495d25
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x495d25
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp - 0xd]
mov byte [ebp - 4], 1
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x495d4c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x495eab
mov dword [ebp - 4], 6
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], edi
lea eax, [ecx - 0x60]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004e2142
mov esi, eax
add esp, 4
test esi, esi
je 0x495d97
push 1
mov byte [ebp - 4], 7
call fcn.00508da5
add esp, 4
mov dword [esi + 4], eax
jmp 0x495d99
xor esi, esi
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 8
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [eax + 0x14], 0x10
mov esi, dword [eax + 0x10]
jb 0x495e0e
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, 2
cmp esi, 0x7fffffff
ja 0x495eed
test esi, esi
je 0x495e8c
cmp esi, 0x1000
jb 0x495e54
lea eax, [esi + 0x23]
or ecx, 0xffffffff
cmp eax, esi
cmovbe eax, ecx
push eax
call fcn.004e2142
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x495ef2
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x495e5d
push esi
call fcn.004e2142
add esp, 4
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
push eax
call fcn.0050be00
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [edi + 0xc]
lea ecx, [edx + esi]
mov dword [edi + 0x38], ecx
mov dword [eax], edx
mov eax, dword [edi + 0x1c]
mov dword [eax], edx
mov eax, dword [edi + 0x2c]
mov dword [eax], esi
mov eax, 3
jmp 0x495e93
mov dword [edi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x3c], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
test cl, 4
je 0x495eb7
mov esi, str.ios_base::badbit_set
jmp 0x495ec7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.00455295
add esp, 8
lea ecx, [ebp - 0x38]
push eax
push esi
call fcn.004554a6
push 0x708b84
lea eax, [ebp - 0x38]
push eax
call fcn.0050c727
call fcn.00508aa1
call fcn.005184a7
int3