Function at 0x4247a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577998
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5fb61c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x5fcb00
mov dword [ebp - 0x14], ebx
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp edx, ebx
jne 0x4247f2
xor eax, eax
jmp 0x424806
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4247f7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x10]
call fcn.00422120
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00422060
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, edi
call fcn.00423500
test eax, eax
jne 0x42495b
push eax
push ebx
call fcn.0053531b
add esp, 8
test eax, eax
jne 0x424aa7
mov eax, dword [0x5fcb00]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcb00
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
lea eax, [ebp + 8]
push str._s_d__x
push eax
call fcn.004237a0
mov esi, dword [ebp + 8]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push ebx
call fcn.00535269
add esp, 8
test eax, eax
je 0x424b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
push 0x5ff5f8
call fcn.00477930
push 0x592368
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004221d0
add esp, 0x18
mov eax, dword [eax]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00423500
mov esi, eax
mov eax, dword [ebp - 0x18]
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 0x4248f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x424ae1
push 0x592368
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004221d0
mov eax, dword [eax]
add esp, 0xc
push 5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42495b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
call fcn.00423bb0
test eax, eax
je 0x424aa0
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
mov byte [ebp - 4], 4
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00424240
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.004222b0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4249d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.00424360
add esp, 4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004222b0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424a15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00423670
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.00423500
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424a5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424a7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
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 0x424aa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x14], 1
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 0x424aca
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
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 0x424aa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x424aa7
push esi
push str.MoveFileEx_Rename_file_succeed__path:_ws
push 0x5ff5f8
call fcn.00477930
add esp, 0xc
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
mov ecx, edi
call fcn.00423500
test eax, eax
jne 0x42493b
push 0x592368
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.004221d0
add esp, 0xc
mov eax, dword [eax]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00423500
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
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 0x424b7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x1c], 0
je 0x424bb1
push 0x592368
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004221d0
mov eax, dword [eax]
add esp, 0xc
push 5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x1c]
call fcn.00478740
jmp 0x42493b
lea ecx, [ebp + 8]
call fcn.00478740
jmp 0x424aa7