Function at 0x4e2210
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 0x4e2219
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.0040b4a8
lea eax, [ebp - 8]
call fcn.0040b4a8
xor eax, eax
push ebp
push 0x4e24ab
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.004e20a0
test al, al
je 0x4e2481
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSizeEx
test eax, eax
jne 0x4e2280
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4e2481
cmp dword [ebp - 0x1c], 0
jne 0x4e2336
cmp dword [ebp - 0x20], 0
jne 0x4e2336
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.00431858
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040c078
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00431fc8
mov eax, dword [ebp - 0x38]
call fcn.0040bff0
push eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040c078
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00431fc8
mov eax, dword [ebp - 0x40]
call fcn.0040bff0
push eax
call sub.kernel32.dll_MoveFileW
test eax, eax
je 0x4e2481
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040c078
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00431fc8
mov eax, dword [ebp - 0x48]
call fcn.0040bff0
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
je 0x4e2481
jmp 0x4e2481
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x11]
push eax
mov eax, dword [0x4f8fc0]
push eax
mov eax, dword [0x4f8ce0]
push eax
mov eax, dword [0x4f8ce0]
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.004e0e54
xor ebx, ebx
movzx eax, byte [ebp - 0x11]
sub al, 1
jb 0x4e237d
je 0x4e2389
dec al
je 0x4e239b
jmp 0x4e23b4
lea eax, [ebp - 0x10]
call fcn.004e0c44
mov ebx, eax
jmp 0x4e23b4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.004e0c90
mov ebx, eax
jmp 0x4e23b4
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.004e0d54
mov ebx, eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
test bl, bl
jne 0x4e23d1
cmp dword [ebp - 0x1c], 0
jne 0x4e23cb
cmp dword [ebp - 0x20], 0
jne 0x4e2481
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.00431858
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040c078
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.00431fc8
mov eax, dword [ebp - 0x50]
call fcn.0040bff0
push eax
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040c078
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00431fc8
mov eax, dword [ebp - 0x58]
call fcn.0040bff0
push eax
call sub.kernel32.dll_MoveFileW
test eax, eax
je 0x4e2481
cmp bl, 2
jne 0x4e2481
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040c078
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00431fc8
mov eax, dword [ebp - 0x60]
call fcn.0040bff0
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 0x4e24b2
lea eax, [ebp - 0x64]
mov edx, 0xc
call fcn.0040b464
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b464
pop eax
jmp eax