Function at 0x406470
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58edb5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5fb1a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 2
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4066d3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
call fcn.0042b730
mov ecx, eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4066dd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [edi]
or ebx, 0xffffffff
mov byte [ebp - 4], 6
mov edi, dword [ecx + 0x5c]
test edi, edi
je 0x406679
lea eax, [edi]
mov edi, dword [edi]
mov dword [ebp - 0x2c], edi
mov edi, dword [eax + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edi
cmp dword [edi + 8], eax
jne 0x406668
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00404000
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
sub eax, 0x10
mov byte [ebp - 4], 7
push eax
call fcn.00404000
add eax, 0x10
add esp, 8
mov dword [ebp - 0x18], eax
push dword [0x5ffc54]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
push str.PkgDir
call fcn.004095d0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push str.PkgDir
call fcn.004095d0
cmp dword [edi + 0xc], 0
mov esi, dword [ebp - 0x14]
push 0
push esi
je 0x40658f
call fcn.0055fefe
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40664d
mov ecx, dword [edx]
push edx
jmp 0x406648
call fcn.0055fefe
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x4065e3
push str.D:_source_aprelSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x24]
call fcn.004020d0
push 0xf3
push dword [eax]
mov byte [ebp - 4], 9
push dword [ebp - 0x20]
call fcn.004277f0
mov edx, dword [ebp - 0x24]
add esp, 0xc
mov byte [ebp - 4], 8
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4065e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 4]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push edi
push str._s_s
push eax
call fcn.00404830
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push esi
push str._s_s
push eax
call fcn.00404830
add esp, 0x20
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406636
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x10]
push eax
call fcn.004277f0
add esp, 0xc
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40664d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 6
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406668
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x4064f5
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406690
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4066a7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4066bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00403cc0
push 0x80004005
call fcn.00403cc0
int3