Function at 0x40dbc0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c582
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x44d37c]
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov edi, dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x24]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 8], edx
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0x1c]
push esi
mov dword [eax + 0xc], ecx
call edx
test eax, eax
jne 0x40dc69
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x2021
jmp 0x40deac
call fcn.0041cefc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dc83
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
lea edi, [esi + 0x144]
mov byte [ebp - 4], 1
test edi, edi
jne 0x40dca4
xor eax, eax
jmp 0x40dcb9
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dcb0
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x38]
call fcn.004015d0
push str..bak
push str..dat
lea ecx, [ebp - 0x38]
call fcn.0040d230
mov ecx, dword [ebp - 0x38]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x60
mov dword [ebp - 4], 1
call fcn.0041cb6e
mov ecx, eax
add esp, 4
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x40dd0b
push 0
call fcn.0041a110
mov edi, eax
jmp 0x40dd0d
xor edi, edi
push str.ITEM
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041aad0
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x28]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x3c]
add esi, 0xfffffff8
push eax
mov ecx, esi
call fcn.0040d530
mov eax, dword [eax]
push eax
push str.keyUUID
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.0041a7f0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.0040d530
mov eax, dword [eax]
push eax
push str.parentKeyUUID
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0041a7f0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ddd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 0x2c]
push ecx
push edx
push str.keyInfo
mov ecx, edi
call fcn.0041ac60
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x34]
push eax
push ecx
push str.vendorData
mov ecx, edi
call fcn.0041ac60
push 2
push str.persistentStorageType
mov ecx, edi
call fcn.0041aa30
push 2
push str.persistentStorageTypeParent
mov ecx, edi
call fcn.0041aa30
mov ecx, esi
call fcn.0040cd00
mov ebx, eax
test ebx, ebx
jne 0x40de61
test edi, edi
je 0x40de37
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x2002
jmp 0x40deac
push edi
mov ecx, ebx
call fcn.004198f0
push ebx
mov ecx, esi
call fcn.0040daa0
or edx, 0xffffffff
test al, al
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 0
jne 0x40de84
add eax, 0xfffffff0
jmp 0x40de44
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40deac
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.00428397
mov esp, ebp
pop ebp
ret 0x34