Function at 0x1004c630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023e360
mov eax, dword fs:[0]
push eax
mov eax, 0x20a0
call fcn.10046610
mov eax, dword [0x102cd06c]
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 ebx, ecx
lea esi, [ebx + 4]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004c671
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004c93f
and dword [ebp - 0x20a4], 0
cmp dword [esi + 0x14], 8
jb 0x1004c68f
mov esi, dword [esi]
push 0x10244ab4
lea eax, [ebp - 0x20a4]
push esi
push eax
call fcn.100be1ce
add esp, 0xc
cmp dword [ebp - 0x20a4], 0
je 0x1004c93f
push 0
push 0
call fcn.100bd2bf
and dword [ebp - 0x2060], 0
mov edx, eax
pop ecx
pop ecx
mov ecx, edx
mov dword [ebp - 0x205c], 0xf
mov byte [ebp - 0x2070], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004c6db
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2070]
call fcn.100211b0
and dword [ebp - 4], 0
push 0x10246db8
push 0
call fcn.100bd2bf
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.100a55e0
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x10246dbc
push dword [ebp - 0x20a4]
call fcn.1004e0d9
add esp, 0x24
jmp 0x1004c8f8
and dword [ebp - 0x2018], 0
lea ecx, [ebp - 0x2028]
xor eax, eax
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
lea eax, [ebp - 0x2010]
push eax
call fcn.1001c400
xor ecx, ecx
mov dword [ebp - 0x2044], 7
xor eax, eax
mov dword [ebp - 0x2048], ecx
mov word [ebp - 0x2058], ax
mov dword [ebp - 0x2030], ecx
mov dword [ebp - 0x202c], 7
mov word [ebp - 0x2040], ax
push ecx
push 0x10246dc4
lea ecx, [ebp - 0x2028]
mov byte [ebp - 4], 3
call fcn.1004a33a
mov esi, eax
cmp esi, 0xffffffff
je 0x1004c8b4
inc esi
lea ecx, [ebp - 0x2028]
push esi
push 0x10246dc8
call fcn.1004a33a
mov edi, eax
cmp edi, 0xffffffff
je 0x1004c8b4
and dword [ebp - 0x2078], 0
lea ecx, [ebp - 0x2088]
xor eax, eax
mov dword [ebp - 0x2074], 7
mov word [ebp - 0x2088], ax
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x2028]
push eax
call fcn.1004a10f
lea eax, [ebp - 0x2088]
push eax
lea ecx, [ebp - 0x2058]
call fcn.1001b2c0
lea ecx, [ebp - 0x2088]
call fcn.10021eb0
and dword [ebp - 0x2078], 0
lea ecx, [ebp - 0x2088]
xor eax, eax
mov dword [ebp - 0x2074], 7
mov word [ebp - 0x2088], ax
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2028]
push eax
call fcn.1004a10f
lea eax, [ebp - 0x2088]
push eax
lea ecx, [ebp - 0x2040]
call fcn.1001b2c0
lea ecx, [ebp - 0x2088]
call fcn.10021eb0
lea eax, [ebp - 0x2040]
push eax
lea eax, [ebp - 0x2058]
push eax
lea ecx, [ebp - 0x20a0]
call fcn.1004aa8a
push eax
lea eax, [ebp - 0x20ac]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 0x34]
call fcn.1004b408
lea ecx, [ebp - 0x2088]
call fcn.10021eb0
lea ecx, [ebp - 0x20a0]
call fcn.10021eb0
lea ecx, [ebp - 0x2040]
call fcn.10021eb0
lea ecx, [ebp - 0x2058]
call fcn.10021eb0
lea ecx, [ebp - 0x2028]
mov byte [ebp - 4], 0
call fcn.10021eb0
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x10246dbc
push dword [ebp - 0x20a4]
call fcn.1004e0d9
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004c738
cmp dword [ebp - 0x20a4], 0
je 0x1004c916
push dword [ebp - 0x20a4]
call fcn.100bcba1
pop ecx
cmp dword [ebp - 0x205c], 0x10
lea eax, [ebp - 0x2070]
cmovae eax, dword [ebp - 0x2070]
push eax
push 0
call fcn.100bd2bf
pop ecx
pop ecx
lea ecx, [ebp - 0x2070]
call fcn.10003240
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.100451cc
leave
ret