Function at 0x48b58d
Capabilities:
Copy file

Disassembly:
push 0x44
mov eax, 0x51708e
call fcn.004db2a7
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 8]
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea ecx, [ebp - 0x3c]
call fcn.0040cd94
mov dword [ebp - 4], 1
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x3c]
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.00411637
add esp, 0x34
lea ecx, [ebp - 0x28]
call fcn.0040cd94
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040cd94
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040cd94
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
mov ecx, dword [ebx + 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0049320d
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
add edi, 0xfffffff0
lea edx, [eax - 0x10]
cmp edx, edi
je 0x48b67e
cmp dword [edi + 0xc], 0
jl 0x48b672
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x48b672
mov ecx, edx
call fcn.00406f9b
mov ecx, edi
mov esi, eax
call fcn.0040d570
lea eax, [esi + 0x10]
mov dword [ebp - 0x28], eax
jmp 0x48b67e
push dword [eax - 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040d7d9
push 0
push str.__
lea ecx, [ebp - 0x2c]
call fcn.00438008
test eax, eax
jne 0x48b6aa
mov esi, dword [ebp - 0x2c]
add esi, 8
je 0x48b6a0
push esi
call fcn.004e07a4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d7d9
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x24]
call fcn.00473df0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x34]
mov edx, eax
mov dword [esp], 0x5397c4
call fcn.004537a0
pop ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0040d05a
push 0
mov dl, 1
lea ecx, [ebp - 0x34]
call fcn.0047aed0
lea edx, [ebp - 0x34]
mov dword [esp], str.instname_target.msi
lea ecx, [ebp - 0x24]
call fcn.004537a0
pop ecx
add ebx, 0x24
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov dword [ebp - 0x44], ebx
mov edi, dword [ebx]
lea edx, [ecx - 0x10]
sub edi, 0x10
cmp edx, edi
je 0x48b740
cmp dword [edi + 0xc], 0
jl 0x48b735
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x48b735
mov ecx, edx
call fcn.00406f9b
mov ecx, edi
mov esi, eax
call fcn.0040d570
lea eax, [esi + 0x10]
mov dword [ebx], eax
jmp 0x48b740
push dword [ecx - 0xc]
push ecx
mov ecx, ebx
call fcn.0040d7d9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0040d05a
push str.instname_custom.mst
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x24]
call fcn.004537a0
pop ecx
mov esi, dword [ebp - 0x30]
mov byte [ebp - 4], 9
mov ecx, dword [eax]
mov edi, dword [esi + 0x28]
sub edi, 0x10
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x48b7a6
cmp dword [edi + 0xc], 0
jl 0x48b79a
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x48b79a
mov ecx, edx
call fcn.00406f9b
mov ecx, edi
mov esi, eax
call fcn.0040d570
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x30]
mov dword [esi + 0x28], eax
jmp 0x48b7a6
push dword [ecx - 0xc]
push ecx
lea ecx, [esi + 0x28]
call fcn.0040d7d9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0040d05a
push 0
push dword [ebx]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x48b7d7
mov ecx, dword [ebp - 0x48]
call fcn.0040cd94
mov dword [ebp - 0x4c], 1
jmp 0x48b92a
lea edi, [esi + 0x1c]
push edi
lea ecx, [ebp - 0x40]
call fcn.00406ff4
mov byte [ebp - 4], 0xa
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x48b84b
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0048bca9
mov byte [ebp - 4], 0xb
mov edx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x48b83c
cmp dword [ebx + 0xc], 0
jl 0x48b831
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x48b831
call fcn.00406f9b
mov ecx, ebx
mov esi, eax
call fcn.0040d570
lea eax, [esi + 0x10]
mov dword [edi], eax
jmp 0x48b83c
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.0040d7d9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.0040d05a
mov ebx, dword [ebp - 0x44]
push 0x537f24
lea ecx, [ebp - 0x24]
call fcn.0040d859
push edi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xc
push eax
push ebx
call fcn.0048bafc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.0040d05a
push str.AI_PRODUCTNAME_ARP
lea ecx, [ebp - 0x24]
call fcn.0040d859
push edi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xd
push eax
push ebx
call fcn.0048bafc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.0040d05a
push str.ProductCode
lea ecx, [ebp - 0x24]
call fcn.0040d859
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.0048bafc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.0040d05a
push str.InstanceId
lea ecx, [ebp - 0x24]
call fcn.004898ff
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.0048bafc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.0040d05a
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x38]
add esi, 0x28
push esi
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0048b971
lea ecx, [ebp - 0x44]
call fcn.0040d05a
mov ecx, dword [ebp - 0x48]
push esi
call fcn.00406ff4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4c], 1
mov byte [ebp - 4], 7
call fcn.0040d05a
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0040d05a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040d05a
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0040d05a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040d05a
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.0040d05a
mov eax, dword [ebp - 0x48]
call fcn.004db251
ret 4