Function at 0x40a640
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 + 0x124]
push ecx
call edi
lea edi, [esp + 0x224]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a697
mov edx, dword [0x43726c]
mov eax, dword [0x437270]
mov ecx, dword [0x437274]
mov dword [edi], edx
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
lea edi, [esp + 0x120]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a6c0
mov edx, dword [0x43725c]
mov eax, dword [0x437260]
mov ecx, dword [0x437264]
mov dword [edi], edx
mov dl, byte [0x437268]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 8], ecx
mov ecx, dword [esi + 8]
mov byte [edi + 0xc], dl
mov edx, dword [ecx + 0x20]
shl eax, 5
push 0x437248
lea eax, [eax + edx + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405dc0
mov eax, dword [eax]
push 0
lea edx, [esp + 0x124]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
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 0x40a73b
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 + 0x128]
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.wnwb_
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x340], 0
call fcn.00405dc0
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40a790
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 0x40a7b8
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 0x40a7e1
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 + 0x1c]
dec edi
test eax, eax
je 0x40a801
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a7f2
mov esi, str.ImeReg64.exe___SetupIME_32_64_wnwbio.ime
jmp 0x40a80e
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a801
mov esi, str.ImeReg32.exe___SetupIME_32_64_wnwbio.ime
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xc]
push eax
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 0x40a87b
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push eax
push str.RunOnce
push edx
call esi
test eax, eax
je 0x40a87f
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0xc]
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 0x40a87f
xor eax, eax
jmp 0x40a8c2
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a886
sub eax, edx
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push 1
push 0
push str.wnwbIoSetup
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
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