Function at 0x40d080
Capabilities:
Copy file
Delete file
Get common file path
Get file size
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa50
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x844], 0
lea eax, [ebp - 0x818]
push eax
push 0x3e0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40d113
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
lea ecx, [ebp - 0x818]
push ecx
push 0
push 0
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40d13e
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
push 0
lea eax, [ebp - 0x818]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d164
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0xffffffff
jne 0x40d19e
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
push 0
mov eax, dword [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x828], 0xffffffff
jne 0x40d1e7
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
push 0
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x838]
je 0x40d20c
jmp 0x40d4ba
push 0
lea ecx, [ebp - 0x818]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40d232
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
mov edx, dword [ebp - 8]
push edx
call fcn.0040160d
add esp, 4
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
jne 0x40d25c
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
mov eax, dword [ebp - 0x83c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x818]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40d288
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0x411014
mov edx, dword [ebp - 0x83c]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40d2ba
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
cmp dword [ebp - 0x824], 0
jne 0x40d2e8
push 0x4e4
push 0x409
push 0x411150
push 0x100
lea eax, [ebp - 0xa50]
push eax
call fcn.00401238
add esp, 0x14
jmp 0x40d316
mov ecx, dword [ebp - 0x824]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x824]
movzx ecx, word [eax]
push ecx
push 0x4111a0
push 0x100
lea edx, [ebp - 0xa50]
push edx
call fcn.00401238
add esp, 0x14
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x834]
push ecx
lea edx, [ebp - 0xa50]
push edx
mov eax, dword [ebp - 0x83c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40d34a
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d36d
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040160d
add esp, 4
mov dword [ebp - 0x84c], eax
cmp dword [ebp - 0x84c], 0
jne 0x40d397
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
mov eax, dword [ebp - 0x84c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40d3c0
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x824]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x84c]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40d3f2
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
cmp dword [ebp - 0x824], 0
jne 0x40d420
push 0x4e4
push 0x409
push 0x4111f0
push 0x100
lea eax, [ebp - 0xa50]
push eax
call fcn.00401238
add esp, 0x14
jmp 0x40d44e
mov ecx, dword [ebp - 0x824]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x824]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xFileVersion
push 0x100
lea edx, [ebp - 0xa50]
push edx
call fcn.00401238
add esp, 0x14
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0xa50]
push edx
mov eax, dword [ebp - 0x84c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40d47f
mov dword [ebp - 0x844], 0xee
jmp 0x40d4ba
mov ecx, dword [ebp - 0x820]
push ecx
mov edx, dword [ebp - 0x834]
push edx
call fcn.00401aae
add esp, 8
test eax, eax
je 0x40d49b
jmp 0x40d4ba
mov dword [ebp - 0x844], 1
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ecx, ecx
jne 0x40d0ee
cmp dword [ebp - 0x81c], 0
je 0x40d4d0
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x828], 0
je 0x40d4e6
mov eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40d4f8
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401530
add esp, 4
cmp dword [ebp - 0x840], 0
je 0x40d510
mov edx, dword [ebp - 0x840]
push edx
call fcn.00401530
add esp, 4
mov eax, dword [ebp - 0x844]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00401110
mov esp, ebp
pop ebp
ret