Function at 0x10054040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10108a2e
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.10004180
lea esi, [ebp - 0x64]
call fcn.1004cb20
mov ebx, eax
push 0x10126160
lea eax, [ebp - 0x48]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.10003b80
mov ecx, eax
lea eax, [ebp + 0xc]
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.1000a660
push ebx
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 3
call fcn.1001c190
add esp, 0x18
mov ebx, 0x10
cmp dword [ebp - 0x88], ebx
jb 0x100540e2
mov edx, dword [ebp - 0x9c]
push edx
call fcn.10065453
add esp, 4
xor esi, esi
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], esi
mov byte [ebp - 0x9c], 0
cmp dword [ebp - 0x34], ebx
jb 0x1005410c
mov eax, dword [ebp - 0x48]
push eax
call fcn.10065453
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x50], ebx
jb 0x1005412f
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10065453
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x18], ebx
jae 0x10054148
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10054166
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x2c]
push edx
mov ecx, edi
call fcn.10004180
jmp 0x100541f6
lea esi, [ebp - 0xb8]
call fcn.1004cb20
push eax
lea eax, [ebp - 0x80]
push edi
push eax
mov byte [ebp - 4], 8
call fcn.10054700
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.10004040
cmp dword [ebp - 0x6c], ebx
jb 0x100541a1
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.10065453
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
cmp dword [ebp - 0xa4], ebx
jb 0x100541cf
mov edx, dword [ebp - 0xb8]
push edx
call fcn.10065453
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x100541da
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1005422a
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.10004180
xor esi, esi
cmp dword [ebp - 0x18], ebx
jb 0x10054207
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10065453
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x20], ebx
jb 0x10054226
mov edx, dword [ebp + 0xc]
push edx
call fcn.10065453
add esp, 4
mov al, 1
jmp 0x1005425c
cmp dword [ebp - 0x18], ebx
jb 0x1005423b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10065453
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x20], ebx
jb 0x1005425a
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10065453
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret 0x20