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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4541e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x146c
call fcn.00432ed0
mov eax, dword [0x46c3ac]
push ebx
mov dword [esp + 0x146c], eax
push esi
push edi
xor eax, eax
xor ebx, ebx
mov word [esp + 0xe58], bx
mov ecx, 0x81
lea edi, [esp + 0xe5a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x840], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x842]
rep stosd dword es:[edi], eax
mov ecx, dword [0x46d488]
stosw word es:[edi], ax
call fcn.0040c740
mov ecx, eax
call fcn.0040fe60
test eax, eax
mov esi, dword [ebp + 8]
push 0x456a2c
mov ecx, esi
je 0x40dbdf
call fcn.0041e570
push eax
push str.ItemRegExeFile64
mov ecx, esi
call fcn.0041e570
mov ecx, dword [0x46d488]
push eax
call fcn.0040c720
mov eax, dword [eax + 0x278]
push eax
push str.__s_s___s
lea ecx, [esp + 0xe68]
push ecx
jmp 0x40dc11
call fcn.0041e570
push eax
push str.ItemRegExeFile32
mov ecx, esi
call fcn.0041e570
mov ecx, dword [0x46d488]
push eax
call fcn.0040c720
mov edx, dword [eax + 0x278]
push edx
push str.__s_s___s
lea eax, [esp + 0xe68]
push eax
call fcn.004322a4
add esp, 0x14
push str.ItemImeName
mov ecx, esi
call fcn.0041e570
push eax
lea ecx, [esp + 0x844]
push ecx
call fcn.004323fb
xor eax, eax
mov word [esp + 0x230], bx
mov ecx, 0x81
lea edi, [esp + 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x28], bx
mov ecx, 0x81
lea edi, [esp + 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x1270], bx
mov ecx, 0x81
lea edi, [esp + 0x1272]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0xa50], bx
mov ecx, 0x81
lea edi, [esp + 0xa52]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x640], bx
mov ecx, 0x81
lea edi, [esp + 0x642]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0xc58], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0xc5a]
rep stosd dword es:[edi], eax
add esp, 8
push 0x104
lea edx, [esp + 0x126c]
push edx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x1268]
push 0x4570f8
push eax
call fcn.004323d1
lea ecx, [esp + 0x1270]
push ecx
lea edx, [esp + 0x234]
push edx
call fcn.004323fb
lea eax, [esp + 0x850]
push eax
lea ecx, [esp + 0x23c]
push ecx
call fcn.004323d1
lea edx, [esp + 0x240]
push 0x457efc
push edx
call fcn.004323d1
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004323fb
lea edx, [esp + 0x48]
push 0x457ef8
push edx
call fcn.004323d1
add esp, 0x30
push str.ItemInstallPath
mov ecx, esi
call fcn.0041e570
push eax
lea eax, [esp + 0xa4c]
push eax
call fcn.004323fb
add esp, 8
push str.ItemSoftPath
mov ecx, esi
call fcn.0041e570
push eax
lea ecx, [esp + 0xa4c]
push ecx
call fcn.004323d1
lea edx, [esp + 0xa50]
push 0x4570f8
push edx
call fcn.004323d1
lea eax, [esp + 0xa58]
push eax
lea ecx, [esp + 0x64c]
push ecx
call fcn.004323fb
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x654]
push eax
call fcn.004323d1
lea ecx, [esp + 0x658]
push str.32.ime
push ecx
call fcn.004323d1
lea edx, [esp + 0xa70]
push edx
lea eax, [esp + 0xc7c]
push eax
call fcn.004323fb
lea ecx, [esp + 0x870]
push ecx
lea edx, [esp + 0xc84]
push edx
call fcn.004323d1
lea eax, [esp + 0xc88]
push str.64.ime
push eax
call fcn.004323d1
mov ecx, dword [0x46d488]
add esp, 0x40
call fcn.0040c740
mov ecx, eax
call fcn.0040fe60
test eax, eax
je 0x40df6b
xor eax, eax
mov word [esp + 0x430], bx
mov ecx, 0x81
lea edi, [esp + 0x432]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x1060], bx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1062]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x46d488]
stosw word es:[edi], ax
call fcn.0040c740
mov ecx, eax
call fcn.0040fec0
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xc58]
push eax
call edi
push 5
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [0x46d488]
push 0x104
lea eax, [esp + 0x434]
push eax
call fcn.0040c740
mov ecx, eax
call fcn.0040fe90
lea ecx, [esp + 0x430]
push 0x4570f8
push ecx
call fcn.004323d1
lea edx, [esp + 0x848]
push edx
lea eax, [esp + 0x43c]
push eax
call fcn.004323d1
lea ecx, [esp + 0x440]
push 0x457efc
push ecx
call fcn.004323d1
lea edx, [esp + 0x448]
push edx
lea eax, [esp + 0x107c]
push eax
call fcn.004323fb
lea ecx, [esp + 0x1080]
push 0x457ef8
push ecx
call fcn.004323d1
add esp, 0x28
push ebx
lea edx, [esp + 0x1064]
push edx
lea eax, [esp + 0x640]
push eax
call edi
push 5
lea ecx, [esp + 0x434]
push ecx
lea edx, [esp + 0x1068]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x46d488]
push eax
call fcn.0040c740
mov ecx, eax
call fcn.0040fee0
jmp 0x40df94
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x40dff3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push str.RunOnce
push ecx
call edi
test eax, eax
je 0x40dffa
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.RunOnceEx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40dffa
xor eax, eax
jmp 0x40e0e5
push str.ItemImeName
mov ecx, esi
call fcn.0041e570
push eax
lea ecx, [esp + 0x10]
call fcn.00403a80
push 0x457084
push 0x457e28
lea ecx, [esp + 0x14]
mov dword [esp + 0x148c], ebx
call fcn.0040d910
push str.OneSetup
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040a6c0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1488], 1
call fcn.004038b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x1484], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e075
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xe58]
push eax
call fcn.00432636
mov edx, dword [esp + 0x18]
add esp, 4
shl eax, 1
push eax
lea ecx, [esp + 0xe5c]
push ecx
push 1
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x1484], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e0e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x147c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1474]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4