Function at 0x4a6f30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c7b6
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x4c], 0
call dword [sym.imp.ole32.dll_CoCreateGuid]
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a75b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 2
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 - 0x38]
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.00408de0
add esp, 0x34
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a75b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 4
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a75b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 6
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a75b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x44]
mov ecx, dword [edi + 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b4ea0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
call fcn.0047f480
mov esi, dword [ebp - 0x44]
cmp dword [esi - 0xc], 0
jl 0x4a70a9
push 0x5a0aa8
push esi
call fcn.0052f72c
add esp, 8
test eax, eax
je 0x4a70a9
sub eax, esi
sar eax, 1
jne 0x4a70a9
lea edx, [esi + 8]
test edx, edx
jne 0x4a7083
xor ecx, ecx
jmp 0x4a709f
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7090
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.004098b0
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x28]
call fcn.004980a0
mov byte [ebp - 4], 9
mov edx, eax
push 0x59a78c
lea ecx, [ebp - 0x30]
call fcn.004836a0
add esp, 8
mov byte [ebp - 4], 0xb
or ebx, 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a70ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
mov dl, 1
lea ecx, [ebp - 0x30]
call fcn.0049a9e0
push str.instname_target.msi
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x28]
call fcn.004836a0
add esp, 8
mov byte [ebp - 4], 0xd
lea ecx, [edi + 0x24]
push eax
call fcn.0047f480
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7139
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.instname_custom.mst
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.004836a0
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x2c]
add ecx, 0x28
push eax
mov dword [ebp - 0x28], ecx
call fcn.0047f480
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a717d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [edi + 0x24]
mov edi, dword [ebp - 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a7255
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a75b6
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x48]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x4c], 1
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a71d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a71f4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a720f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a722d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a7595
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a7595
mov edi, dword [ebp - 0x2c]
add edi, 0x1c
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00409540
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x18
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4a72b1
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004a8240
mov byte [ebp - 4], 0x19
mov ecx, edi
push eax
call fcn.0047f480
mov byte [ebp - 4], 0x18
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a72b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a75b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x1b
mov eax, 0x598e64
lea ecx, [ebp - 0x24]
test eax, 0xffff0000
jne 0x4a72e9
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4a72f5
push 0xb
push 0x598e64
call fcn.004098b0
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp - 0x2c]
push eax
add edi, 0x24
push edi
call fcn.004a79d0
mov byte [ebp - 4], 0x18
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7328
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a75b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x1e
mov eax, str.AI_PRODUCTNAME_ARP
lea ecx, [ebp - 0x24]
test eax, 0xffff0000
jne 0x4a7360
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4a736c
push 0x12
push str.AI_PRODUCTNAME_ARP
call fcn.004098b0
mov byte [ebp - 4], 0x1f
mov eax, dword [ebp - 0x2c]
add eax, 0x1c
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.004a79d0
mov byte [ebp - 4], 0x18
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a739f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a75b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x21
mov eax, str.ProductCode
lea ecx, [ebp - 0x24]
test eax, 0xffff0000
jne 0x4a73d7
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4a73e3
push 0xb
push str.ProductCode
call fcn.004098b0
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.004a79d0
mov byte [ebp - 4], 0x18
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7413
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409d30
mov ecx, eax
test ecx, ecx
je 0x4a75b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x24
mov eax, str.InstanceId
lea ecx, [ebp - 0x24]
test eax, 0xffff0000
jne 0x4a744b
movzx eax, ax
push eax
call fcn.00409280
jmp 0x4a7455
push str.InstanceId
call fcn.0049b230
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.004a79d0
mov byte [ebp - 4], 0x18
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7485
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 1], 0
je 0x4a7494
push edi
call fcn.004a7ee0
push dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004a75d0
mov byte [ebp - 4], 0x18
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a74c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00409540
mov ecx, dword [ebp - 0x48]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x4c], 1
mov byte [ebp - 4], 0xb
mov eax, ebx
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7501
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a751f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a753a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7558
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a7576
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a7595
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052df57
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00409a00
int3