Function at 0x42e340
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b66d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6319d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0046d4f0
test eax, eax
je 0x42e3e4
push 0
push str.CFileUtils::CopyFileOnReboot_n
push 0x65dfb0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x65deb0], eax
mov eax, 0x65dfb0
mov dword [0x65deb4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42e3a0
mov edi, 0x65deb0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42e3b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x65deb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d4f0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x42e41c
mov edx, dword [esi]
mov eax, dword [edi]
push edx
push eax
push str.csSrcFilePath_s__csDstFilePath_s_n
push 0x65ddb0
call fcn.00599ee3
add esp, 0x10
push 0x65ddb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
xor ebx, ebx
mov dword [ebp + 0xc], ebx
call fcn.004a8620
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42e43b
push 0x80004005
call fcn.00401b60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
push str..TMP
lea ecx, [ebp - 0x10]
push esi
push ecx
mov dword [ebp - 4], ebx
call fcn.004029d0
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00402af0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e48f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0046d4f0
mov ebx, dword [ebp + 8]
test eax, eax
je 0x42e4bf
push ebx
push str.csTempFilePath___s_n
push 0x65dcb0
call fcn.00599ee3
add esp, 0xc
push 0x65dcb0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
mov eax, dword [edi]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x42e4e6
mov esi, dword [esi]
push 5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x42e4e6
mov dword [ebp + 0xc], 1
call fcn.0046d4f0
test eax, eax
je 0x42e566
mov ecx, dword [ebp + 0xc]
push ecx
push str.CFileUtils::CopyFileOnReboot_:_bRetVal___d_n
push 0x65dbb0
call fcn.00599ee3
mov eax, dword [0x5ccefc]
mov edx, dword [str.EXIT:]
mov dword [0x65dab4], eax
mov eax, 0x65dbb0
add esp, 0xc
mov dword [0x65dab0], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42e522
mov edi, 0x65dab0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x42e533
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x65dab0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e589
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
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