Function at 0x42e3b0
Capabilities:
Check if file exists
Get file attributes
Get number of processors
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d678
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x18
push edi
mov edi, ecx
lea ecx, [edi + 0x30]
mov dword [eax], 0
call fcn.00434920
test eax, eax
jne 0x42e3f8
mov eax, 1
pop edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push ebx
push ebp
push esi
call fcn.004178f0
mov esi, eax
call fcn.004154a0
mov ebp, eax
mov eax, dword [0x4800d8]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + 0x38], 1
call fcn.0040bb30
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00404b00
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4708a4
push 0x4708a4
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403ab0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x42e471
mov eax, dword [ebp + 0x140]
test eax, eax
je 0x42e49d
mov eax, dword [edi + 0x4c]
add eax, 4
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403ab0
push 0x4708a4
push 0x4708a4
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403ab0
mov ecx, dword [edi + 8]
mov eax, dword [ecx - 8]
test eax, eax
je 0x42e4d8
mov eax, ecx
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00403ab0
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00404b00
push 0x4708a4
push 0x4708a4
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403ab0
mov eax, dword [edi + 4]
lea ebp, [edi + 4]
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403ab0
mov ecx, dword [0x4800d8]
mov dword [esp + 0x18], ecx
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.00404cd0
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.00404b00
push ebp
push 0x4708a4
lea edx, [esp + 0x24]
push edx
call fcn.0040ab30
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.00403ab0
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x30], 2
je 0x42e569
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42e569
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
push 0x104
lea ecx, [esp + 0x14]
call fcn.004042d0
test eax, eax
je 0x42e595
mov edx, dword [esp + 0x10]
mov dword [edx - 8], 0x104
mov eax, dword [esp + 0x10]
mov byte [eax + 0x104], 0
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov edx, dword [esi]
push 0
push 0x104
push eax
push ebp
mov ecx, esi
call dword [edx + 0xfc]
lea ecx, [esp + 0x10]
call fcn.00404410
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.Prepare_To_Copy_File_From__s_To__s...
push 0x80
call fcn.004047f0
mov ebx, dword [esp + 0x4c]
add esp, 0x10
push ebx
mov ecx, edi
call fcn.0042dc80
test eax, eax
je 0x42e690
mov eax, dword [0x4800dc]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [ebp - 0xc]
cmp edx, eax
je 0x42e620
add ebp, 0xfffffff4
push ebp
call esi
test eax, eax
jg 0x42e620
push ebp
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42e64b
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42e64b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42e676
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42e676
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov eax, dword [edi + 0x28]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], ebp
jne 0x42e6a9
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [edi + 0xc]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call dword [edx + 0x10]
test eax, eax
jne 0x42e7fe
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push 0x64
push 0xa
push 1
push eax
push ecx
mov ecx, esi
call dword [edx + 0x1c]
test eax, eax
jne 0x42e796
test ebx, ebx
je 0x42e710
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x24]
mov edx, dword [esp + 0x38]
mov dword [edx], 1
jmp 0x42e796
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
call fcn.00405930
push str..bak
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 4
call fcn.00404260
mov ebx, dword [esp + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42e74d
mov edx, dword [esi]
push 0
push 0
push ebx
mov ecx, esi
call dword [edx + 0x20]
mov eax, dword [esp + 0x10]
push ebx
push eax
push str.MoveFile_From__s_To__s
push 0x80
call fcn.004047f0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push 0
push 0
push 1
push eax
push ecx
mov ecx, esi
call dword [edx + 0x1c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 2
call fcn.004309a0
mov eax, dword [edi + 0x14]
cmp eax, 1
jne 0x42e7a2
xor ebp, ebp
jmp 0x42e7c8
cmp eax, 2
jne 0x42e7ae
mov ebp, 1
jmp 0x42e7b8
mov edx, dword [esp + 0x38]
mov ebp, dword [edx]
test ebp, ebp
je 0x42e7c8
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
push 1
call fcn.0040c9c0
mov edx, dword [esp + 0x38]
mov ebx, dword [edx]
xor ecx, ecx
test ebx, ebx
sete cl
push ebp
push ecx
push str.Copy_File_Return:__d__NeedReboot:__d
push 0x80
call fcn.004047f0
mov eax, dword [edi + 0x1c]
add esp, 0x10
test eax, eax
je 0x42e810
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x70]
jmp 0x42e810
push str.Skip_Copying_For_Checked_OK...
push 0x80
call fcn.004047f0
add esp, 8
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.0042d050
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x42e82f
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4800dc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor ebx, ebx
test ebp, ebp
lea edx, [eax - 0xc]
sete bl
cmp edx, ecx
je 0x42e860
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x42e860
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42e88b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x42e88b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42e8b6
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x42e8b6
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
mov dword fs:[0], ecx
add esp, 0x24
ret 8