Function at 0x101771e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe8
push esi
push edi
mov edi, ecx
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], edi
call fcn.100271b0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, esi
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x101773d8
mov al, byte [esi]
mov byte [esp + 0xf], al
cmp al, 0x3f
je 0x101773a8
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x4c]
push 0
push 2
add ecx, dword [eax + 4]
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
or dword [esp + eax + 0x54], 4
lea eax, [esp + 0xe8]
push eax
call fcn.1017b0dd
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x44]
add esp, 0xc
mov ecx, dword [ecx + 4]
push dword [eax + 0xc]
add ecx, edx
push dword [eax + 8]
mov eax, dword [eax]
push ecx
call eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x2c]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [eax + 4]
mov byte [esp + eax + 0x78], 0x30
lea eax, [esp + 0x38]
push eax
call fcn.10010d70
cmp byte [esp + 0x24], 0
je 0x10177330
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov eax, dword [esp + eax + 0x68]
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [esp + 0x34], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [esp + 0x30]
push eax
call fcn.10028640
add esp, 4
mov dword [esp + 0x10], eax
test edi, edi
je 0x101772e2
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 8]
call edx
test eax, eax
je 0x101772e2
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov byte [esp + 0xd0], 0
mov ecx, dword [eax + 4]
movzx eax, byte [esp + 0xf]
mov edx, dword [edi]
push eax
movzx eax, byte [esp + ecx + 0x7c]
push eax
lea eax, [esp + 0x40]
add eax, ecx
push eax
push dword [esp + ecx + 0x7c]
lea eax, [esp + 0x38]
mov ecx, edi
push dword [esp + 0xe0]
push eax
call dword [edx + 0x20]
cmp byte [esp + 0x28], 0
mov eax, 4
mov edi, dword [esp + 0x14]
cmovne edi, eax
mov eax, dword [esp + 0x38]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, 4
cmp dword [esp + ecx + 0x70], edx
cmovne eax, edx
or eax, dword [esp + ecx + 0x44]
or eax, edi
and eax, 0x17
mov dword [esp + ecx + 0x44], eax
mov ecx, dword [esp + ecx + 0x48]
and ecx, eax
jne 0x1017744a
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov eax, dword [eax + 4]
cmp dword [eax + edi + 0xc], edx
jne 0x10177394
test byte [eax + edi + 0x14], 2
je 0x10177394
mov ecx, dword [eax + edi + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x10177394
mov eax, dword [edi]
push 0
push 4
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.10010df0
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov ecx, dword [eax + edi + 0x38]
test ecx, ecx
je 0x101773b3
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x101773b3
mov dl, 0x3f
lea ecx, [esp + 0x38]
call fcn.10028390
inc esi
cmp esi, dword [esp + 0x18]
je 0x101773d4
mov al, byte [esi]
lea ecx, [esp + 0x38]
mov dl, 0x20
mov byte [esp + 0xf], al
call fcn.10028390
mov al, byte [esp + 0xf]
jmp 0x10177218
mov edi, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x40]
call fcn.10027c40
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x38], 0x101b6b5c
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [esp + ecx + 0x34], eax
lea ecx, [esp + 0x3c]
call fcn.100297b0
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x38], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [esp + ecx + 0x34], eax
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.1017b008
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x10177456
mov esi, str.ios_base::badbit_set
jmp 0x10177466
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
mov edx, 1
lea ecx, [esp + 0x28]
call fcn.10024120
push eax
push esi
lea ecx, [esp + 0xd8]
call fcn.10023fb0
mov ecx, eax
call fcn.10026210
int3