Function at 0x42e120
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6698
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6319d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
call fcn.004022e0
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], edi
call fcn.004a8620
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42e183
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 ebx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0042cf90
test eax, eax
je 0x42e2d7
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x42e2d7
mov dword [ebp - 0x14], 1
mov edi, dword [ebp + 8]
lea esi, [ebx - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x42e215
cmp dword [edi + 0xc], 0
jl 0x42e208
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x42e208
push esi
call fcn.004022e0
mov dword [ebp - 0x18], eax
add esp, 4
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x42e1fd
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x42e215
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [ebp + 8]
call fcn.004026b0
mov ecx, dword [ebp + 8]
push 0x5c
push ecx
call fcn.0059aa24
add esp, 8
test eax, eax
je 0x42e2d7
sub eax, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x42e2d7
push eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp + 8]
call fcn.004024f0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x42e299
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x42e289
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x42e289
push eax
call fcn.004022e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x42e281
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x42e299
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.004026b0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
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 0x42e2bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x42e1bf
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e2fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e31d
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4