Function at 0x105edd6
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 0x105ee3d
test byte [eax + 0x1c], 2
je 0x105ee3d
cmp byte [eax + 0x19], 5
jb 0x105ee3d
push ebx
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
test edi, edi
jne 0x105ee50
mov dword [ebp - 0xa20], 0x57
jmp 0x105f3e0
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01009a5d
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105ee9e
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f27b
test byte [eax + 0x1c], 2
je 0x105f27b
cmp byte [eax + 0x19], 2
jb 0x105f27b
movzx ecx, word [ebp - 0xa24]
push ecx
push ebx
push 0x2c
jmp 0x105f270
cmp dword [ebp + 0x10], 1
jne 0x105efc7
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 0x105ef05
mov ecx, 0x65b
mov dword [ebp - 0xa20], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ef05
test byte [eax + 0x1c], 2
je 0x105ef05
cmp byte [eax + 0x19], 2
jb 0x105ef05
push ecx
push ebx
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
lea eax, [ebp - 0xa1c]
push eax
push edi
lea eax, [ebp - 0x81c]
push eax
call fcn.01009a5d
lea eax, [ebp - 0x614]
push eax
push edi
lea eax, [ebp - 0x81c]
push eax
call fcn.0100e740
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 0x105ef82
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ee41
test byte [eax + 0x1c], 2
je 0x105ee41
cmp byte [eax + 0x19], 2
jb 0x105ee41
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091b8
jmp 0x105ee41
lea eax, [ebp - 0x614]
push 0x10054d4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x105efc7
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105ee41
test byte [eax + 0x1c], 2
je 0x105ee41
cmp byte [eax + 0x19], 2
jb 0x105ee41
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push 0x2f
jmp 0x105ef72
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 0x105f043
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x105f2ac
mov dword [ebp - 0xa20], 2
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f3e0
test byte [eax + 0x1c], 2
je 0x105f3e0
cmp byte [eax + 0x19], 2
jb 0x105f3e0
push 2
lea ecx, [ebp - 0x20c]
push ecx
push 0x1005484
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x105f3e0
cmp dword [ebp + 0x10], 0
je 0x105f0e9
mov eax, dword [ebp - 0xa2c]
test eax, eax
je 0x105f0ad
cmp word [eax], 0
je 0x105f0ad
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0xa2c]
call fcn.01065983
test eax, eax
jne 0x105f131
call ebx
mov dword [ebp - 0xa20], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f131
test byte [eax + 0x1c], 2
je 0x105f131
cmp byte [eax + 0x19], 2
jb 0x105f131
call ebx
push eax
push 0x1005484
push 0x32
jmp 0x105f121
push edi
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.01065983
test eax, eax
jne 0x105f131
call ebx
mov dword [ebp - 0xa20], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f131
test byte [eax + 0x1c], 2
je 0x105f131
cmp byte [eax + 0x19], 2
jb 0x105f131
call ebx
push eax
push 0x1005484
push 0x31
jmp 0x105f121
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01064e97
test eax, eax
jne 0x105f131
call ebx
mov dword [ebp - 0xa20], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f131
test byte [eax + 0x1c], 2
je 0x105f131
cmp byte [eax + 0x19], 2
jb 0x105f131
call ebx
push eax
push 0x1005484
push 0x33
mov eax, dword [0x1075004]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
cmp dword [ebp - 0xa20], 0
je 0x105f149
mov dword [ebp - 0xa20], 2
jmp 0x105f3e0
push 0x1005244
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100e740
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105f19a
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f27b
test byte [eax + 0x1c], 2
je 0x105f27b
cmp byte [eax + 0x19], 2
jb 0x105f27b
movzx ecx, word [ebp - 0xa24]
push ecx
push 0x1005484
push 0x34
jmp 0x105f270
push dword [ebp - 0xa30]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0100e740
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105f1ec
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f27b
test byte [eax + 0x1c], 2
je 0x105f27b
cmp byte [eax + 0x19], 2
jb 0x105f27b
movzx ecx, word [ebp - 0xa24]
push ecx
push 0x1005484
push 0x35
jmp 0x105f270
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.01009a5d
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105f230
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f27b
test byte [eax + 0x1c], 2
je 0x105f27b
cmp byte [eax + 0x19], 2
jb 0x105f27b
movzx ecx, word [ebp - 0xa24]
push ecx
push 0x1005484
push 0x36
jmp 0x105f270
push 0x10054c8
push edi
lea eax, [ebp - 0x414]
push eax
call fcn.0100e740
mov dword [ebp - 0xa24], eax
test eax, eax
jge 0x105f284
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f27b
test byte [eax + 0x1c], 2
je 0x105f27b
cmp byte [eax + 0x19], 2
jb 0x105f27b
movzx ecx, word [ebp - 0xa24]
push ecx
push 0x1005484
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
movzx eax, word [ebp - 0xa24]
jmp 0x105f2f5
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x105f300
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x105f13a
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0xa28]
call fcn.01009a5d
mov edi, eax
test edi, edi
jge 0x105f33c
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f2f2
test byte [eax + 0x1c], 2
je 0x105f2f2
cmp byte [eax + 0x19], 2
jb 0x105f2f2
movzx ecx, di
push ecx
push 0x1005484
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
movzx eax, di
mov dword [ebp - 0xa20], eax
jmp 0x105f3d7
lea eax, [ebp - 0x414]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01009a5d
mov edi, eax
test edi, edi
jge 0x105f2ac
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f2f2
test byte [eax + 0x1c], 2
je 0x105f2f2
cmp byte [eax + 0x19], 2
jb 0x105f2f2
movzx ecx, di
push ecx
push 0x1005484
push 0x38
jmp 0x105f2e7
push 2
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0xa28]
call fcn.0105e538
cmp eax, 0xffffffff
jne 0x105f39d
call ebx
mov dword [ebp - 0xa20], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f3d7
test byte [eax + 0x1c], 2
je 0x105f3d7
cmp byte [eax + 0x19], 2
jb 0x105f3d7
push dword [ebp - 0xa20]
push dword [ebp - 0xa28]
push 0x1005484
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x105f3d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x105f3d7
mov eax, dword [0x1075004]
cmp eax, esi
je 0x105f3d7
test byte [eax + 0x1c], 2
je 0x105f3d7
cmp byte [eax + 0x19], 2
jb 0x105f3d7
call ebx
push eax
mov eax, dword [0x1075004]
push 0x1005484
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
cmp dword [ebp - 0xa20], 0
je 0x105f3f0
push dword [ebp - 0xa20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x105f3f3
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0x14