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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe8
push esi
push edi
mov esi, ecx
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], esi
call fcn.1009e2b0
mov edi, dword [ebp + 8]
xor dl, dl
mov eax, dword [ebp + 0xc]
add eax, edi
mov dword [esp + 0x18], eax
cmp edi, eax
je 0x100c671a
mov al, byte [edi]
mov byte [esp + 0xf], al
test dl, dl
je 0x100c65ad
mov dl, 0x20
lea ecx, [esp + 0x38]
call fcn.1009f660
mov al, byte [esp + 0xf]
cmp al, 0x3f
je 0x100c66fe
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.100fec83
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 esi, esi
mov dword [esp + 0x14], esi
mov eax, dword [eax + 4]
mov byte [esp + eax + 0x78], 0x30
lea eax, [esp + 0x38]
push eax
call fcn.1008b190
cmp byte [esp + 0x24], 0
je 0x100c66c5
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov eax, dword [esp + eax + 0x68]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x34], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [esp + 0x30]
push eax
call fcn.1009f880
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
je 0x100c6677
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 8]
call edx
test eax, eax
je 0x100c6677
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov byte [esp + 0xd0], 0
mov ecx, dword [eax + 4]
movzx eax, byte [esp + 0xf]
mov edx, dword [esi]
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, esi
push dword [esp + 0xe0]
push eax
call dword [edx + 0x20]
cmp byte [esp + 0x28], 0
mov eax, 4
mov esi, dword [esp + 0x14]
cmovne esi, 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, esi
and eax, 0x17
mov dword [esp + ecx + 0x44], eax
mov ecx, dword [esp + ecx + 0x48]
and ecx, eax
jne 0x100c678c
lea ecx, [esp + 0x20]
call fcn.1008b0e0
jmp 0x100c6709
mov dl, 0x3f
lea ecx, [esp + 0x38]
call fcn.1009f660
inc edi
mov dl, 1
cmp edi, dword [esp + 0x18]
jne 0x100c6594
mov esi, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x3c]
call fcn.1009e210
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x38], 0x101453ac
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.100a06f0
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x38], 0x10143948
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], 0x101439b0
call fcn.100febae
add esp, 4
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x100c6798
mov esi, str.ios_base::badbit_set
jmp 0x100c67a8
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.1009ba50
push eax
push esi
lea ecx, [esp + 0xd8]
call fcn.1009b910
mov ecx, eax
call fcn.1005f850
int3