Function at 0x430eec
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 0x430ef5
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 0x431146
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.00430b30
test al, al
je 0x43111c
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSizeEx
test eax, eax
jne 0x430f5d
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x43111c
cmp dword [ebp - 0x1c], 0
jne 0x43100a
cmp dword [ebp - 0x20], 0
jne 0x43100a
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0042f748
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 0x43111c
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 0x43111c
jmp 0x43111c
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x11]
call fcn.00430ed4
xor ebx, ebx
movzx eax, byte [ebp - 0x11]
sub al, 1
jb 0x43102a
je 0x431036
dec al
je 0x431048
jmp 0x431058
lea eax, [ebp - 0x10]
call fcn.0042f51c
mov ebx, eax
jmp 0x431058
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.0042f568
mov ebx, eax
jmp 0x431058
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.0042f62c
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
test bl, bl
jne 0x431075
cmp dword [ebp - 0x1c], 0
jne 0x43106f
cmp dword [ebp - 0x20], 0
jne 0x43111c
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.0042f748
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 0x43111c
cmp bl, 2
jne 0x43111c
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 0x43114d
lea eax, [ebp - 0x58]
mov edx, 0xc
call fcn.00408298
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00408298
pop eax
jmp eax