Function at 0x12fd6bd0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x13071bb8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
xor edi, edi
mov dword [0x131c97c0], edi
call ebp
mov esi, dword [esp + 0x2c]
mov dword [0x131c97c8], eax
cmp esi, edi
je 0x12fd6e7f
push esi
call fcn.12f5c51d
add esp, 4
test eax, eax
je 0x12fd6e7f
cmp dword [0x131c97cc], edi
jne 0x12fd6c3e
mov dword [0x131c97c0], 2
mov dword [0x131c97c4], 0x26ed
jmp 0x12fd6e93
push esi
lea ecx, [esp + 0x14]
call fcn.12feda20
mov eax, dword [esp + 0x34]
push edi
push edi
cmp eax, edi
push 3
mov dword [esp + 0x30], edi
push edi
je 0x12fd6c5d
push 1
jmp 0x12fd6c5e
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or edi, 0xffffffff
cmp eax, edi
jne 0x12fd6c8e
mov dword [0x131c97c0], 4
mov dword [0x131c97c4], 0x2712
call ebp
mov dword [0x131c97c8], eax
jmp 0x12fd6cea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1307d24c]
mov dword [esp + 0xc], eax
mov ecx, dword [0x131c9d00]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x1311b1c8
push esi
mov byte [esp + 0x34], 1
call fcn.12fee5f0
add esp, 0x10
test eax, eax
jne 0x12fd6cfc
mov dword [0x131c97c0], 0x24
mov dword [0x131c97c4], 0x271b
call ebp
lea ecx, [esp + 0xc]
mov dword [0x131c97c8], eax
mov byte [esp + 0x24], 0
call fcn.12f472f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call fcn.12fedac0
jmp 0x12fd6e9a
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ebx
push 5
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push esi
mov ebx, 1
call fcn.12fd6ec0
add esp, 0x18
test eax, eax
je 0x12fd6e4f
mov ecx, dword [0x1307d24c]
mov dword [esp + 0x30], ecx
mov edx, dword [0x131c9d00]
lea eax, [esp + 0x30]
push edx
push eax
push 0x130e5240
push esi
mov byte [esp + 0x38], 2
call fcn.12fee5f0
add esp, 0x10
test eax, eax
je 0x12fd6e13
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
push ecx
push esi
call edi
test eax, eax
je 0x12fd6de5
mov edx, dword [esp + 0x10]
push 3
push esi
push edx
call edi
test eax, eax
je 0x12fd6d9c
mov eax, dword [esp + 0x30]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x12fd6e00
mov ecx, dword [esp + 0x30]
push ecx
call fcn.12fee410
add esp, 4
jmp 0x12fd6e00
mov dword [0x131c97c0], 0x27
mov dword [0x131c97c4], 0x2745
call ebp
mov edx, dword [esp + 0x30]
push 3
push esi
push edx
mov dword [0x131c97c8], eax
call edi
test eax, eax
jne 0x12fd6e00
mov eax, dword [esp + 0x34]
or ebx, 0xffffffff
test eax, eax
je 0x12fd6e00
mov ecx, dword [esp + 0x30]
push 0x103
push ecx
push eax
call fcn.12f5c57b
add esp, 0xc
jmp 0x12fd6e00
mov dword [0x131c97c0], 0x28
mov dword [0x131c97c4], 0x2753
call ebp
mov dword [0x131c97c8], eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.12f472f0
or edi, 0xffffffff
jmp 0x12fd6e3c
mov dword [0x131c97c0], 0x24
mov dword [0x131c97c4], 0x272f
call ebp
lea ecx, [esp + 0x30]
mov dword [0x131c97c8], eax
mov byte [esp + 0x28], 1
call fcn.12f472f0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x12fd6e4f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.12f472f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], edi
call fcn.12fedac0
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov dword [0x131c97c0], 1
mov dword [0x131c97c4], 0x26e6
call ebp
mov dword [0x131c97c8], eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret