Function at 0x10031990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ce11f
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
push esi
push edi
mov eax, dword [0x10102f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100319e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x100319f4
mov eax, dword [edi]
mov byte [eax], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xec], 0x100d90e4
push 0
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10], 1
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x80], 0x58
movlpd qword [ebp - 0xe4], xmm0
call fcn.10030680
mov eax, dword [ebp - 0xec]
push 0
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xec], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xf0], eax
lea ecx, [ebp - 0xdc]
call fcn.1002c920
push 0x40
push 0x21
push esi
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 3
call fcn.10030890
test eax, eax
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
jne 0x10031ad4
xor eax, eax
cmp dword [ebp + ecx - 0xb4], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xe0]
and eax, 0x17
mov dword [ebp + ecx - 0xe0], eax
mov ecx, dword [ebp + ecx - 0xdc]
and ecx, eax
jne 0x10031cbc
jmp 0x10031b0e
xor edx, edx
mov eax, 4
cmp dword [ebp + ecx - 0xb4], edx
cmovne eax, edx
mov dword [ebp + ecx - 0xe0], eax
test dword [ebp + ecx - 0xdc], eax
je 0x10031b0e
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.10020590
add esp, 8
push eax
push str.ios_base::badbit_set
jmp 0x10031ce8
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xe0], 6
jne 0x10031c9d
push 2
push 0
push 0
lea ecx, [ebp - 0xec]
call fcn.10027060
lea eax, [ebp - 0xec]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0xb4]
test ecx, ecx
je 0x10031b58
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 4
call fcn.10026260
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0xec]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0xe0], 6
jne 0x10031ba7
mov ecx, dword [ebp + ecx - 0xb4]
lea edx, [ebp - 0x34]
push 1
push 1
push 0
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0x28]
mov eax, dword [ebp - 0xec]
mov byte [ebp - 4], 6
jmp 0x10031bc0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
movups xmmword [ebp - 0x2c], xmm0
mov byte [ebp - 4], 7
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0xb4]
test ecx, ecx
je 0x10031bd3
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x10031c43
lea esi, [eax + 1]
push esi
call fcn.10064f7d
push esi
mov esi, eax
mov dword [ebp - 0x10], eax
push 0
push esi
call fcn.10092e90
add esp, 0x10
lea ecx, [ebp - 0xec]
push 0
push 0
push 0
call fcn.10027060
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xec]
cdq
push edx
push eax
push esi
call fcn.10026ef0
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10031c26
sub edx, ecx
mov ecx, edi
push edx
push esi
call fcn.1000e060
push esi
call fcn.10064f86
add esp, 4
jmp 0x10031c4a
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0xdc]
call fcn.10026650
test eax, eax
jne 0x10031c9d
mov eax, dword [ebp - 0xec]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xb4], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xe0]
and eax, 0x17
mov dword [ebp + ecx - 0xe0], eax
mov ecx, dword [ebp + ecx - 0xdc]
and ecx, eax
je 0x10031c9d
test cl, 4
je 0x10031cc8
mov esi, str.ios_base::badbit_set
jmp 0x10031cd8
lea ecx, [ebp - 0xec]
call fcn.10021eb0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test cl, 4
je 0x10031cc8
mov esi, str.ios_base::badbit_set
jmp 0x10031cd8
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.10020590
add esp, 8
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.1001de40
push 0x100f7470
lea eax, [ebp - 0x30]
push eax
call fcn.10091f6d
int3