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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4534d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x146c
call fcn.00432110
mov eax, dword [0x46b3ac]
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 [0x46c488]
stosw word es:[edi], ax
call fcn.0040ca70
mov ecx, eax
call fcn.0040fe10
test eax, eax
mov esi, dword [ebp + 8]
push str.ItemRegParameter
mov ecx, esi
je 0x40dd1f
call fcn.0041dbb0
push eax
push str.ItemRegExeFile64
mov ecx, esi
call fcn.0041dbb0
mov ecx, dword [0x46c488]
push eax
call fcn.0040ca50
mov eax, dword [eax + 0x278]
push eax
push str.__s_s___s
lea ecx, [esp + 0xe68]
push ecx
jmp 0x40dd51
call fcn.0041dbb0
push eax
push str.ItemRegExeFile32
mov ecx, esi
call fcn.0041dbb0
mov ecx, dword [0x46c488]
push eax
call fcn.0040ca50
mov edx, dword [eax + 0x278]
push edx
push str.__s_s___s
lea eax, [esp + 0xe68]
push eax
call fcn.00431524
add esp, 0x14
push str.ItemImeName
mov ecx, esi
call fcn.0041dbb0
push eax
lea ecx, [esp + 0x844]
push ecx
call fcn.0043167b
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 0x457080
push eax
call fcn.00431651
lea ecx, [esp + 0x1270]
push ecx
lea edx, [esp + 0x234]
push edx
call fcn.0043167b
lea eax, [esp + 0x850]
push eax
lea ecx, [esp + 0x23c]
push ecx
call fcn.00431651
lea edx, [esp + 0x240]
push 0x457de8
push edx
call fcn.00431651
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0043167b
lea edx, [esp + 0x48]
push 0x457de4
push edx
call fcn.00431651
add esp, 0x30
push str.ItemInstallPath
mov ecx, esi
call fcn.0041dbb0
push eax
lea eax, [esp + 0xa4c]
push eax
call fcn.0043167b
add esp, 8
push str.ItemSoftPath
mov ecx, esi
call fcn.0041dbb0
push eax
lea ecx, [esp + 0xa4c]
push ecx
call fcn.00431651
lea edx, [esp + 0xa50]
push str.plugin_
push edx
call fcn.00431651
lea eax, [esp + 0xa58]
push eax
lea ecx, [esp + 0x64c]
push ecx
call fcn.0043167b
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x654]
push eax
call fcn.00431651
lea ecx, [esp + 0x658]
push str.32.ime
push ecx
call fcn.00431651
lea edx, [esp + 0xa70]
push edx
lea eax, [esp + 0xc7c]
push eax
call fcn.0043167b
lea ecx, [esp + 0x870]
push ecx
lea edx, [esp + 0xc84]
push edx
call fcn.00431651
lea eax, [esp + 0xc88]
push str.64.ime
push eax
call fcn.00431651
mov ecx, dword [0x46c488]
add esp, 0x40
call fcn.0040ca70
mov ecx, eax
call fcn.0040fe10
test eax, eax
je 0x40e0ab
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 [0x46c488]
stosw word es:[edi], ax
call fcn.0040ca70
mov ecx, eax
call fcn.0040fe70
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 [0x46c488]
push 0x104
lea eax, [esp + 0x434]
push eax
call fcn.0040ca70
mov ecx, eax
call fcn.0040fe40
lea ecx, [esp + 0x430]
push 0x457080
push ecx
call fcn.00431651
lea edx, [esp + 0x848]
push edx
lea eax, [esp + 0x43c]
push eax
call fcn.00431651
lea ecx, [esp + 0x440]
push 0x457de8
push ecx
call fcn.00431651
lea edx, [esp + 0x448]
push edx
lea eax, [esp + 0x107c]
push eax
call fcn.0043167b
lea ecx, [esp + 0x1080]
push 0x457de4
push ecx
call fcn.00431651
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 [0x46c488]
push eax
call fcn.0040ca70
mov ecx, eax
call fcn.0040fe90
jmp 0x40e0d4
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 0x40e133
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push str.RunOnceEx
push ecx
call edi
test eax, eax
je 0x40e13a
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x457cfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40e13a
xor eax, eax
jmp 0x40e225
push str.ItemImeName
mov ecx, esi
call fcn.0041dbb0
push eax
lea ecx, [esp + 0x10]
call fcn.00403aa0
push 0x45700c
push 0x457cf8
lea ecx, [esp + 0x14]
mov dword [esp + 0x148c], ebx
call fcn.0040da50
push str.OneSetup
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040a8b0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x1488], 1
call fcn.004038d0
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 0x40e1b5
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.004318b6
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 0x40e220
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.00431018
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4