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

Disassembly:
sub esp, 0x230
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
mov ebx, dword [esp + 0x238]
push ebp
mov ebp, dword [esp + 0x240]
push esi
lea esi, [ebx + 0x24]
push esi
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], esi
call fcn.1001aae0
add esp, 8
test eax, eax
jl 0x10016b24
cmp eax, 1
je 0x10016b24
mov eax, dword [esi]
cmp eax, 0xa
je 0x10016b1a
cmp eax, 1
je 0x10016b1a
cmp eax, 2
jne 0x10016a2b
push edi
mov ecx, ebp
mov edx, ebx
call fcn.10015560
jmp 0x10016b24
cmp eax, 5
je 0x10016c6b
cmp eax, 6
je 0x10016c66
cmp eax, 7
je 0x10016c66
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
test esi, esi
je 0x10016b1a
cmp word [esi], 0
je 0x10016b1a
push str..cue
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10016ac8
lea eax, [ebx + 0x2c]
push ebp
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 0x18]
lea ecx, [ebx + 0x350]
xor esi, esi
lea edx, [ebx + 0x394]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
call fcn.10019d80
cmp eax, esi
jl 0x10016b24
cmp eax, 1
je 0x10016b24
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x354], eax
mov eax, ebx
mov dword [edx], ecx
call fcn.100166c0
jmp 0x10016b22
push 0x100c456c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10016b3e
sub esi, edi
push esi
push edi
push ebp
call fcn.10059a80
add esp, 0xc
push str..mds
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10016b1a
mov ecx, dword [esp + 0xc]
mov dword [ecx], 2
push ebp
xor ecx, ecx
mov edx, ebx
call fcn.10015560
test eax, eax
jl 0x10016b24
cmp eax, 1
je 0x10016b24
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [esp + 0x234]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005710f
add esp, 0x230
ret 8
push str..ccd
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10016b73
sub esi, edi
push esi
push edi
push ebp
call fcn.10059a80
add esp, 0xc
push str..img
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [esp + 0xc]
mov dword [edx], 3
jmp 0x10016b22
push str..bwt
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10016bb2
sub esi, edi
push esi
push edi
push ebp
call fcn.10059a80
add esp, 0xc
push str..bwi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x20], 0x56220
mov dword [eax], 9
jmp 0x10016b22
push str..bwi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10016c50
push str..b5t
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10016c05
sub esi, edi
push esi
push edi
push ebp
call fcn.10059a80
add esp, 0xc
push str..b5i
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [esp + 0xc]
mov dword [ebx + 0x20], 0x56220
mov dword [edx], 9
jmp 0x10016b22
push str..b6t
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10016c2c
sub esi, edi
push esi
push edi
push ebp
call fcn.10059a80
add esp, 0xc
push str..b6i
jmp 0x10016b95
push str..b5i
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10016c50
push str..b6i
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10016b1a
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x20], 0x56220
mov dword [ecx], 9
jmp 0x10016b1a
cmp eax, 5
jne 0x10016c76
push edi
push ebx
call fcn.10016700
test eax, eax
je 0x10016c8f
cmp dword [esi], 7
jne 0x10016c86
push edi
push ebx
call fcn.10016700
test eax, eax
je 0x10016c8f
cmp dword [esi], 6
jne 0x10016d8d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor edx, edx
push 0x206
mov esi, eax
push edx
lea eax, [esp + 0x32]
push eax
mov word [esp + 0x34], dx
call fcn.10059a00
add esp, 0xc
sub esi, edi
push esi
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.10059a80
add esp, 0xc
push str..cue
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0xc]
cmp dword [eax], 6
jne 0x10016d33
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10016d8d
lea eax, [ebx + 0x350]
mov dword [esp + 0x14], eax
xor eax, eax
lea edx, [ebx + 0x2c]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], edx
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.10019d80
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, ebx
call fcn.100166c0
jmp 0x10016b22
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10016d4d
mov eax, 0xe0032000
jmp 0x10016b24
xor esi, esi
lea ecx, [ebx + 0x2c]
push esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x18]
lea edx, [ebx + 0x350]
push ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.10019d80
cmp eax, esi
jl 0x10016b24
cmp eax, 1
je 0x10016b24
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, ebx
call fcn.100166c0
jmp 0x10016b22