Function at 0x42c940
Capabilities:
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6d48
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4db06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 8]
add eax, 0x70
mov esi, eax
mov dword [ebp - 0x18], eax
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42c990
sub esi, ecx
xor edi, edi
sar esi, 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], edi
lea eax, [esi + 0x414]
test eax, eax
je 0x42c9d8
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487989
mov edx, dword [ebp - 0x14]
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
xor eax, eax
mov word [edi], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x1c], 4
jne 0x42ca2c
mov eax, dword [eax + 0x20]
test eax, eax
je 0x42ca2c
mov dword [ebp - 0x24], 0xffffffff
mov ecx, edi
cmp eax, 3
jne 0x42ca0c
mov edx, str.Verify_src_dst_read_error
call fcn.0041c060
jmp 0x42caa7
cmp eax, 1
jne 0x42ca20
mov edx, str.Verify_src_read_error
call fcn.0041c060
jmp 0x42caa7
mov edx, str.Verify_dst_read_error
call fcn.0041c060
jmp 0x42caa7
mov ecx, dword [edx + 0x10bc]
cmp ecx, 5
jne 0x42ca3c
lea eax, [ecx + 0xb]
jmp 0x42ca88
cmp ecx, 1
jne 0x42ca46
lea eax, [ecx + 0x13]
jmp 0x42ca88
cmp ecx, 3
jne 0x42ca50
lea eax, [ecx + 0x1d]
jmp 0x42ca88
cmp ecx, 6
jne 0x42ca5a
lea eax, [ecx + 0x3a]
jmp 0x42ca88
cmp ecx, 4
jne 0x42ca64
lea eax, [ecx + 4]
jmp 0x42ca88
cmp ecx, 7
jne 0x42ca6e
lea eax, [ecx + 0x19]
jmp 0x42ca88
cmp ecx, 8
jne 0x42ca78
lea eax, [ecx + 0x38]
jmp 0x42ca88
xor eax, eax
mov dword [ebp - 0x20], 0x10
cmp ecx, 2
cmove eax, dword [ebp - 0x20]
push eax
lea eax, [edx + 0x10d4]
mov dword [ebp - 0x24], 0xffffffff
mov edx, dword [ebx + 8]
mov ecx, edi
push eax
lea edx, [edx + 0x28]
call fcn.00419200
add esp, 8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x6a8]
test eax, 0x4000
je 0x42cae0
mov esi, dword [ebx + 8]
test edi, edi
mov eax, dword [edx + 0x85c]
mov ecx, 0x4c1430
cmovne ecx, edi
add esi, 0x70
push 2
lea eax, [esi + eax*2]
push eax
push ecx
mov ecx, edx
call fcn.0041a620
jmp 0x42ce28
test eax, 0x2000
je 0x42cc33
mov eax, dword [ebx + 8]
test dword [eax + 0x18], 0x400
je 0x42cb0e
mov eax, dword [edx + 0x6a0]
and eax, 0x4000
or eax, 0
jne 0x42cb0e
mov ecx, 0x200000
jmp 0x42cb10
xor ecx, ecx
mov eax, dword [edx + 0x898]
mov edx, 0x40000000
neg eax
push 0x700
sbb eax, eax
push ecx
and eax, 0x2000000
or eax, ecx
push eax
push 3
push ecx
mov ecx, dword [ebp - 0x18]
push 3
call fcn.0045cff0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x42cbd0
cmp esi, 0xffffffff
je 0x42cbc0
mov eax, dword [ebp - 0x14]
add eax, 0x18
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL30.dll_SetFileTime]
test eax, eax
je 0x42cbc0
test edi, edi
mov ecx, 0x4c1430
cmovne ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cb70
sub ecx, edx
mov edx, str.and_the_timestamp_was_changed_to_1980_01_01
sar ecx, 1
lea ecx, [edi + ecx*2]
call fcn.0041c060
mov edx, dword [ebp - 0x14]
test edi, edi
mov ecx, 0x4c1430
cmovne ecx, edi
push 2
mov eax, dword [edx + 0x85c]
mov edx, dword [ebx + 8]
add edx, 0x70
lea eax, [edx + eax*2]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041a620
push esi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
jmp 0x42ce28
test esi, esi
je 0x42cbd0
cmp esi, 0xffffffff
je 0x42cbd0
push esi
call dword [sym.imp.KERNEL30.dll_CloseHandle]
mov esi, 0x4c1430
test edi, edi
mov ecx, esi
cmovne ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cbe0
sub ecx, edx
mov dword [ebp - 0x24], 0xffffffff
sar ecx, 1
mov edx, str.and_it_was_tried_to_change_the_timstamp__but_it_was_failed._r_n_So_try_to_rename...
lea ecx, [edi + ecx*2]
call fcn.0041c060
mov edx, dword [ebp - 0x14]
mov ecx, esi
mov esi, dword [ebx + 8]
test edi, edi
push 0
cmovne ecx, edi
add esi, 0x70
mov eax, dword [edx + 0x85c]
lea eax, [esi + eax*2]
push eax
push ecx
mov ecx, edx
call fcn.0041a620
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
mov eax, dword [edx + 0x6a8]
test eax, 0x1000
je 0x42cd00
mov edx, dword [edx + 0x7a0]
mov ecx, dword [ebp - 0x18]
or edx, 0x100
call fcn.0045cf00
test eax, eax
je 0x42cca6
mov esi, 0x4c1430
test edi, edi
mov ecx, esi
cmovne ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cc65
sub ecx, edx
mov edx, str.and_it_was_deleted
sar ecx, 1
lea ecx, [edi + ecx*2]
call fcn.0041c060
mov ecx, dword [ebp - 0x14]
test edi, edi
mov edx, dword [ebx + 8]
cmovne esi, edi
add edx, 0x70
push 2
mov eax, dword [ecx + 0x85c]
lea eax, [edx + eax*2]
push eax
push esi
call fcn.0041a620
jmp 0x42ce28
test edi, edi
mov ecx, 0x4c1430
cmovne ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ccb3
sub ecx, edx
mov dword [ebp - 0x24], 0xffffffff
sar ecx, 1
mov edx, str.and_it_was_tried_to_delete__but_it_was_failed._r_n_So_try_to_rename...
lea ecx, [edi + ecx*2]
call fcn.0041c060
mov edx, dword [ebp - 0x14]
test edi, edi
mov esi, dword [ebx + 8]
mov ecx, 0x4c1430
cmovne ecx, edi
add esi, 0x70
push 0
mov eax, dword [edx + 0x85c]
lea eax, [esi + eax*2]
push eax
push ecx
mov ecx, edx
call fcn.0041a620
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x14]
xor eax, eax
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x42cd30
lea eax, [ecx + 1]
mov edx, 2
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00487989
add esp, 4
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x18]
mov edx, eax
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x42cd40
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
movups xmm0, xmmword [str..fc_verify_err]
push 1
movups xmmword [ecx + esi*2], xmm0
movq xmm0, qword [0x4c3dfc]
movq qword [ecx + esi*2 + 0x10], xmm0
mov eax, dword [0x4c3e04]
mov dword [ecx + esi*2 + 0x18], eax
mov ax, word [0x4c3e08]
mov word [ecx + esi*2 + 0x1c], ax
mov esi, 0x4c1430
mov eax, esi
cmovne eax, ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL30.dll_MoveFileExW]
mov dword [ebp - 0x20], eax
mov ecx, esi
test eax, eax
je 0x42cdc4
test edi, edi
cmovne ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cdb0
sub ecx, edx
mov edx, str.in_and_it_was_renamed__.fc_verify_err_
jmp 0x42cde2
test edi, edi
cmovne ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42cdd0
sub ecx, edx
mov edx, str.and_it_was_tried_to_rename__but_it_was_failed
sar ecx, 1
lea ecx, [edi + ecx*2]
call fcn.0041c060
mov edx, dword [ebx + 8]
test edi, edi
mov eax, 2
cmovne esi, edi
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
cmovne eax, ecx
mov ecx, dword [ebp - 0x14]
push eax
add edx, 0x70
mov eax, dword [ecx + 0x85c]
lea eax, [edx + eax*2]
push eax
push esi
call fcn.0041a620
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42ce28
push eax
call fcn.00487954
add esp, 4
test edi, edi
je 0x42ce35
push edi
call fcn.00487954
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4