Function at 0x405c80
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 0x405cd2
mov edx, dword [0x439084]
mov eax, dword [0x439088]
mov dword [edi], edx
mov dword [edi + 4], eax
lea edi, [esp + 0x1c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405cf0
mov ecx, dword [0x439078]
mov edx, dword [0x43907c]
mov al, byte [0x439080]
mov dword [edi], ecx
mov ecx, dword [0x44914c]
mov dword [edi + 4], edx
mov byte [edi + 8], al
mov ecx, dword [ecx + 0x18]
call fcn.00408b00
test eax, eax
je 0x405d3f
mov edx, dword [0x44914c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x20]
push str.wnimedll64wn.ime
add ecx, 0x28
push ecx
lea edx, [esp + 0x18]
push edx
jmp 0x405d58
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x20]
push str.wnimedll32wn.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 0x405d8b
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.wnime_
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 0x405de0
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 0x405e08
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 0x405e31
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 0x405e60
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405e50
mov esi, str.ImeReg64.exe___SetupIME_dll32_dll64_wn.ime
jmp 0x405e6d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405e60
mov esi, str.ImeReg32.exe___SetupIME_dll32_dll64_wn.ime
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
push 0xf003f
movsw word es:[edi], word [esi]
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 0x405edc
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 0x405ee0
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 0x405ee0
xor eax, eax
jmp 0x405f2f
lea eax, [esp + 0x120]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ef0
mov ecx, dword [esp + 0xc]
sub eax, edx
push eax
lea eax, [esp + 0x124]
push eax
push 1
push 0
push str.wnImeSetup
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