Function at 0x100368e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101b2070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp edi, esi
je 0x10036a3b
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10036919
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10036b83
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003693a
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10036973
xor eax, eax
jmp 0x1003698f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10036950
mov dword [ebp - 8], esi
xor eax, eax
jmp 0x1003698f
lea esi, [eax + eax]
mov eax, esi
call fcn.101207a0
mov ebx, esp
mov ecx, esi
mov edx, 3
mov eax, edi
mov esi, ebx
call fcn.10037610
mov dword [ebp - 8], eax
xor eax, eax
jmp 0x1003698f
lea esi, [eax + eax]
mov eax, esi
call fcn.101207a0
mov ebx, esp
mov ecx, esi
mov edx, 3
mov eax, edi
mov esi, ebx
call fcn.10037610
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
push ecx
push eax
push esi
call fcn.10049fd0
add esp, 0xc
test eax, eax
jne 0x100369b3
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10036b83
push esi
call fcn.10049fc0
add esp, 4
test eax, eax
jne 0x100369d2
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10036b83
mov edx, dword [ebp + 8]
cmp dword [edx], 1
jne 0x10036a3b
test byte [ebp + 0x10], 1
je 0x10036a3b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x100369f3
xor eax, eax
jmp 0x10036a12
lea esi, [eax + eax]
mov eax, esi
call fcn.101207a0
mov ebx, esp
mov ecx, esi
mov edx, 3
mov eax, edi
mov esi, ebx
call fcn.10037610
mov esi, dword [ebp + 0xc]
push eax
call fcn.1004ba30
add esp, 4
test eax, eax
jne 0x10036a31
push 0x10d2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10036b83
push eax
push esi
call fcn.1004b9a0
add esp, 8
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10036b7e
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x1003690a
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003690a
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1003690a
push edi
call ebx
test eax, eax
je 0x1003690a
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1003690a
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x10036ad2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10036aa5
xor eax, eax
jmp 0x10036ac5
lea edi, [eax + eax]
mov eax, edi
call fcn.101207a0
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.10037610
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.100497c0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10036ae5
xor eax, eax
jmp 0x10036b03
lea edi, [eax + eax]
mov eax, edi
call fcn.101207a0
mov eax, dword [ebp + 0x18]
mov esi, esp
mov edx, 3
mov ecx, edi
call fcn.10037610
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push 1
push eax
push ecx
call fcn.1004d2d0
add esp, 0xc
test eax, eax
jne 0x10036b22
push 0x56
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10036b83
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x10036b35
xor eax, eax
jmp 0x10036b50
lea edi, [eax + eax]
mov eax, edi
call fcn.101207a0
mov eax, dword [ebp + 0x14]
mov esi, esp
mov edx, 3
mov ecx, edi
call fcn.10037610
mov esi, dword [ebp + 0xc]
push eax
push esi
call fcn.1004dcf0
add esp, 8
test eax, eax
je 0x100369a4
push esi
call fcn.10048870
add esp, 4
test eax, eax
jne 0x10036b7e
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10036b83
mov eax, 1
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011bab4
mov esp, ebp
pop ebp
ret 0x18