Function at 0x40e470
Capabilities:
Copy file
Delete file
Delete registry key
Get common file path
Get file version info
Query or enumerate registry value

Disassembly:
jmp 0x40e470
mov eax, 0x1060
call fcn.0041be90
mov eax, dword [0x44e1b4]
xor eax, esp
mov dword [esp + 0x105c], eax
mov eax, dword [esp + 0x1068]
push ebp
xor ebp, ebp
cmp dword [0x44fe20], ebp
mov dword [esp + 8], eax
jne 0x40e4b7
lea eax, [ebp + 1]
pop ebp
mov ecx, dword [esp + 0x105c]
xor ecx, esp
call fcn.0041bdf4
add esp, 0x1060
ret
cmp dword [esp + 0x1068], ebp
jne 0x40e4d8
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x105c]
xor ecx, esp
call fcn.0041bdf4
add esp, 0x1060
ret
cmp eax, ebp
je 0x40e4c0
cmp dword [esp + 0x1070], ebp
je 0x40e4c0
push ebx
mov ebx, dword [esp + 0x1078]
xor eax, eax
cmp ebx, ebp
je 0x40ed8d
push 0x208
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0xe60]
push ebp
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x34], ebp
call fcn.0041be10
push 0x208
lea ecx, [esp + 0x5c]
push ebp
push ecx
call fcn.0041be10
push 0x400
lea edx, [esp + 0x670]
push ebp
push edx
call fcn.0041be10
push 0x400
lea eax, [esp + 0x27c]
push ebp
push eax
call fcn.0041be10
push 0x208
lea ecx, [esp + 0xc88]
push ebp
push ecx
call fcn.0041be10
push 0x100
lea edx, [esp + 0xa94]
push ebp
push edx
call fcn.0041be10
add esp, 0x48
cmp word [0x450e58], bp
jne 0x40e5c2
push 0x451880
push 0x100
lea eax, [esp + 0xa5c]
push eax
jmp 0x40e5d4
push 0x450e58
push 0x100
lea ecx, [esp + 0xa5c]
push ecx
call fcn.0041c22f
add esp, 0xc
push esi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea edx, [esp + 0xc60]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x451880
lea eax, [esp + 0xc60]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebp
lea edx, [esp + 0xc68]
push edx
push 0x80000002
call edi
test eax, eax
je 0x40e7eb
cmp dword [0x44fe24], 5
jl 0x40e722
lea eax, [esp + 0x10]
push eax
push 0x20119
push ebp
lea ecx, [esp + 0xc68]
push ecx
push 0x80000002
call edi
test eax, eax
je 0x40e7eb
mov edx, str.MESSAGE
mov ecx, 0x4787f0
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40e68d
cmp ax, bp
je 0x40e689
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x40e68d
add ecx, 4
add edx, 4
cmp ax, bp
jne 0x40e667
xor eax, eax
jmp 0x40e692
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x40e6f9
mov eax, dword [0x486304]
push 0x100
lea edx, [esp + 0x660]
push edx
push 0x462
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x44f200
lea ecx, [esp + 0xa60]
push ecx
lea edx, [esp + 0x664]
push edx
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x24
push 0x44f200
lea ecx, [esp + 0x264]
push ecx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40ed89
mov edx, dword [esp + 0x1084]
mov eax, dword [esp + 0x107c]
mov ecx, dword [esp + 0x14]
push edx
push ebx
push eax
push ecx
call fcn.00401186
add esp, 0x10
neg eax
sbb eax, eax
neg eax
jmp 0x40ed8b
mov edx, str.MESSAGE
mov ecx, 0x4787f0
lea esp, [esp]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40e756
cmp ax, bp
je 0x40e752
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x40e756
add ecx, 4
add edx, 4
cmp ax, bp
jne 0x40e730
xor eax, eax
jmp 0x40e75b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x40e7c2
mov eax, dword [0x486304]
push 0x100
lea edx, [esp + 0x660]
push edx
push 0x462
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x44f200
lea ecx, [esp + 0xa60]
push ecx
lea edx, [esp + 0x664]
push edx
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x24
push 0x44f200
lea ecx, [esp + 0x264]
push ecx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40ed89
mov edx, dword [esp + 0x1084]
mov eax, dword [esp + 0x107c]
mov ecx, dword [esp + 0x14]
push edx
push ebx
push eax
push ecx
call fcn.00401186
add esp, 0x10
neg eax
sbb eax, eax
neg eax
jmp 0x40ed8b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x58]
push eax
push ebp
push ebp
push str.Path
push ecx
mov dword [esp + 0x30], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40e858
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
push 0x80000002
call edi
mov ecx, dword [esp + 0x10]
push 0x451880
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, 1
jmp 0x40ed8b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x44fe24], 3
push 0x435bfc
jl 0x40e886
lea ecx, [esp + 0x58]
push ecx
call esi
push 0x451880
lea edx, [esp + 0x58]
push edx
call esi
jmp 0x40e8e9
lea eax, [esp + 0x58]
push eax
call esi
push 0x451880
lea ecx, [esp + 0x58]
push ecx
call esi
lea edx, [esp + 0xe64]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x451880
lea eax, [esp + 0xe68]
push eax
call esi
push ebp
lea ecx, [esp + 0xe68]
push ecx
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0xe64]
push eax
lea ecx, [esp + 0x58]
push 0x104
push ecx
call fcn.0041c22f
add esp, 0xc
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x58]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x40e84e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
mov ebx, 1
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebp
je 0x40ec07
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push esi
push ecx
push edx
lea eax, [esp + 0x60]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40e94f
push esi
push ebp
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x40ed8b
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x50]
push edx
push 0x435bfc
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
push esi
push ebp
je 0x40e93f
mov eax, dword [esp + 0x54]
movzx ecx, word [eax + 0xa]
mov dword [esp + 0x24], ecx
movzx edx, word [eax + 8]
mov dword [esp + 0x28], edx
movzx ecx, word [eax + 0xe]
mov dword [esp + 0x2c], ecx
movzx edx, word [eax + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
lea ecx, [ecx]
lea eax, [esi + 0x451680]
push eax
call fcn.0041bee1
mov dword [esp + esi + 0x3c], eax
add esi, 4
add esp, 4
cmp esi, 0x10
jb 0x40e9a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
mov dword [esp + 0x48], ebp
jbe 0x40e9cf
mov esi, ebx
jmp 0x40ea1f
jae 0x40e9d8
mov esi, 2
jmp 0x40ea1f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x40e9e8
mov esi, ebx
jmp 0x40ea1f
jae 0x40e9f1
mov esi, 2
jmp 0x40ea1f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jbe 0x40ea01
mov esi, ebx
jmp 0x40ea1f
jae 0x40ea0a
mov esi, 2
jmp 0x40ea1f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jbe 0x40ea1a
mov esi, ebx
jmp 0x40ea1f
sbb esi, esi
add esi, 3
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp dword [0x44fe24], 3
jge 0x40ea43
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, 2
jne 0x40eb59
mov eax, dword [0x44f810]
cmp eax, ebp
jne 0x40eab8
cmp dword [0x450c54], ebp
jne 0x40eaa9
mov edx, dword [0x486304]
push 0x100
lea ecx, [esp + 0x660]
push ecx
push 0x45e
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x44f200
lea eax, [esp + 0x660]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push ebp
lea edx, [esp + 0x26c]
push edx
push ebp
call fcn.004010be
add esp, 0x18
mov dword [0x478e10], 0xaa
jmp 0x40ed89
cmp eax, ebx
je 0x40ebd2
cmp dword [0x450c54], ebp
jne 0x40eb20
mov edx, dword [0x486304]
push 0x100
lea ecx, [esp + 0x660]
push ecx
push 0x459
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x44f200
lea eax, [esp + 0x660]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x24
push 0x44f200
lea edx, [esp + 0x264]
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40eaa9
mov eax, dword [esp + 0x1084]
mov ecx, dword [esp + 0x1080]
mov edx, dword [esp + 0x107c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.00401186
add esp, 0x10
test eax, eax
mov eax, 2
jne 0x40ed8b
mov eax, ebp
jmp 0x40ed8b
cmp esi, 3
jne 0x40ecab
mov eax, dword [0x451670]
cmp eax, ebp
jne 0x40ebce
cmp dword [0x450c54], ebp
jne 0x40ebbf
mov edx, dword [0x486304]
push 0x100
lea ecx, [esp + 0x660]
push ecx
push 0x45e
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x44f200
lea eax, [esp + 0x660]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push ebp
lea edx, [esp + 0x26c]
push edx
push ebp
call fcn.004010be
add esp, 0x18
mov dword [0x478e10], 0xa0
jmp 0x40ed89
cmp eax, ebx
jne 0x40ebfc
mov eax, dword [esp + 0x1084]
mov ecx, dword [esp + 0x1080]
mov edx, dword [esp + 0x107c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.00401186
add esp, 0x10
jmp 0x40ed8b
cmp eax, 2
jne 0x40ec0e
mov dword [0x4787e8], ebx
mov eax, ebx
jmp 0x40ed8b
cmp dword [0x450c54], ebp
jne 0x40ec72
mov edx, dword [0x486304]
push 0x100
lea ecx, [esp + 0x660]
push ecx
push 0x45a
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x44f200
lea eax, [esp + 0x660]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x24
push 0x44f200
lea edx, [esp + 0x264]
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40ebbf
mov eax, dword [esp + 0x1084]
mov ecx, dword [esp + 0x1080]
mov edx, dword [esp + 0x107c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.00401186
add esp, 0x10
test eax, eax
mov eax, 3
jne 0x40ed8b
mov eax, ebp
jmp 0x40ed8b
cmp word [0x44fe30], bp
je 0x40ed2b
call fcn.0040119a
test eax, eax
jne 0x40ed0e
cmp dword [0x450c54], ebp
jne 0x40ed7f
mov edx, dword [0x486304]
push 0x100
lea ecx, [esp + 0x660]
push ecx
push 0x457
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x44f200
lea eax, [esp + 0x660]
push eax
lea ecx, [esp + 0x264]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push ebp
lea edx, [esp + 0x26c]
push edx
jmp 0x40ed76
mov dword [0x478e2c], ebp
mov dword [0x46b138], ebx
mov dword [0x478e10], 0x8c
mov eax, 4
jmp 0x40ed8b
cmp dword [0x450c54], ebp
jne 0x40ed7f
mov ecx, dword [0x486304]
push 0x100
lea eax, [esp + 0x660]
push eax
push 0x457
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x44f200
lea edx, [esp + 0x660]
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push ebp
lea ecx, [esp + 0x26c]
push ecx
push ebp
call fcn.004010be
add esp, 0x18
mov dword [0x478e10], 0x8c
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1064]
pop ebx
pop ebp
xor ecx, esp
call fcn.0041bdf4
add esp, 0x1060
ret