Function at 0x417c31
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x3c], eax
push edi
lea eax, [ebp - 0x18]
mov esi, ecx
push eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov eax, dword [0x45a180]
mov ebx, 0x45a180
mov ecx, ebx
call dword [eax + 0xc]
push 0x10
pop edi
add eax, edi
mov dword [ebp - 0x28], eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push str._0.8X__0.4X__0.4X__0.2X_0.2X__0.2X_0.2X_0.2X_0.2X_0.2X_0.2X
push eax
call fcn.00409682
mov eax, dword [0x45a180]
add esp, 0x34
mov ecx, ebx
call dword [eax + 0xc]
add eax, edi
mov dword [ebp - 0x30], eax
mov eax, dword [0x45a180]
mov ecx, ebx
call dword [eax + 0xc]
add eax, edi
mov dword [ebp - 0x34], eax
mov eax, dword [0x45a180]
mov ecx, ebx
call dword [eax + 0xc]
push dword [esi + 0x14]
add eax, edi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x34]
call fcn.0040bc48
lea eax, [ebp - 0x24]
lea edi, [ebp - 0x30]
call fcn.004087db
push 0x452d9c
xor ecx, ecx
lea esi, [ebp - 0x24]
call fcn.00408b1e
test eax, eax
jne 0x417d1e
mov eax, dword [ebp - 0x24]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.004044c5
lea eax, [ebp - 0x28]
push 0x44b8b0
push eax
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x20]
call fcn.00408c92
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00408cc4
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.004045dc
push 0
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.0040a62d
mov esi, dword [ebp - 0x1c]
add esp, 0xc
push str.instname_target.msi
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
add esi, 0x18
call fcn.00408cc4
pop ecx
mov edi, esi
call fcn.004087db
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004045dc
mov edi, dword [ebp - 0x1c]
add edi, 0x1c
push str.instname_custom.mst
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x38], edi
call fcn.00408cc4
pop ecx
call fcn.004087db
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [esi]
mov edi, dword [ebp - 0x34]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x417dcc
mov esi, dword [ebp - 0x3c]
mov ecx, ebx
call fcn.004045c1
jmp 0x417e72
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + 0x10]
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
jne 0x417df9
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00418207
mov edi, ebx
call fcn.004087db
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004045dc
mov edi, dword [ebp - 0x34]
push 0x44bd38
lea eax, [ebp - 0x1c]
call fcn.004044e8
push ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.00418017
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004045dc
push 0x44b844
lea eax, [ebp - 0x1c]
call fcn.004044e8
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.00418017
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004045dc
mov ebx, dword [ebp - 0x38]
push ebx
push esi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
call fcn.00417eb9
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebx]
sub eax, 0x10
call fcn.00409bcb
mov esi, dword [ebp - 0x3c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.004045dc
lea eax, [edi - 0x10]
call fcn.004045dc
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.004045dc
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043159b
leave
ret 4