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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x431219
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 0x4314ab
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.004310a0
test al, al
je 0x431481
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSizeEx
test eax, eax
jne 0x431280
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x431481
cmp dword [ebp - 0x1c], 0
jne 0x431336
cmp dword [ebp - 0x20], 0
jne 0x431336
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
push 0
push 1
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov dl, 0xff
mov eax, dword [ebp - 4]
call fcn.00420d8c
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00421434
mov eax, dword [ebp - 0x38]
call fcn.00408ca0
push eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00421434
mov eax, dword [ebp - 0x40]
call fcn.00408ca0
push eax
call sub.kernel32.dll_MoveFileW
test eax, eax
je 0x431481
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00421434
mov eax, dword [ebp - 0x48]
call fcn.00408ca0
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x431481
jmp 0x431481
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x11]
push eax
mov eax, dword [0x444a18]
push eax
mov eax, dword [0x444884]
push eax
mov eax, dword [0x444884]
push eax
push 0
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push 2
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0042fe54
xor ebx, ebx
movzx eax, byte [ebp - 0x11]
sub al, 1
jb 0x43137d
je 0x431389
dec al
je 0x43139b
jmp 0x4313b4
lea eax, [ebp - 0x10]
call fcn.0042fc44
mov ebx, eax
jmp 0x4313b4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.0042fc90
mov ebx, eax
jmp 0x4313b4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x34]
call fcn.0042fd54
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
test bl, bl
jne 0x4313d1
cmp dword [ebp - 0x1c], 0
jne 0x4313cb
cmp dword [ebp - 0x20], 0
jne 0x431481
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
push 0
push 1
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov dl, 0xff
mov eax, dword [ebp - 4]
call fcn.00420d8c
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.00421434
mov eax, dword [ebp - 0x50]
call fcn.00408ca0
push eax
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00421434
mov eax, dword [ebp - 0x58]
call fcn.00408ca0
push eax
call sub.kernel32.dll_MoveFileW
test eax, eax
je 0x431481
cmp bl, 2
jne 0x431481
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00421434
mov eax, dword [ebp - 0x60]
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 0x4314b2
lea eax, [ebp - 0x64]
mov edx, 0xc
call fcn.00408298
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00408298
pop eax
jmp eax