Function at 0x430d5c
Capabilities:
Delete file
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x430d65
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004082dc
lea eax, [ebp - 8]
call fcn.004082dc
xor eax, eax
push ebp
push 0x430fb6
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004309a0
test al, al
je 0x430f8c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSizeEx
test eax, eax
jne 0x430dcd
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x430f8c
cmp dword [ebp - 0x1c], 0
jne 0x430e7a
cmp dword [ebp - 0x20], 0
jne 0x430e7a
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0042f670
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004211a4
mov eax, dword [ebp - 0x2c]
call fcn.00408ca0
push eax
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.004211a4
mov eax, dword [ebp - 0x34]
call fcn.00408ca0
push eax
call sub.kernel32.dll_MoveFileW
test eax, eax
je 0x430f8c
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.004211a4
mov eax, dword [ebp - 0x3c]
call fcn.00408ca0
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x430f8c
jmp 0x430f8c
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x11]
call fcn.00430d44
xor ebx, ebx
movzx eax, byte [ebp - 0x11]
sub al, 1
jb 0x430e9a
je 0x430ea6
dec al
je 0x430eb8
jmp 0x430ec8
lea eax, [ebp - 0x10]
call fcn.0042f444
mov ebx, eax
jmp 0x430ec8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.0042f490
mov ebx, eax
jmp 0x430ec8
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.0042f554
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
test bl, bl
jne 0x430ee5
cmp dword [ebp - 0x1c], 0
jne 0x430edf
cmp dword [ebp - 0x20], 0
jne 0x430f8c
mov dword [ebp - 0x28], 1
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFileTime
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0042f670
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.004211a4
mov eax, dword [ebp - 0x44]
call fcn.00408ca0
push eax
lea eax, [ebp - 0x50]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.004211a4
mov eax, dword [ebp - 0x4c]
call fcn.00408ca0
push eax
call sub.kernel32.dll_MoveFileW
test eax, eax
je 0x430f8c
cmp bl, 2
jne 0x430f8c
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.004211a4
mov eax, dword [ebp - 0x54]
call fcn.00408ca0
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430fbd
lea eax, [ebp - 0x58]
mov edx, 0xc
call fcn.00408298
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00408298
pop eax
jmp eax