Function at 0x4ed232
Capabilities:
Check if file exists

Disassembly:
push 0x2c
mov eax, 0x5dc1fc
call fcn.00506dc7
mov ebx, ecx
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
call fcn.00430f47
push dword [ebp + 8]
test eax, eax
je 0x4ed4e6
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ed4e1
lea ecx, [ebp + 8]
call fcn.0043193c
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004e5694
xor ebx, ebx
mov ecx, eax
inc ebx
mov byte [ebp - 4], bl
call fcn.0043193c
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00412393
pop ecx
mov dword [ebp - 0x20], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00412ac4
push 0
push esi
lea ecx, [ebp + 8]
call fcn.0042ea61
test eax, eax
js 0x4ed349
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, esp
mov dword [ebp - 0x28], esp
push str..._syswow64
mov byte [ebp - 4], 4
call fcn.00413f09
push ecx
mov edi, esp
mov byte [ebp - 4], 5
push dword [ebp - 0x20]
mov dword [ebp - 0x30], edi
call fcn.00412393
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x24]
mov edi, dword [ebp - 0x14]
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00434114
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
push esi
call fcn.00434b1c
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
test eax, eax
jne 0x4ed4d2
mov byte [ebp - 4], 3
call fcn.00412ac4
jmp 0x4ed34c
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004ed062
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0043193c
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00412393
pop ecx
mov dword [ebp - 0x1c], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 9
call fcn.00412ac4
push 0
push esi
lea ecx, [ebp + 8]
call fcn.0042ea61
test eax, eax
js 0x4ed422
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.syswow64
mov byte [ebp - 4], 0xa
call fcn.00413f09
push ecx
mov edi, esp
mov byte [ebp - 4], 0xb
push dword [ebp - 0x1c]
mov dword [ebp - 0x38], edi
call fcn.00412393
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x28]
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xa
call fcn.00434114
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
push esi
call fcn.00434b1c
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0xa
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
test eax, eax
jne 0x4ed4ca
mov byte [ebp - 4], 9
call fcn.00412ac4
mov esi, str.program_files__x86_
lea ecx, [ebp - 0x10]
push esi
call fcn.00413f09
push 0
push dword [ebp - 0x10]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xd
call fcn.0042ea61
test eax, eax
js 0x4ed464
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xe
mov dword [esp], str.program_files
jmp 0x4ed49a
push str.program_files
lea ecx, [ebp - 0x10]
call fcn.0041421f
push 0
push dword [ebp - 0x10]
lea ecx, [ebp + 8]
call fcn.0042ea61
test eax, eax
js 0x4ed4c2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xf
push esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.00434b1c
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esi - 0x10]
test eax, eax
je 0x4ed4bd
call fcn.00412ac4
jmp 0x4ed4c4
call fcn.00412ac4
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x1c]
call fcn.00412ac4
mov ecx, dword [ebp - 0x20]
call fcn.00412ac4
jmp 0x4ed4ee
xor ebx, ebx
inc ebx
jmp 0x4ed4ee
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00412ac4
mov eax, ebx
call fcn.00506d90
ret 4