Function at 0x140012b60
Capabilities:
Delete file

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
cmp dword [0x140023658], 4
jne 0x140012d95
mov eax, dword [0x140020b5c]
mov dword [rsp + 0x20], eax
lea r9, str.C:TMPS7FILE
lea r8, [0x1400210a0]
mov edx, 0x100
lea rcx, [0x140024970]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
lea r8, [0x1400210ac]
lea rdx, [0x140024970]
lea rcx, [0x1400242e0]
call qword [sym.imp.MSVCR90.dll_fopen_s]
test eax, eax
je 0x140012bdf
mov dword [0x140025280], 0xffffffff
jmp 0x140012d95
mov r8d, 2
xor edx, edx
mov rcx, qword [0x1400242e0]
call qword [sym.imp.MSVCR90.dll_fseek]
mov rcx, qword [0x1400242e0]
call qword [sym.imp.MSVCR90.dll_ftell]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jl 0x140012d8b
mov eax, dword [0x140020b58]
cmp dword [rsp + 0x48], eax
jle 0x140012d7f
mov rcx, qword [0x1400242e0]
call qword [sym.imp.MSVCR90.dll_fclose]
mov eax, 3
sub eax, dword [0x140020b5c]
mov dword [0x140020b5c], eax
mov eax, dword [0x140020b5c]
mov dword [rsp + 0x20], eax
lea r9, str.C:TMPS7FILE
lea r8, [0x1400210b0]
mov edx, 0x100
lea rcx, [0x140024970]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
lea r8, [0x1400210bc]
lea rdx, [0x140024970]
lea rcx, [0x1400242e0]
call qword [sym.imp.MSVCR90.dll_fopen_s]
test eax, eax
je 0x140012c96
mov dword [0x140025280], 0xffffffff
jmp 0x140012d7d
mov r8d, 2
xor edx, edx
mov rcx, qword [0x1400242e0]
call qword [sym.imp.MSVCR90.dll_fseek]
mov rcx, qword [0x1400242e0]
call qword [sym.imp.MSVCR90.dll_ftell]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jl 0x140012d73
mov eax, dword [0x140020b58]
cmp dword [rsp + 0x48], eax
jle 0x140012d67
mov rcx, qword [0x1400242e0]
call qword [sym.imp.MSVCR90.dll_fclose]
mov eax, 3
sub eax, dword [0x140020b5c]
mov dword [0x140020b5c], eax
mov eax, dword [0x140020b5c]
mov dword [rsp + 0x20], eax
lea r9, str.C:TMPS7FILE
lea r8, [0x1400210c0]
mov edx, 0x100
lea rcx, [0x140024970]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
lea rcx, [0x140024970]
call qword [sym.imp.MSVCR90.dll_remove]
mov dword [rsp + 0x48], eax
lea r8, [0x1400210cc]
lea rdx, [0x140024970]
lea rcx, [0x1400242e0]
call qword [sym.imp.MSVCR90.dll_fopen_s]
test eax, eax
je 0x140012d5b
mov dword [0x140025280], 0xffffffff
jmp 0x140012d65
mov dword [0x140025280], 1
jmp 0x140012d71
mov dword [0x140025280], 1
jmp 0x140012d7d
mov dword [0x140025280], 0xffffffff
jmp 0x140012d89
mov dword [0x140025280], 1
jmp 0x140012d95
mov dword [0x140025280], 0xffffffff
movzx eax, word [rsp + 0xd0]
mov word [rsp + 0x30], ax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0x40
ja 0x140012df8
cmp dword [rsp + 0x88], 0x40
je 0x140012eed
cmp dword [rsp + 0x88], 0x20
ja case.0x140012df6.3
mov eax, dword [rsp + 0x88]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x133d8]
mov eax, dword [rcx + rax*4 + 0x133b8]
add rax, rcx
jmp rax
cmp dword [rsp + 0x88], 0x20000000
ja 0x140012e4e
cmp dword [rsp + 0x88], 0x20000000
je 0x140012f17
cmp dword [rsp + 0x88], 0x80
je 0x140012efb
cmp dword [rsp + 0x88], 0x1000000
je 0x140012f33
cmp dword [rsp + 0x88], 0x10000000
je 0x140012f09
jmp case.0x140012df6.3
cmp dword [rsp + 0x88], 0x40000000
je 0x140012f25
cmp dword [rsp + 0x88], 0xffffffff
je 0x140012e7f
jmp case.0x140012df6.3
lea rax, [0x1400210d0]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210d4]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210d8]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210dc]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210e0]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210e4]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210e8]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210ec]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210f0]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210f4]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210f8]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x1400210fc]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x140021100]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x140021104]
mov qword [rsp + 0x38], rax
jmp 0x140012f4d
lea rax, [0x140021108]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x8c], eax
cmp dword [rsp + 0x8c], 1
je 0x140012f7e
cmp dword [rsp + 0x8c], 2
je 0x140012fac
cmp dword [rsp + 0x8c], 3
je 0x140012fda
jmp 0x140013006
lea rax, [0x14002110c]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140021110]
mov edx, 2
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
jmp 0x140013006
lea rax, [0x140021118]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x14002111c]
mov edx, 2
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
jmp 0x140013006
lea rax, [0x140021124]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [0x140021128]
mov edx, 2
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov rcx, qword [rsp + 0xa0]
add rcx, 2
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
mov r9d, 8
lea r8, [0x140021130]
mov edx, 9
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov rcx, qword [rsp + 0xa0]
add rcx, 0xf
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
mov r9d, 2
lea r8, [0x140021138]
mov edx, 3
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov rcx, qword [rsp + 0xa0]
add rcx, 0xb
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
mov r9d, 3
lea r8, [0x140021140]
mov edx, 4
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x1f
lea r8, [0x140021148]
mov edx, 0xd
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov eax, dword [rsp + 0xb8]
and eax, 0x80
cmp eax, 0x80
je 0x1400130f2
mov eax, dword [rsp + 0xb8]
and eax, 4
cmp eax, 4
jne 0x140013191
cmp dword [rsp + 0xc8], 0
je 0x140013110
cmp dword [rsp + 0xc8], 1
je 0x140013110
cmp dword [rsp + 0xc8], 0xffffffff
jne 0x14001315c
mov rcx, qword [rsp + 0xa0]
add rcx, 0x12
mov r9d, dword [rsp + 0xc8]
lea r8, [0x140021150]
mov edx, 0xd
call qword [sym.imp.MSVCR90.dll_sprintf_s]
movzx r9d, word [rsp + 0x30]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x1f
lea r8, str.___04x
mov edx, 0xd
call qword [sym.imp.MSVCR90.dll_sprintf_s]
jmp 0x14001318f
mov rcx, qword [rsp + 0xa0]
add rcx, 0x12
mov r9d, dword [rsp + 0xc8]
lea r8, str._08x
mov edx, 0xd
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov r11, qword [rsp + 0xa0]
mov byte [r11 + 0x1f], 0
jmp 0x1400131af
mov rcx, qword [rsp + 0xa0]
add rcx, 0x12
lea r8, [0x140021164]
mov edx, 0xd
call qword [sym.imp.MSVCR90.dll_strcpy_s]
cmp dword [0x140023654], 2
jne 0x1400132e7
lea rcx, [rsp + 0x78]
call fcn.140013430
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.140013400
test eax, eax
jne 0x140013225
mov rcx, qword [rsp + 0xa0]
add rcx, 0x2c
lea r9, [rsp + 0x50]
lea r8, [0x140021168]
mov edx, 0xa
call qword [sym.imp.MSVCR90.dll_strftime]
movzx r9d, word [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x34
lea r8, str.__03.3d
mov edx, 5
call qword [sym.imp.MSVCR90.dll_sprintf_s]
jmp 0x140013243
mov rcx, qword [rsp + 0xa0]
add rcx, 0x2c
lea r8, str.00:00:00_000
mov edx, 0xd
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x46
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 5
mov r9d, 5
lea r8, str._0.d
mov edx, 6
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov edx, 0x5c
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.MSVCR90.dll_strrchr]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400132a9
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x40], rax
jmp 0x1400132b7
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xa0]
add rcx, 0x39
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [0x140021190]
mov edx, 0xd
call qword [sym.imp.MSVCR90.dll_sprintf_s]
jmp 0x14001334d
cmp dword [0x140023654], 3
jne 0x14001334d
lea rcx, [0x1400242e8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14001330c
mov qword [0x1400242e8], 0
pxor xmm3, xmm3
cvtsi2sd xmm3, qword [0x1400242e8]
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [0x140024e50]
divsd xmm3, xmm0
mov rcx, qword [rsp + 0xa0]
add rcx, 0x2c
movq r9, xmm3
lea r8, str._027.6f
mov edx, 0x20
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x4c
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, 0x22
lea r8, [0x1400211a0]
mov edx, 0x23
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x6f
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea r8, str._.s
mov edx, 0x101
call qword [sym.imp.MSVCR90.dll_sprintf_s]
add rsp, 0x98
ret