Function at 0x405ae0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462645
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x47e700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 2
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x405d43
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
call fcn.0042a268
mov ecx, eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x405d4d
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 + 0x60]
test edi, edi
je 0x405ce9
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 0x405cd8
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00403650
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.00403650
add eax, 0x10
add esp, 8
mov dword [ebp - 0x18], eax
push dword [0x480164]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
push str.PkgDir
call fcn.00408c70
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push str.PkgDir
call fcn.00408c70
cmp dword [edi + 0xc], 0
mov esi, dword [ebp - 0x14]
push 0
push esi
je 0x405bff
call fcn.0043982f
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405cbd
mov ecx, dword [edx]
push edx
jmp 0x405cb8
call fcn.0043982f
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x405c53
push str.D:_apreltechSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x24]
call fcn.00401740
push 0x12a
push dword [eax]
mov byte [ebp - 4], 9
push dword [ebp - 0x20]
call fcn.00426c80
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 0x405c53
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.00403ec0
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push esi
push str._s_s
push eax
call fcn.00403ec0
add esp, 0x20
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x405ca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x10]
push eax
call fcn.00426c80
add esp, 0xc
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x405cbd
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 0x405cd8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x405b65
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 0x405d00
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 0x405d17
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 0x405d2f
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.00403310
push 0x80004005
call fcn.00403310
int3