Function at 0x10017e30
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101de6db
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp dword [ebp + 0xc], ebx
je 0x10017e91
lea eax, [esi + 0x50]
mov dword [esi], 0x10200e90
mov dword [ebp + 0xc], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], ebx
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
mov ebx, 1
mov dword [ebp - 0x10], ebx
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov edi, dword [eax + 4]
add edi, esi
mov ecx, edi
call fcn.100297d0
lea eax, [esi + 4]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], eax
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
or ebx, 4
push eax
mov dword [ebp - 0x10], ebx
call fcn.10010330
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx ecx, ax
and ebx, 0xfffffffb
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10017f1f
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10017f1f
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov eax, dword [ebp - 0x14]
mov word [edi + 0x40], ax
jne 0x10017f43
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 0x1001803e
mov dword [ebp - 4], 5
lea edi, [esi + 4]
mov eax, dword [esi]
push 8
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.100cff51
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10017f8d
push 1
call fcn.100b0284
add esp, 4
mov dword [ebx + 4], eax
jmp 0x10017f8f
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
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 byte [ebp - 4], 6
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
and ecx, 1
mov dword [edi + 0x38], 0
shl ecx, 2
mov eax, ebx
mov edx, ecx
or edx, 8
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [edi + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1001804a
mov esi, str.ios_base::badbit_set
jmp 0x1001805a
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.10015220
add esp, 8
lea ecx, [ebp - 0x34]
push eax
push esi
call fcn.100113b0
push 0x1023d084
lea eax, [ebp - 0x34]
push eax
call fcn.1019f98e
int3