Function at 0x4059d0
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 + 0x124]
push ecx
call esi
lea edi, [esp + 0x224]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405a25
mov edx, dword [0x438fd8]
mov eax, dword [0x438fdc]
mov ecx, dword [0x438fe0]
mov dword [edi], edx
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
lea edi, [esp + 0x120]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405a50
mov edx, dword [0x438fc8]
mov eax, dword [0x438fcc]
mov ecx, dword [0x438fd0]
mov dword [edi], edx
mov dl, byte [0x438fd4]
mov dword [edi + 4], eax
mov eax, dword [0x44914c]
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
push 0x438fb4
add edx, 0x28
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004047c0
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x124]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
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 0x405ac9
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 [0x44914c]
mov eax, dword [edx + 0x14]
add eax, 4
push eax
push 0x438fb0
lea ecx, [esp + 0x20]
push ecx
call fcn.00405700
push 0x438f10
push eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x340], 0
call fcn.004047c0
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
mov edi, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x405b20
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 0x405b48
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 0x405b71
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 + 0x1c]
dec edi
test eax, eax
je 0x405b96
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405b87
mov esi, str.ImeReg64.exe___SetupIME_32_64_wnwbio.ime
jmp 0x405ba3
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405b96
mov esi, str.ImeReg32.exe___SetupIME_32_64_wnwbio.ime
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
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 0x405c10
lea edx, [esp + 8]
push edx
push 0xf003f
push eax
mov eax, dword [esp + 0x18]
push str.RunOnce
push eax
call esi
test eax, eax
je 0x405c14
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0xc]
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 0x405c14
xor eax, eax
jmp 0x405c5c
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
jmp 0x405c20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405c20
mov ecx, dword [esp + 8]
sub eax, edx
push eax
lea eax, [esp + 0x20]
push eax
push 1
push 0
push str.wnwbIoSetup
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0xc]
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