Function at 0x405f60
Capabilities:
Copy file
Delete file
Get common file path
Move file
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4362eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x4481e0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
mov dword [esp + 0x328], eax
push 0x104
lea eax, [esp + 0x228]
push eax
call esi
push 0x104
lea ecx, [esp + 0x20]
push ecx
call esi
lea edi, [esp + 0x224]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405fb2
mov edx, dword [0x439134]
mov eax, dword [0x439138]
mov cx, word [0x43913c]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 0x1c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405fe0
mov edx, dword [0x439128]
mov eax, dword [0x43912c]
mov cx, word [0x439130]
mov dword [edi], edx
mov dl, byte [0x439132]
mov dword [edi + 4], eax
mov eax, dword [0x44914c]
mov word [edi + 8], cx
mov byte [edi + 0xa], dl
mov ecx, dword [eax + 0x18]
call fcn.00408b00
test eax, eax
je 0x406062
mov ecx, dword [0x44914c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x20]
push str.wnpydll64wnpy.ime
add eax, 0x28
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004047c0
mov eax, dword [eax]
push 0
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4060a4
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x20]
push str.wnpydll32wnpy.ime
add edx, 0x28
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004047c0
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4060ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 5
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edx, dword [0x44914c]
mov eax, dword [edx + 0x14]
add eax, 4
push eax
push 0x438fb0
lea ecx, [esp + 0x20]
push ecx
call fcn.00405700
push str.wnpy_
push eax
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x340], 0
call fcn.004047c0
mov ecx, dword [eax]
lea edx, [esp + 0x120]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x406103
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40612b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x334], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406154
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x18]
call fcn.00408b00
lea edi, [esp + 0x120]
dec edi
test eax, eax
je 0x406180
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406170
mov esi, str.ImeReg64.exe___SetupIME_dll32_dll64_wnpy.ime
jmp 0x40618d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406180
mov esi, str.ImeReg32.exe___SetupIME_dll32_dll64_wnpy.ime
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4061fa
lea edx, [esp + 0xc]
push edx
push 0xf003f
push eax
mov eax, dword [esp + 0x14]
push str.RunOnce
push eax
call esi
test eax, eax
je 0x4061fe
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.RunOnce
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4061fe
xor eax, eax
jmp 0x406247
lea eax, [esp + 0x120]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406208
mov ecx, dword [esp + 0xc]
sub eax, edx
push eax
lea eax, [esp + 0x124]
push eax
push 1
push 0
push str.wnPySetup
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
mov ecx, dword [esp + 0x32c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x324]
pop esi
call fcn.0041b28e
add esp, 0x330
ret