Function at 0x111ae70
Capabilities:
Check if file exists
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1145e58
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x49c], esi
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x494], esi
mov dword [ebp - 0x490], esi
lea ecx, [ebp - 0x220]
push ecx
push 0x105
mov dword [ebp - 4], esi
mov dword [ebp - 0x4a0], 0xffffffff
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [0x1161d94]
mov eax, dword [edx + 0xc]
mov ecx, 0x1161d94
mov byte [ebp - 4], 1
mov dword [ebp - 0x4a8], esi
mov dword [ebp - 0x4a4], esi
call eax
add eax, 0x10
mov dword [ebp - 0x484], eax
mov edx, dword [0x1161d94]
mov eax, dword [edx + 0xc]
mov ecx, 0x1161d94
mov byte [ebp - 4], 2
call eax
add eax, 0x10
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x4b8], esi
mov dword [ebp - 0x4b4], esi
mov dword [ebp - 0x4b0], esi
mov dword [ebp - 0x4ac], esi
mov edx, dword [0x1161d94]
mov eax, dword [edx + 0xc]
mov ecx, 0x1161d94
mov byte [ebp - 4], 4
call eax
add eax, 0x10
mov dword [ebp - 0x478], eax
cmp edi, esi
mov byte [ebp - 4], 5
je 0x111b288
cmp word [edi], si
je 0x111b288
cmp ebx, esi
je 0x111b288
cmp word [ebx], si
je 0x111b288
lea ecx, [ebp - 0x488]
push ecx
lea edx, [ebp - 0x484]
push edx
lea eax, [ebp - 0x4b8]
push eax
call fcn.0111a5b0
mov ecx, dword [ebp - 0x488]
cmp dword [ecx - 0xc], esi
je 0x111b0f9
mov edx, dword [ebp - 0x484]
cmp dword [edx - 0xc], esi
je 0x111b0f9
lea ecx, [ebp - 0x47c]
call fcn.01099650
lea ecx, [ebp - 0x474]
call fcn.01099650
mov eax, dword [ebp - 0x488]
push ebx
push eax
push edi
lea ecx, [ebp - 0x474]
push 0x10508dc
push ecx
mov byte [ebp - 4], 7
call fcn.0109dc70
mov edx, dword [ebp - 0x484]
push ebx
push edx
push edi
lea eax, [ebp - 0x47c]
push 0x10508dc
push eax
call fcn.0109dc70
mov ecx, dword [ebp - 0x474]
add esp, 0x28
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x111b0df
mov edx, dword [ebp - 0x47c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x111b0df
mov eax, dword [0x115f550]
mov ecx, dword [ebp - 0x474]
push eax
push ecx
lea edx, [ebp - 0x478]
push 0x100e294
push edx
call fcn.0109dc70
mov eax, dword [ebp - 0x478]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push eax
call edi
test eax, eax
je 0x111b0a0
lea ecx, [ebp - 0x474]
push ecx
mov ecx, dword [ebp - 0x48c]
xor edi, edi
call fcn.0109dbc0
lea ecx, [ebp - 0x474]
call fcn.0111cdb0
lea ecx, [ebp - 0x47c]
call fcn.0111cdb0
jmp 0x111b28d
mov edx, dword [0x115f550]
mov eax, dword [ebp - 0x47c]
push edx
push eax
lea ecx, [ebp - 0x478]
push 0x100e294
push ecx
call fcn.0109dc70
mov edx, dword [ebp - 0x478]
add esp, 0x10
push edx
call edi
test eax, eax
je 0x111b0d8
lea eax, [ebp - 0x47c]
push eax
jmp 0x111b078
mov edi, 1
jmp 0x111b085
lea ecx, [ebp - 0x474]
call fcn.0111cdb0
lea ecx, [ebp - 0x47c]
mov byte [ebp - 4], 5
call fcn.0111cdb0
lea ecx, [ebp - 0x4b8]
push ecx
lea edx, [ebp - 0x49c]
push edx
push ebx
push edi
lea ecx, [ebp - 0x470]
call fcn.0111abb0
mov edi, eax
cmp edi, esi
jne 0x111b28d
mov ecx, dword [ebp - 0x498]
cmp ecx, esi
jbe 0x111b28d
xor edi, edi
cmp ecx, esi
jbe 0x111b281
xor eax, eax
cmp edi, ecx
mov dword [ebp - 0x4dc], esi
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4d4], eax
mov dword [ebp - 0x4d0], eax
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4c8], eax
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4bc], eax
mov dword [ebp - 0x480], esi
mov dword [ebp - 0x47c], esi
jae 0x111b253
mov eax, dword [ebp - 0x49c]
mov ecx, dword [0x115f550]
mov eax, dword [eax + edi*4]
push ecx
push eax
lea edx, [ebp - 0x478]
push 0x100e294
push edx
call fcn.0109dc70
mov ebx, dword [ebp - 0x478]
add esp, 0x10
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x111b21c
lea eax, [ebp - 0x4dc]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x111b25d
mov edx, dword [ebp - 0x4a4]
mov ecx, dword [ebp - 0x4c4]
mov eax, dword [ebp - 0x4a8]
mov ebx, dword [ebp - 0x4c8]
push edx
mov dword [ebp - 0x47c], ecx
push eax
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x480], ebx
call fcn.0111a440
test al, al
je 0x111b21c
mov ecx, dword [ebp - 0x47c]
mov dword [ebp - 0x4a8], ebx
mov dword [ebp - 0x4a4], ecx
mov dword [ebp - 0x4a0], edi
mov ecx, dword [ebp - 0x498]
add edi, 1
cmp edi, ecx
jb 0x111b136
mov eax, dword [ebp - 0x4a0]
cmp eax, esi
jl 0x111b281
push eax
lea ecx, [ebp - 0x49c]
call fcn.01095c00
mov ecx, dword [ebp - 0x48c]
push eax
call fcn.0109dbc0
xor edi, edi
jmp 0x111b28d
push 0x80070057
call fcn.01071710
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x111b26f
call edi
mov edi, eax
jmp 0x111b28d
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x111b28d
mov edi, 1
jmp 0x111b28d
mov edi, 0x80070057
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x111b2b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4b8]
cmp eax, esi
je 0x111b2d9
mov ecx, dword [ebp - 0x4b4]
push ecx
push eax
call fcn.0109d740
mov edx, dword [ebp - 0x4b8]
push edx
call fcn.01083cad
add esp, 4
mov eax, dword [ebp - 0x488]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x111b2ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x484]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x111b325
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x111b33b
cmp eax, 0xffffffff
je 0x111b33b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x14], esi
cmp word [ebp - 0x220], si
je 0x111b351
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x49c]
cmp eax, esi
je 0x111b377
mov edx, dword [ebp - 0x498]
push edx
push eax
call fcn.0109d740
mov eax, dword [ebp - 0x49c]
push eax
call fcn.01083cad
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 0xc