Function at 0x180135fdb
Capabilities:
Write file on windows

Disassembly:
push rbp
dec rbp
push rbx
bswap bp
push rsi
or rbp, rsi
mov bl, sil
push rdi
push r12
test r12w, 0x3c5b
push r13
push r14
push r15
dec bpl
mov rbp, rsp
test r10b, 0xa9
cmove rsi, rsp
sar r14, 0xf9
sub rsp, 0x78
xor edi, edi
mov r14d, r8d
sub r15b, sil
btc r15w, 0x70
movsxd r15, ecx
mov rbx, r9
xchg si, si
add si, bx
bsr si, r14w
mov rsi, rdx
stc
test r8d, r8d
jmp 0x18013603b
je 0x18013659f
test rdx, rdx
jmp 0x180136049
jne 0x18013609c
mov byte [r9 + 0x38], 1
test bl, ah
sub r8d, r8d
mov dword [r9 + 0x34], edi
sub edx, edx
mov byte [r9 + 0x30], 1
xor ecx, ecx
jmp 0x18013606b
mov dword [r9 + 0x2c], 0x16
cmp sil, 0x7c
cmc
xor r9d, r9d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
jmp 0x18013608a
call fcn.180128004
or eax, 0xffffffff
jmp 0x180136097
jmp 0x1801365a6
mov rax, r15
sal cx, cl
cmp di, cx
lea rcx, [0x180082980]
and eax, 0x3f
btc r13d, ebx
or r13b, 0x92
mov r12, r15
sar r13w, 0x2f
adc r13w, r12w
rol r13w, cl
sar r12, 6
mov qword [rbp - 0x18], r12
lea r13, [rax + rax*8]
mov rcx, qword [rcx + r12*8]
mov al, byte [rcx + r13*8 + 0x39]
mov byte [rbp - 0x48], al
dec al
cmp spl, 0x62
jmp 0x1801360ea
cmp al, 1
jmp 0x1801360f1
ja 0x180136118
mov eax, r14d
cmc
not eax
test bp, 0x51e7
jmp 0x18013610b
test al, 1
jmp 0x180136112
je 0x18013604f
test byte [rcx + r13*8 + 0x38], 0x20
jmp 0x180136123
je 0x180136148
sub edx, edx
mov ecx, r15d
xchg r8b, r8b
jmp 0x18013613a
lea r8d, [rdx + 2]
jmp 0x180136143
call fcn.180090968
mov ecx, r15d
jmp 0x180136150
mov qword [rbp - 0x30], rdi
jmp 0x180136159
call fcn.1801367fb
lea rdx, [0x180082980]
cmc
test eax, eax
jmp 0x18013616d
je 0x180136386
mov rax, qword [rdx + r12*8]
test dil, 0xfb
cmp byte [rax + r13*8 + 0x38], dil
jmp 0x180136185
jge 0x180136386
cmp byte [rbx + 0x28], dil
jmp 0x180136194
jne 0x1801361b5
mov rcx, rbx
jmp 0x1801361a2
call fcn.18012a622
lea rdx, [0x180082980]
add eax, 0x80b4d6c
nop
mov rax, qword [rbx + 0x18]
cmp qword [rax + 0x138], rdi
jmp 0x1801361c5
jne 0x1801361df
mov rax, qword [rdx + r12*8]
cmp byte [rax + r13*8 + 0x39], dil
jmp 0x1801361d9
je 0x180136386
mov rcx, qword [rdx + r12*8]
cqo
lea rdx, [rbp - 0x20]
jmp 0x1801361ee
mov rcx, qword [rcx + r13*8 + 0x28]
jmp 0x1801361f8
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jmp 0x180136205
je 0x18013637c
movsx ecx, byte [rbp - 0x48]
test ah, 0x6d
test ecx, ecx
jmp 0x180136219
je 0x180136335
sub ecx, 1
je 0x180136236
cmp ecx, 1
jmp 0x180136230
jne 0x1801364b5
lea r12, [rsi + r14]
mov qword [rbp - 0x40], rdi
xchg r15d, r15d
shld r15d, r12d, 0xf0
movzx r15d, r14w
mov r15, rsi
clc
cmp esp, eax
jmp 0x180136255
cmp rsi, r12
jmp 0x18013625d
jae 0x180136327
mov r14d, dword [rbp - 0x3c]
movzx ecx, bp
movzx eax, word [r15]
movsx rcx, r14w
movzx ecx, r15w
movsxd rcx, edx
movzx ecx, ax
jmp 0x180136281
mov word [rbp - 0x48], ax
jmp 0x18013628a
call fcn.180136dd3
movzx ecx, word [rbp - 0x48]
cmp r14b, bpl
stc
cmp ax, cx
jmp 0x18013629f
jne 0x18013631e
add r14d, 2
cmp ecx, ebp
mov dword [rbp - 0x3c], r14d
jmp 0x1801362b9
cmp cx, 0xa
jmp 0x1801362c2
jne 0x180136304
mov ecx, 0xd
jmp 0x1801362d2
call fcn.180136dd3
mov ecx, 0xd
cmp bpl, 0xeb
cmc
cmp ax, cx
jmp 0x1801362e9
jne 0x18013631e
inc r14d
jmp 0x1801362f7
mov dword [rbp - 0x3c], r14d
inc edi
cmp rcx, 0x64f2475f
add r15, 2
test bl, 0x45
cmp r15, r12
jmp 0x180136313
jae 0x180136327
jmp 0x18013626a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x40], eax
mov r12, qword [rbp - 0x18]
jmp 0x180136330
jmp 0x18013649d
mov r9d, r14d
movsxd r8, r11d
movsx rcx, r10w
movzx r8w, spl
mov qword [rsp + 0x20], rbx
mov r8, rsi
xchg cx, cx
setl dh
cdq
lea rcx, [rbp - 0x40]
mov edx, r15d
jmp 0x18013635f
call fcn.180134c3f
movsd xmm0, qword [rax]
mov rdi, 0x10bb37bf
mov edi, dword [rax + 8]
jmp 0x180136377
jmp 0x1801364a5
lea rdx, [0x180082980]
cmp dl, 0xa5
mov rcx, qword [rdx + r12*8]
cmp byte [rcx + r13*8 + 0x38], dil
jmp 0x180136394
jge 0x180136445
movsx ecx, byte [rbp - 0x48]
test ecx, ecx
jmp 0x1801363a5
je 0x18013641c
sub ecx, 1
je 0x1801363eb
cmp ecx, 1
jmp 0x1801363bc
jne 0x1801364bc
mov r9d, r14d
xchg dl, dh
movsx rcx, sp
movsxd r8, ebx
lea rcx, [rbp - 0x40]
jmp 0x1801363db
mov r8, rsi
mov edx, r15d
call fcn.1801357e9
jmp 0x180136364
mov r9d, r14d
movzx cx, r12b
movsx edx, si
lea rcx, [rbp - 0x40]
jmp 0x180136402
mov r8, rsi
mov edx, 0x439d076c
mov edx, r15d
jmp 0x180136412
call fcn.180135a47
jmp 0x180136364
mov r9d, r14d
movsx r8d, r13w
cqo
lea rcx, [rbp - 0x40]
cwd
cqo
mov r8, rsi
movsxd rdx, ebp
mov edx, r15d
jmp 0x18013643b
call fcn.1801355ae
jmp 0x180136364
mov rcx, qword [rcx + r13*8 + 0x28]
lea r9, [rbp - 0x3c]
xor eax, eax
rcl dh, 0x9e
bsr r8, rsi
bsf r8, r12
mov r8d, r14d
and qword [rsp + 0x20], rax
bswap dx
cmovg rdx, rdx
mov rdx, rsi
jmp 0x180136472
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], eax
jmp 0x18013647e
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18013649a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x40], eax
shrd rax, rbp, 0xbf
mov edi, dword [rbp - 0x38]
movsd xmm0, qword [rbp - 0x40]
bswap rdx
movsd qword [rbp - 0x30], xmm0
sar ax, 0xee
rcr dx, cl
movzx eax, r9w
lea rdx, [0x180082980]
mov rax, qword [rbp - 0x30]
clc
cmp ebp, 0x1bc0392d
shr rax, 0x20
jmp 0x1801364d1
test eax, eax
jmp 0x1801364d8
jne 0x18013658c
mov eax, dword [rbp - 0x30]
jmp 0x1801364e7
test eax, eax
jmp 0x1801364ee
je 0x18013653d
cmp eax, 5
jmp 0x1801364fc
jne 0x180136528
mov byte [rbx + 0x30], 1
jmp 0x18013650b
mov dword [rbx + 0x2c], 9
jmp 0x180136517
mov byte [rbx + 0x38], 1
jmp 0x180136520
mov dword [rbx + 0x34], eax
jmp 0x18013608f
mov ecx, dword [rbp - 0x30]
cwd
not rdx
mov rdx, rbx
call fcn.18012ba10
jmp 0x18013608f
mov rax, qword [rdx + r12*8]
cmp bx, r15w
stc
test byte [rax + r13*8 + 0x38], 0x40
jmp 0x180136551
je 0x180136565
cmp byte [rsi], 0x1a
jmp 0x18013655f
je 0x18013659f
and dword [rbx + 0x34], 0
jmp 0x18013656e
mov byte [rbx + 0x30], 1
jmp 0x180136577
mov dword [rbx + 0x2c], 0x1c
jmp 0x180136583
mov byte [rbx + 0x38], 1
jmp 0x18013608f
mov eax, dword [rbp - 0x2c]
test r9, r12
cmc
sub eax, edi
jmp 0x18013659a
jmp 0x1801365a6
xor eax, eax
or bp, 0x589
add rsp, 0x78
pop r15
movsx rbp, r10w
bswap ebp
pop r14
movsx di, sil
pop r13
mov dil, 0x1c
cmovle r12w, di
pop r12
movzx si, sil
pop rdi
mov bx, ax
movzx bx, r11b
cmove bx, dx
pop rsi
movsx rbx, r13w
xchg rbx, rbp
pop rbx
jmp 0x1801365e5
pop rbp
ret