Function at 0x428ee0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x418
push edi
mov edi, ecx
cmp byte [edi + 4], 1
mov dword [esp + 4], edi
jne 0x4291c9
mov eax, dword [edi]
cmp eax, 5
push esi
je 0x428f09
cmp eax, 6
je 0x428f09
cmp eax, 0xa
jne 0x428f38
call fcn.004079b0
push str.SPOOLER
call fcn.00405570
add esp, 4
xor esi, esi
lea ecx, [ecx]
push str.SPOOLER
call fcn.00409a00
add esp, 4
cmp eax, 1
je 0x428f38
inc esi
cmp esi, 0x18
jl 0x428f20
push ebx
push ebp
call fcn.0044608e
mov eax, dword [edi + 0x124]
xor ebx, ebx
test eax, eax
jle 0x4291c2
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
test ebx, ebx
mov esi, 1
jl 0x4291d6
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 0x124]
jge 0x4291d6
mov eax, dword [eax + 0x120]
mov ecx, dword [eax + ebx*4]
lea edx, [esp + 0x18]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x428f81
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428f92
sub eax, edx
mov dword [esp + 0x14], eax
je 0x4291ad
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x428fc8
test al, 1
je 0x428fc8
xor eax, 1
push eax
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 6
je 0x428fd8
cmp eax, 0xa
jne 0x429021
mov ecx, dword [0x466e18]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0042f890
add esp, 8
test eax, eax
jne 0x42901a
mov eax, dword [0x466e30]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042f890
add esp, 8
test eax, eax
jne 0x42901a
lea edx, [esp + 0x18]
push edx
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x429021
xor esi, esi
mov edi, 5
mov eax, dword [esp + 0x10]
cmp dword [eax], 5
jne 0x429073
mov ecx, dword [0x466e14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0042f890
add esp, 8
test eax, eax
jne 0x42906c
mov eax, dword [0x466e2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042f890
add esp, 8
test eax, eax
jne 0x42906c
lea edx, [esp + 0x18]
push edx
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x429073
xor esi, esi
mov edi, 5
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 2
je 0x429083
cmp eax, 3
jne 0x4290c3
mov ecx, dword [0x466e10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0042f890
add esp, 8
test eax, eax
jne 0x4290d4
mov eax, dword [0x466e28]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0042f890
add esp, 8
test eax, eax
jne 0x4290d4
lea edx, [esp + 0x18]
push edx
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x4291ad
cmp edi, 2
je 0x4291ad
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 5
je 0x42911b
cmp eax, 6
je 0x42911b
cmp eax, 0xa
je 0x42911b
push 0x104
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x220]
push eax
push 0x44bf10
call fcn.004046e0
add esp, 8
jmp 0x4291ad
push 0x104
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.UNINSTAL.tmp
lea edx, [esp + 0x120]
push edx
mov eax, edx
push 0x44bbe8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0xa
lea ecx, [esp + 0x338]
push ecx
push ebx
call fcn.0043a58b
add esp, 0x1c
lea edx, [esp + 0x324]
push edx
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x11c]
push ecx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 2
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x4291a7
push 4
push 0
lea ecx, [esp + 0x124]
push ecx
call esi
jmp 0x4291ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x124]
inc ebx
cmp ebx, eax
jl 0x428f55
mov edi, edx
pop ebp
pop ebx
mov byte [edi + 4], 0
pop esi
mov eax, 1
pop edi
add esp, 0x418
ret
jmp fcn.0043b946