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

Disassembly:
sub esp, 0x230
mov eax, dword [0x100de040]
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.10053eb0
add esp, 8
test eax, eax
jl 0x1004fe84
cmp eax, 1
je 0x1004fe84
mov eax, dword [esi]
cmp eax, 0xa
je 0x1004fe7a
cmp eax, 1
je 0x1004fe7a
cmp eax, 2
jne 0x1004fd8b
push edi
mov ecx, ebp
mov edx, ebx
call fcn.1004e930
jmp 0x1004fe84
cmp eax, 5
je 0x1004ffcb
cmp eax, 6
je 0x1004ffc6
cmp eax, 7
je 0x1004ffc6
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
test esi, esi
je 0x1004fe7a
cmp word [esi], 0
je 0x1004fe7a
push str..cue
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004fe28
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.10053130
cmp eax, esi
jl 0x1004fe84
cmp eax, 1
je 0x1004fe84
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.1004fa20
jmp 0x1004fe82
push 0x100d4e2c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004fe9e
sub esi, edi
push esi
push edi
push ebp
call fcn.10064ea0
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 0x1004fe7a
mov ecx, dword [esp + 0xc]
mov dword [ecx], 2
push ebp
xor ecx, ecx
mov edx, ebx
call fcn.1004e930
test eax, eax
jl 0x1004fe84
cmp eax, 1
je 0x1004fe84
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.10062448
add esp, 0x230
ret 8
push str..ccd
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004fed3
sub esi, edi
push esi
push edi
push ebp
call fcn.10064ea0
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 0x1004fe82
push str..bwt
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004ff12
sub esi, edi
push esi
push edi
push ebp
call fcn.10064ea0
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 0x1004fe82
push str..bwi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004ffb0
push str..b5t
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004ff65
sub esi, edi
push esi
push edi
push ebp
call fcn.10064ea0
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 0x1004fe82
push str..b6t
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004ff8c
sub esi, edi
push esi
push edi
push ebp
call fcn.10064ea0
add esp, 0xc
push str..b6i
jmp 0x1004fef5
push str..b5i
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1004ffb0
push str..b6i
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004fe7a
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x20], 0x56220
mov dword [ecx], 9
jmp 0x1004fe7a
cmp eax, 5
jne 0x1004ffd6
push edi
push ebx
call fcn.1004fa60
test eax, eax
je 0x1004ffef
cmp dword [esi], 7
jne 0x1004ffe6
push edi
push ebx
call fcn.1004fa60
test eax, eax
je 0x1004ffef
cmp dword [esi], 6
jne 0x100500ed
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.10064e10
add esp, 0xc
sub esi, edi
push esi
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.10064ea0
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 0x10050093
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100500ed
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.10053130
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, ebx
call fcn.1004fa20
jmp 0x1004fe82
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100500ad
mov eax, 0xe0032000
jmp 0x1004fe84
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.10053130
cmp eax, esi
jl 0x1004fe84
cmp eax, 1
je 0x1004fe84
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, ebx
call fcn.1004fa20
jmp 0x1004fe82