Function at 0x1400129f0
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1401fa010]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r9, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov r8d, 0xf
mov qword [rsp + 0x48], r8
mov byte [rsp + 0x30], 0
and edx, 0xfff0
cmp edx, 0xf000
ja 0x140012aa8
je 0x140012a74
cmp edx, 1
jne case.0x140012cca.61745
mov qword [rsp + 0x40], 0xc
movsd xmm0, qword [str.SCF_ISSECURE]
mov eax, dword [0x14018c9e0]
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x3c], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], 7
mov eax, dword [str.SC_SIZE]
mov dword [rsp + 0x30], eax
movzx eax, word [0x14018ca84]
mov word [rsp + 0x34], ax
movzx eax, byte [0x14018ca86]
mov byte [rsp + 0x36], al
mov byte [rsp + 0x37], 0
jmp case.0x140012cca.61745
cmp edx, 0xf120
ja 0x140012ca0
je 0x140012c79
add edx, 0xffff0ff0
cmp edx, 0xf0
ja case.0x140012cca.61745
mov eax, edx
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x12ee8]
mov ecx, dword [rdx + rax*4 + 0x12ebc]
add rcx, rdx
jmp rcx
mov qword [rsp + 0x40], 8
movabs rax, 0x45534f4c435f4353
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], 0
jmp case.0x140012cca.61745
mov qword [rsp + 0x40], 0xa
movsd xmm0, qword [str.SC_HSCROLL]
movzx eax, word [0x14018c9d0]
mov word [rsp + 0x38], ax
mov byte [rsp + 0x3a], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], 0xa
movsd xmm0, qword [str.SC_KEYMENU]
movzx eax, word [0x14018c9f0]
mov word [rsp + 0x38], ax
mov byte [rsp + 0x3a], 0
jmp 0x140012dd9
movsd xmm0, qword [str.SC_MAXIMIZE]
movzx eax, word [0x14018ca00]
mov word [rsp + 0x38], ax
movzx eax, byte [0x14018ca02]
jmp 0x140012dc7
movsd xmm0, qword [str.SC_MINIMIZE]
movzx eax, word [0x14018ca10]
mov word [rsp + 0x38], ax
movzx eax, byte [0x14018ca12]
jmp 0x140012dc7
mov qword [rsp + 0x40], 0xc
movsd xmm0, qword [str.SC_MOUSEMENU]
mov eax, dword [0x14018ca30]
mov dword [rsp + 0x38], eax
mov byte [rsp + 0x3c], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], 7
mov eax, dword [str.SC_MOVE]
mov dword [rsp + 0x30], eax
movzx eax, word [0x14018ca3c]
mov word [rsp + 0x34], ax
movzx eax, byte [0x14018ca3e]
mov byte [rsp + 0x36], al
mov byte [rsp + 0x37], 0
jmp case.0x140012cca.61745
mov qword [rsp + 0x40], 0xd
movsd xmm0, qword [str.SC_NEXTWINDOW]
mov eax, dword [0x14018ca48]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x14018ca4c]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], 0xd
movsd xmm0, qword [str.SC_PREVWINDOW]
mov eax, dword [0x14018ca58]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x14018ca5c]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], 0xa
movsd xmm0, qword [str.SC_VSCROLL]
movzx eax, word [0x14018caa0]
mov word [rsp + 0x38], ax
mov byte [rsp + 0x3a], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], 0xa
movsd xmm0, qword [str.SC_RESTORE]
movzx eax, word [0x14018ca68]
mov word [rsp + 0x38], ax
mov byte [rsp + 0x3a], 0
jmp 0x140012dd9
add edx, 0xffff0ed0
cmp edx, 0x50
ja case.0x140012cca.61745
mov eax, edx
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x12ff8]
mov ecx, dword [rdx + rax*4 + 0x12fdc]
add rcx, rdx
jmp rcx
mov qword [rsp + 0x40], 0xe
movsd xmm0, qword [str.SC_CONTEXTHELP]
mov eax, dword [0x14018c9a0]
mov dword [rsp + 0x38], eax
movzx eax, word [0x14018c9a4]
mov word [rsp + 0x3c], ax
mov byte [rsp + 0x3e], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], 0xa
movsd xmm0, qword [str.SC_DEFAULT]
movzx eax, word [0x14018c9b0]
mov word [rsp + 0x38], ax
mov byte [rsp + 0x3a], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], 9
movsd xmm0, qword [str.SC_HOTKEY]
movzx eax, byte [0x14018c9c0]
mov byte [rsp + 0x38], al
mov byte [rsp + 0x39], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], r8
movsd xmm0, qword [str.SC_MONITORPOWER]
mov eax, dword [0x14018ca20]
mov dword [rsp + 0x38], eax
movzx eax, word [0x14018ca24]
mov word [rsp + 0x3c], ax
movzx eax, byte [0x14018ca26]
mov byte [rsp + 0x3e], al
mov byte [rsp + 0x3f], 0
jmp 0x140012dd9
mov qword [rsp + 0x40], 0xd
movsd xmm0, qword [str.SC_SCREENSAVE]
mov eax, dword [0x14018ca78]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x14018ca7c]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], 0
jmp 0x140012dd9
movsd xmm0, qword [str.SC_TASKLIST]
movzx eax, word [0x14018ca90]
mov word [rsp + 0x38], ax
movzx eax, byte [0x14018ca92]
mov qword [rsp + 0x40], 0xb
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
movsd qword [rsp + 0x30], xmm0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, str._s:SYSTEMCOMMAND:_s_n
mov edx, 0x200
lea rcx, [rsp + 0x60]
call fcn.140008c10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x50], 0
cmp rax, 0xffffffffffffffff
je 0x140012e61
lea rcx, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rcx + r8], 0
jne 0x140012e30
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140012e61
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140012ea1
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012e9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012e9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401841b0
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140183d70
add rsp, 0x270
pop rbp
ret