Function at 0x5006f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab66b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1634
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
cmp byte [edi + 8], 0
mov ecx, dword [ebp + 8]
jne 0x5009f0
push ecx
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
call fcn.00500560
push 0x208
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x162c]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0xe2c]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xe2c]
add esp, 0x24
mov ecx, dword [ecx + 0x1c]
push eax
push str.UNINSTALLDEFAULTPATH
call fcn.004f65f0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.PMON
call ebx
push 0x5c692c
mov esi, eax
call ebx
push 0x5c692c
add esi, eax
call ebx
add esi, eax
lea eax, [ebp - 0xe2c]
push eax
call ebx
add eax, esi
cmp eax, 0x400
jae 0x500875
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0xe2c]
push eax
call esi
push str.PMON
lea eax, [ebp - 0xe2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xe2c]
push eax
call esi
lea eax, [ebp - 0xe2c]
push eax
call ebx
cmp eax, 0x400
jae 0x500875
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0xe2c]
push 0x400
push eax
lea eax, [ebp - 0x162c]
push eax
call esi
test eax, eax
je 0x500875
push 0x104
lea eax, [ebp - 0x162c]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
push str.MFNP_ALRDY_INST.ini
call ebx
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
call ebx
add esi, eax
cmp esi, 0x104
jae 0x500875
push str.MFNP_ALRDY_INST.ini
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x500898
mov dword [edi + 4], 4
xor eax, eax
mov byte [edi + 8], 1
jmp 0x5009ff
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x424]
mov ecx, edi
push 0x104
push eax
push 0
call fcn.005027c0
mov dword [ebp - 0x1640], 0
mov dword [ebp - 0x163c], 0
mov dword [ebp - 0x1638], 0
lea eax, [ebp - 0x1640]
mov dword [ebp - 4], 2
push eax
lea ecx, [edi + 0xc]
call fcn.00500300
mov esi, dword [ebp - 0x1640]
mov ebx, dword [ebp - 0x163c]
cmp esi, ebx
sete al
mov byte [ebp - 0x162d], al
je 0x500971
push 0x208
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x500930
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x424]
push eax
push 0x5c70f4
push 0xffffffffffffffff
lea eax, [ebp - 0x62c]
push 0x104
push eax
call fcn.00437f50
add esp, 0x18
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x500975
add esi, 0x18
cmp esi, ebx
jne 0x500910
mov al, byte [ebp - 0x162d]
test al, al
je 0x50098f
lea ecx, [ebp - 0x1640]
mov dword [edi + 4], 2
call fcn.00409b00
mov byte [edi + 8], 1
xor eax, eax
jmp 0x5009ff
lea ecx, [ebp - 0x1640]
mov dword [edi + 4], 1
call fcn.00409b00
mov byte [edi + 8], 1
xor eax, eax
jmp 0x5009ff
mov eax, 0x80010004
mov dword [0x6183ec], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4