Function at 0x1004c5b4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023d9b4
mov eax, dword fs:[0]
push eax
mov eax, 0x2088
call fcn.10046610
mov eax, dword [0x102cc06c]
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 0x1004c5f5
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004c87b
xor edi, edi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x208c], edi
jb 0x1004c614
mov esi, dword [esi]
push 0x10244ab4
lea eax, [ebp - 0x208c]
push esi
push eax
call fcn.100bd83e
add esp, 0xc
cmp dword [ebp - 0x208c], edi
je 0x1004c87b
push str..ACP
push edi
call fcn.100bc92f
push 0x2000
lea eax, [ebp - 0x2010]
push edi
push eax
call fcn.100a4c40
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x10246dc0
push dword [ebp - 0x208c]
call fcn.1004e013
add esp, 0x24
jmp 0x1004c85d
xor eax, eax
mov dword [ebp - 0x2018], edi
mov word [ebp - 0x2028], ax
lea ecx, [ebp - 0x2028]
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2014], 7
push eax
call fcn.1001c400
xor eax, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x2048], edi
mov dword [ebp - 0x2044], 7
mov word [ebp - 0x2058], ax
mov dword [ebp - 0x2030], edi
mov dword [ebp - 0x202c], 7
mov word [ebp - 0x2040], ax
push edi
push 0x10246dc8
lea ecx, [ebp - 0x2028]
mov byte [ebp - 4], 2
call fcn.1004a2be
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004c719
lea ecx, [ebp - 0x2040]
call fcn.10021eb0
lea ecx, [ebp - 0x2058]
call fcn.10021eb0
or dword [ebp - 4], esi
lea ecx, [ebp - 0x2028]
call fcn.10021eb0
jmp 0x1004c83e
inc esi
lea ecx, [ebp - 0x2028]
push esi
push 0x10246dcc
call fcn.1004a2be
mov edi, eax
cmp edi, 0xffffffff
je 0x1004c817
and dword [ebp - 0x2060], 0
lea ecx, [ebp - 0x2070]
xor eax, eax
mov dword [ebp - 0x205c], 7
mov word [ebp - 0x2070], ax
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x2028]
push eax
call fcn.1004a093
lea eax, [ebp - 0x2070]
push eax
lea ecx, [ebp - 0x2058]
call fcn.1001b2c0
lea ecx, [ebp - 0x2070]
call fcn.10021eb0
and dword [ebp - 0x2060], 0
lea ecx, [ebp - 0x2070]
xor eax, eax
mov dword [ebp - 0x205c], 7
mov word [ebp - 0x2070], ax
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2028]
push eax
call fcn.1004a093
lea eax, [ebp - 0x2070]
push eax
lea ecx, [ebp - 0x2040]
call fcn.1001b2c0
lea ecx, [ebp - 0x2070]
call fcn.10021eb0
lea eax, [ebp - 0x2040]
push eax
lea eax, [ebp - 0x2058]
push eax
lea ecx, [ebp - 0x2088]
call fcn.1004aa0e
push eax
lea eax, [ebp - 0x2094]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 0x34]
call fcn.1004b38c
lea ecx, [ebp - 0x2070]
call fcn.10021eb0
lea ecx, [ebp - 0x2088]
call fcn.10021eb0
lea ecx, [ebp - 0x2040]
call fcn.10021eb0
lea ecx, [ebp - 0x2058]
call fcn.10021eb0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2028]
call fcn.10021eb0
xor edi, edi
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x10246dc0
push dword [ebp - 0x208c]
call fcn.1004e013
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004c676
cmp dword [ebp - 0x208c], 0
je 0x1004c87b
push dword [ebp - 0x208c]
call fcn.100bc211
pop ecx
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