Function at 0x421d40
Capabilities:
Check if file exists
Create process on windows
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55a6cb
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x5b4450]
xor eax, esp
mov dword [esp + 0x688], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, esp
push eax
lea eax, [esp + 0x6a0]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [esp + 0x14]
push str.Tool_UnInstallMFNPportMonitor
push eax
call fcn.0040ac70
add esp, 0xc
mov dword [esp + 0x6a8], esi
call fcn.00442c4d
mov edi, dword [eax + 4]
mov dword [esp + 0x1c], edi
cmp edi, esi
jne 0x421ddc
push esi
push str.return___08x
push 2
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x6a8], 0xffffffff
call fcn.0040ae50
xor eax, eax
jmp 0x422153
mov eax, dword [edi + 0x87c]
mov ecx, 0x58aac4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421e0d
cmp dx, si
je 0x421e09
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421e0d
add eax, 4
add ecx, 4
cmp dx, si
jne 0x421de7
xor eax, eax
jmp 0x421e12
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x422124
mov eax, dword [edi + 0x878]
mov ecx, 0x58aac4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421e4b
cmp dx, si
je 0x421e47
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421e4b
add eax, 4
add ecx, 4
cmp dx, si
jne 0x421e25
xor eax, eax
jmp 0x421e50
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x422124
push 0x204
lea edx, [esp + 0x28c]
push esi
push edx
mov dword [esp + 0x290], esi
call fcn.005373f0
add esp, 0xc
lea ecx, [esp + 0x284]
call fcn.00413180
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x284]
push eax
call ebx
test eax, eax
je 0x422124
mov edx, dword [edi + 0x87c]
cmp dword [edx - 0xc], esi
je 0x422112
mov eax, dword [edi + 0x878]
cmp dword [eax - 0xc], esi
je 0x422112
push 0x204
lea ecx, [esp + 0x494]
push esi
push ecx
mov dword [esp + 0x498], esi
call fcn.005373f0
mov edx, dword [edi + 0x878]
add esp, 0xc
push edx
lea eax, [esp + 0x288]
push eax
push 0x58b914
push 0xffffffffffffffff
lea ecx, [esp + 0x49c]
push 0x104
push ecx
call fcn.00535cbb
add esp, 0x18
lea edx, [esp + 0x48c]
mov esi, 1
push edx
mov dword [esp + 0x1c], esi
call ebx
test eax, eax
je 0x422072
push 0x44
lea eax, [esp + 0x38]
push 0
push eax
call fcn.005373f0
add esp, 0xc
xor eax, eax
xor ecx, ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x38]
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov word [esp + 0x88], cx
lea ecx, [esp + 0x4b0]
push ecx
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x88], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x421f8b
push eax
push str.return___08x
push 2
lea edx, [esp + 0x1c]
push edx
jmp 0x421db9
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x24]
push eax
mov dword [esp + 0x24], 0
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x421fbe
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call edi
push 0x20
lea edx, [esp + 0x490]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea esp, [esp]
lea eax, [esp + 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x421ffc
push 0xa
call edi
inc esi
cmp esi, 0x64
jl 0x421fe0
mov edi, dword [esp + 0x1c]
xor esi, esi
push 0x204
lea ecx, [esp + 0x84]
push esi
push ecx
mov dword [esp + 0x88], esi
call fcn.005373f0
mov edx, dword [edi + 0x87c]
add esp, 0xc
push edx
lea eax, [esp + 0x288]
push eax
push 0x58b914
push 0xffffffffffffffff
lea ecx, [esp + 0x8c]
push 0x104
push ecx
call fcn.00535cbb
add esp, 0x18
lea edx, [esp + 0x7c]
push edx
call ebx
test eax, eax
je 0x42207a
push 0x20
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42207e
xor esi, esi
mov dword [esp + 0x18], esi
jmp 0x422002
mov dword [esp + 0x18], esi
push str.MFNP_ALRDY_INST.ini
lea edx, [esp + 0x288]
push edx
push 0x58b914
push 0xffffffffffffffff
lea eax, [esp + 0x8c]
push 0x104
push eax
call fcn.00535cbb
add esp, 0x18
lea ecx, [esp + 0x7c]
push ecx
call ebx
test eax, eax
je 0x4220cf
push 0x20
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4220d3
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x284]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, dword [esp + 0x18]
push esi
push str.return___08x
lea edx, [esp + 0x18]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x6a8], 0xffffffff
call fcn.0040ae50
mov eax, esi
jmp 0x422153
push esi
push str.return___08x
push 2
lea eax, [esp + 0x1c]
push eax
jmp 0x421db9
push 1
push str.return___08x
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x6a8], 0xffffffff
call fcn.0040ae50
mov eax, 1
mov ecx, dword [esp + 0x6a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x688]
xor ecx, esp
call fcn.005337cb
mov esp, ebp
pop ebp
ret