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

Disassembly:
push 0xffffffffffffffff
push 0x433b4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x4441e0]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [esp + 0x328], eax
push 0x104
lea eax, [esp + 0x228]
push eax
mov esi, ecx
call edi
push 0x104
lea ecx, [esp + 0x20]
push ecx
call edi
lea edi, [esp + 0x224]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a944
mov edx, dword [0x437318]
mov eax, dword [0x43731c]
mov dword [edi], edx
mov dword [edi + 4], eax
lea edi, [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a961
mov ecx, dword [0x43730c]
mov edx, dword [0x437310]
mov al, byte [0x437314]
mov dword [edi], ecx
mov ecx, dword [esi + 0xc]
mov dword [edi + 4], edx
mov byte [edi + 8], al
call fcn.00407eb0
test eax, eax
je 0x40a9d4
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x40]
mov eax, dword [edx + 0x20]
shl ecx, 5
push str.wnimedll64wn.ime
lea ecx, [ecx + eax + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00405dc0
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
jmp 0x40aa18
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x40]
mov edx, dword [ecx + 0x20]
shl eax, 5
push str.wnimedll32wn.ime
lea eax, [eax + edx + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00405dc0
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
jg 0x40aa22
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 [esi + 8]
add edx, 0xc
push edx
push 0x437244
lea eax, [esp + 0x20]
push eax
call fcn.00405e80
push str.wnime_
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x340], 0
call fcn.00405dc0
mov ecx, dword [eax]
lea edx, [esp + 0x120]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40aa71
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aa99
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 0x40aac2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esi + 0xc]
call fcn.00407eb0
lea edi, [esp + 0x120]
dec edi
test eax, eax
je 0x40aae5
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40aad6
mov esi, str.ImeReg64.exe___SetupIME_dll32_dll64_wn.ime
jmp 0x40aaf2
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40aae5
mov esi, str.ImeReg32.exe___SetupIME_dll32_dll64_wn.ime
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 8]
push eax
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 0x40ab61
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push eax
push str.RunOnce
push edx
call esi
test eax, eax
je 0x40ab65
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.RunOnce
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40ab65
xor eax, eax
jmp 0x40abaf
lea eax, [esp + 0x120]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ab70
sub eax, edx
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x124]
push edx
push 1
push 0
push str.wnImeSetup
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
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.004185be
add esp, 0x330
ret