Function at 0x406440
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a475
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5f31c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 2
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4066a3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
call fcn.0042b4c7
mov ecx, eax
mov byte [ebp - 4], 4
test ecx, ecx
je 0x4066ad
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 0x406649
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 0x406638
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
call fcn.00403fb0
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.00403fb0
add eax, 0x10
add esp, 8
mov dword [ebp - 0x18], eax
push dword [0x5f7bb4]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
push str.PkgDir
call fcn.004095c0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push str.PkgDir
call fcn.004095c0
cmp dword [edi + 0xc], 0
mov esi, dword [ebp - 0x14]
push 0
push esi
je 0x40655f
call fcn.0055f9d8
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40661d
mov ecx, dword [edx]
push edx
jmp 0x406618
call fcn.0055f9d8
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x4065b3
push str.D:_apreltechSibSiblSibInstallerInstall.cpp
lea ecx, [ebp - 0x24]
call fcn.004020a0
push 0x12a
push dword [eax]
mov byte [ebp - 4], 9
push dword [ebp - 0x20]
call fcn.004279c0
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 0x4065b3
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.00404820
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push esi
push str._s_s
push eax
call fcn.00404820
add esp, 0x20
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x406606
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push dword [ebp - 0x10]
push eax
call fcn.004279c0
add esp, 0xc
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40661d
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 0x406638
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x2c]
test edi, edi
jne 0x4064c5
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 0x406660
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 0x406677
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 0x40668f
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.00403c70
push 0x80004005
call fcn.00403c70
int3