Function at 0x456ef0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2a0c
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4e96d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebx]
call fcn.00464b70
test al, al
jne 0x457186
call fcn.0046c0e0
mov esi, eax
mov ecx, esi
call fcn.0046e8e0
cmp byte [0x4f3c19], 0
jne 0x456fae
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x456fa3
push 0x4f3c19
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x125
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUI_agent_install_action.cpp
push 0x20
call fcn.0046bf00
jmp 0x456fa5
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x4f4094], eax
mov ecx, esi
call fcn.0046e8f0
mov ecx, dword [0x4f4094]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.00418b90
mov byte [ebp - 4], 3
mov ecx, dword [0x4f4094]
push dword [eax]
push str.MSI_file___s_does_not_exist
mov edx, dword [ecx]
push ecx
call dword [edx + 0x48]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x38]
add esp, 0xc
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45700e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f4094]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f4094]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
push 0x70
lea ecx, [ebp - 0x38]
call fcn.0041d2b0
push eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
push ecx
mov ecx, edi
call fcn.0045e620
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457065
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, 2
lea ecx, [ebp - 0x3c]
call fcn.00410c50
mov ebx, eax
push 0x81
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.0041d2b0
push ebx
push eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0045e3c0
mov byte [ebp - 4], 5
mov ecx, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4570b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4570d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x81
lea ecx, [ebp - 0x38]
mov dword [edi + 0x30], 3
call fcn.0041d2b0
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 7
push eax
call fcn.0045ef60
mov byte [ebp - 4], 8
lea ecx, [edi + 0x38]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0041a350
mov byte [ebp - 4], 7
mov ecx, esi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457127
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457147
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x457168
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004712e4
mov esp, ebp
pop ebp
ret
push 0x4cec90
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00419430
add esp, 0xc
mov byte [ebp - 4], 9
call fcn.0046c0e0
mov esi, eax
mov ecx, esi
call fcn.0046e8e0
cmp byte [0x4f3c13], 0
jne 0x457207
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4571fc
push 0x4f3c13
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x12e
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUI_agent_install_action.cpp
push 0x48
call fcn.0046bf00
jmp 0x4571fe
xor eax, eax
mov byte [ebp - 4], 9
mov dword [0x4f3f94], eax
mov ecx, esi
call fcn.0046e8f0
mov ecx, dword [0x4f3f94]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
push dword [ebx + 8]
lea ecx, [ebp - 0x48]
call fcn.00418b90
mov esi, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3c]
push dword [ebp + 0xc]
call fcn.00418b90
mov byte [ebp - 4], 0xc
push dword [esi]
mov ecx, dword [0x4f3f94]
push dword [eax]
push str.Copying_file___s__to___s_...
mov edx, dword [ecx]
push ecx
call dword [edx + 0x48]
mov byte [ebp - 4], 0xb
or esi, 0xffffffff
mov edx, dword [ebp - 0x3c]
add esp, 0x10
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45727a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov ecx, esi
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45729a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f3f94]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f3f94]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
xor dl, dl
lea ecx, [ebp - 0x40]
call fcn.0046a3d0
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
call fcn.0046a220
push 0x72
lea ecx, [ebp - 0x4c]
call fcn.0041d2b0
mov dword [ebp - 0x34], eax
push 0x4cec90
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xd
call fcn.00418e40
push eax
mov edx, 0x4d47b4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x3c]
call fcn.00419510
add esp, 4
push 0x4d47b8
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xf
push eax
call fcn.00419430
add esp, 0xc
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x44]
push dword [ebp - 0x34]
mov edx, eax
call fcn.00419370
add esp, 4
mov byte [ebp - 4], 0x12
mov ecx, esi
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45734a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x13
mov ecx, esi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45736a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x14
mov ecx, esi
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45738a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov ecx, esi
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4573aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x44]
lea eax, [edi + 0x38]
push str._s...
push eax
call fcn.0041b160
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x4573cd
call fcn.0046f84e
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
push ebx
push dword [ebp - 0x38]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], 0
push eax
push edi
lea ecx, [ebp - 0x64]
call fcn.00427820
mov ebx, eax
mov dword [ebp - 0x20], 0
push 0x18
mov byte [ebp - 4], 0x16
call fcn.00473f4b
add esp, 4
test eax, eax
jne 0x45740b
call fcn.0046f81d
mov dword [eax], 0x4d50d0
movdqu xmm0, xmmword [ebx]
movdqu xmmword [eax + 4], xmm0
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x30]
push eax
push 0x4568c0
push dword [ebp - 0x40]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x457665
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
call fcn.0046c0e0
mov ebx, eax
mov ecx, ebx
call fcn.0046e8e0
cmp byte [0x4f3b96], 0
jne 0x4574b5
push 0xf0
call fcn.0046e4f0
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x18
test eax, eax
je 0x4574aa
push 0x4f3b96
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x4cea7a
push 0
push 0
push 0x147
push str.C:BuildAgentwork6ef1b807bd9726a1RemoteInstallerInstallerUI_agent_install_action.cpp
push 0x20
call fcn.0046bf00
jmp 0x4574ac
xor eax, eax
mov byte [ebp - 4], 0x17
mov dword [0x4f3fd4], eax
mov ecx, ebx
call fcn.0046e8f0
mov ecx, dword [0x4f3fd4]
lea ecx, [ecx + 0xd0]
call fcn.0046e8e0
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov edx, ebx
call fcn.00410ed0
mov edx, eax
mov byte [ebp - 4], 0x19
mov eax, dword [0x4f3fd4]
push dword [edx]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov byte [ebp - 4], 0x17
add esp, 8
mov edx, dword [ebp - 0x34]
mov ecx, esi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457510
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x4f3fd4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x4f3fd4]
lea ecx, [ecx + 0xd0]
call fcn.0046e8f0
push 0x72
lea ecx, [ebp - 0x34]
call fcn.0041d2b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1a
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ecx
mov ecx, edi
call fcn.0045e580
mov byte [ebp - 4], 0x17
mov ecx, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x45756b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, ebx
lea ecx, [ebp - 0x38]
call fcn.00410c50
mov ebx, eax
push 0x81
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1b
call fcn.0041d2b0
push ebx
push eax
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x1c
call fcn.0045e3c0
mov byte [ebp - 4], 0x1b
mov ecx, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4575b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov ecx, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4575d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x81
lea ecx, [ebp - 0x34]
mov dword [edi + 0x30], 3
call fcn.0041d2b0
push eax
mov ecx, edi
mov byte [ebp - 4], 0x1d
call fcn.0045e460
mov byte [ebp - 4], 0x17
mov ecx, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457616
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x457639
mov edx, dword [ecx]
lea eax, [ebp - 0x30]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 9
mov ecx, esi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x457659
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x40]
jmp 0x45712e
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x457688
mov edx, dword [ecx]
lea eax, [ebp - 0x30]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 9
mov ecx, esi
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4576a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4576c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4576e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x45716a