Function at 0x105ea16
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0xa20], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa30], edi
mov dword [ebp - 0xa28], eax
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x1005484
cmp eax, esi
je 0x105ea7d
test byte [eax + 0x1c], 2
je 0x105ea7d
cmp byte [eax + 0x19], 5
jb 0x105ea7d
push ebx
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
test edi, edi
jne 0x105ea90
mov dword [ebp - 0xa20], 0x57
jmp 0x105f020
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010676d2
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105eade
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105eebb
test byte [eax + 0x1c], 2
je 0x105eebb
cmp byte [eax + 0x19], 2
jb 0x105eebb
movzx ecx, word [ebp - 0xa24]
push ecx
push ebx
push 0x2c
jmp 0x105eeb0
cmp dword [ebp + 0x10], 1
jne 0x105ec07
mov eax, 0x100
push eax
lea ecx, [ebp - 0x614]
push ecx
push eax
lea eax, [ebp - 0xa1c]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wsplitpath_s
add esp, 0x24
test eax, eax
je 0x105eb45
mov ecx, 0x65b
mov dword [ebp - 0xa20], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105eb45
test byte [eax + 0x1c], 2
je 0x105eb45
cmp byte [eax + 0x19], 2
jb 0x105eb45
push ecx
push ebx
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
lea eax, [ebp - 0xa1c]
push eax
push edi
lea eax, [ebp - 0x81c]
push eax
call fcn.010676d2
lea eax, [ebp - 0x614]
push eax
push edi
lea eax, [ebp - 0x81c]
push eax
call fcn.0100e6a9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x105ebc2
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ea81
test byte [eax + 0x1c], 2
je 0x105ea81
cmp byte [eax + 0x19], 2
jb 0x105ea81
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100915e
jmp 0x105ea81
lea eax, [ebp - 0x614]
push 0x10054d4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x105ec07
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ea81
test byte [eax + 0x1c], 2
je 0x105ea81
cmp byte [eax + 0x19], 2
jb 0x105ea81
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push 0x2f
jmp 0x105ebb2
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
pop ecx
test eax, eax
je 0x105ec83
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x105eeec
mov dword [ebp - 0xa20], 2
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f020
test byte [eax + 0x1c], 2
je 0x105f020
cmp byte [eax + 0x19], 2
jb 0x105f020
push 2
lea ecx, [ebp - 0x20c]
push ecx
push 0x1005484
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
jmp 0x105f020
cmp dword [ebp + 0x10], 0
je 0x105ed29
mov eax, dword [ebp - 0xa2c]
test eax, eax
je 0x105eced
cmp word [eax], 0
je 0x105eced
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0xa2c]
call fcn.0106560e
test eax, eax
jne 0x105ed71
call ebx
mov dword [ebp - 0xa20], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ed71
test byte [eax + 0x1c], 2
je 0x105ed71
cmp byte [eax + 0x19], 2
jb 0x105ed71
call ebx
push eax
push 0x1005484
push 0x32
jmp 0x105ed61
push edi
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.0106560e
test eax, eax
jne 0x105ed71
call ebx
mov dword [ebp - 0xa20], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ed71
test byte [eax + 0x1c], 2
je 0x105ed71
cmp byte [eax + 0x19], 2
jb 0x105ed71
call ebx
push eax
push 0x1005484
push 0x31
jmp 0x105ed61
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01064b22
test eax, eax
jne 0x105ed71
call ebx
mov dword [ebp - 0xa20], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ed71
test byte [eax + 0x1c], 2
je 0x105ed71
cmp byte [eax + 0x19], 2
jb 0x105ed71
call ebx
push eax
push 0x1005484
push 0x33
mov eax, dword [0x1075004]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
cmp dword [ebp - 0xa20], 0
je 0x105ed89
mov dword [ebp - 0xa20], 2
jmp 0x105f020
push 0x1005244
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e6a9
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105edda
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105eebb
test byte [eax + 0x1c], 2
je 0x105eebb
cmp byte [eax + 0x19], 2
jb 0x105eebb
movzx ecx, word [ebp - 0xa24]
push ecx
push 0x1005484
push 0x34
jmp 0x105eeb0
push dword [ebp - 0xa30]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100e6a9
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105ee2c
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105eebb
test byte [eax + 0x1c], 2
je 0x105eebb
cmp byte [eax + 0x19], 2
jb 0x105eebb
movzx ecx, word [ebp - 0xa24]
push ecx
push 0x1005484
push 0x35
jmp 0x105eeb0
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.010676d2
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105ee70
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105eebb
test byte [eax + 0x1c], 2
je 0x105eebb
cmp byte [eax + 0x19], 2
jb 0x105eebb
movzx ecx, word [ebp - 0xa24]
push ecx
push 0x1005484
push 0x36
jmp 0x105eeb0
push 0x10054c8
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.0100e6a9
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105eec4
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105eebb
test byte [eax + 0x1c], 2
je 0x105eebb
cmp byte [eax + 0x19], 2
jb 0x105eebb
movzx ecx, word [ebp - 0xa24]
push ecx
push 0x1005484
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
movzx eax, word [ebp - 0xa24]
jmp 0x105ef35
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x105ef40
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x105ed7a
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0xa28]
call fcn.010676d2
mov edi, eax
test edi, edi
jge 0x105ef7c
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ef32
test byte [eax + 0x1c], 2
je 0x105ef32
cmp byte [eax + 0x19], 2
jb 0x105ef32
movzx ecx, di
push ecx
push 0x1005484
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
movzx eax, di
mov dword [ebp - 0xa20], eax
jmp 0x105f017
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.010676d2
mov edi, eax
test edi, edi
jge 0x105eeec
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ef32
test byte [eax + 0x1c], 2
je 0x105ef32
cmp byte [eax + 0x19], 2
jb 0x105ef32
movzx ecx, di
push ecx
push 0x1005484
push 0x38
jmp 0x105ef27
push 2
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0xa28]
call fcn.0105e178
cmp eax, 0xffffffff
jne 0x105efdd
call ebx
mov dword [ebp - 0xa20], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f017
test byte [eax + 0x1c], 2
je 0x105f017
cmp byte [eax + 0x19], 2
jb 0x105f017
push dword [ebp - 0xa20]
push dword [ebp - 0xa28]
push 0x1005484
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
jmp 0x105f017
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x105f017
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f017
test byte [eax + 0x1c], 2
je 0x105f017
cmp byte [eax + 0x19], 2
jb 0x105f017
call ebx
push eax
mov eax, dword [0x1075004]
push 0x1005484
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
cmp dword [ebp - 0xa20], 0
je 0x105f030
push dword [ebp - 0xa20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x105f033
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 0x14