Function at 0x4258e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577ae0
mov eax, dword fs:[0]
push eax
sub esp, 8
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 esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], ebx
call fcn.00422540
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x425939
push edi
call fcn.00424bc0
add esp, 4
cmp eax, ebx
je 0x425b0e
jmp 0x425b07
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00424f80
cmp eax, ebx
jne 0x425b07
mov eax, dword [ebp + 8]
push ebx
push eax
call fcn.0053531b
add esp, 8
test eax, eax
jne 0x425b0e
mov edx, dword [0x5fcb00]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcb00
call eax
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [ebp + 0xc]
push str._s_d__x
push edx
call fcn.004237a0
mov ebx, dword [ebp + 0xc]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
push ebx
push eax
call fcn.00535269
add esp, 8
test eax, eax
je 0x425a5e
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 + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004221d0
add esp, 0x18
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax]
push ecx
push edx
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00424f80
mov esi, eax
mov eax, dword [ebp - 0x14]
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 0x425a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x425a51
push 0x592368
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004221d0
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
push 5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x425adf
lea ecx, [ebp + 0xc]
call fcn.00478740
jmp 0x425b0e
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
push ebx
call edi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00424f80
test eax, eax
jne 0x425ae7
push 0x592368
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.004221d0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax]
push ecx
push edx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00424f80
lea ecx, [ebp - 0x14]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00478740
test esi, esi
je 0x425a51
push 0x592368
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004221d0
mov edx, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
push 5
push edx
push eax
call edi
lea ecx, [ebp - 0x14]
call fcn.00478740
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425b07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425b34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10