Function at 0x140036100
Capabilities:
Write file on windows

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x70], rdx
mov r15, rcx
lea rdi, str.P5_n_
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x140036170
test byte [rcx + 0x1c], 4
je 0x140036170
cmp byte [rcx + 0x19], 5
jb 0x140036170
mov edx, 0x1b
lea r8, [0x140009828]
mov rcx, qword [rcx + 0x10]
call fcn.14000ffa8
or rax, 0xffffffffffffffff
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
xor r12d, r12d
mov r14d, r12d
mov qword [rsp + 0xc8], 7
mov qword [rsp + 0xc0], r12
mov word [rsp + 0xb0], r12w
cmp dword [0x1400a3ccc], r12d
jne 0x140036217
call fcn.140038c60
mov r13d, eax
cmp eax, r12d
je 0x14003620d
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x1400361ed
test byte [rcx + 0x1c], 4
je 0x1400361ed
cmp byte [rcx + 0x19], 2
jb 0x1400361ed
lea edx, [r12 + 0x1c]
mov r9d, eax
lea r8, [0x140009828]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
nop
cmp qword [rsp + 0xc8], 8
jb 0x140036205
mov rcx, qword [rsp + 0xb0]
call fcn.14008c058
mov eax, r13d
jmp 0x1400366b9
mov dword [0x1400a3ccc], 1
mov rcx, r15
call fcn.140079db4
mov r13d, eax
cmp eax, r12d
je 0x14003627c
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x14003625c
test byte [rcx + 0x1c], 4
je 0x14003625c
cmp byte [rcx + 0x19], 2
jb 0x14003625c
mov edx, 0x1d
mov dword [rsp + 0x20], eax
mov r9, r15
lea r8, [0x140009828]
mov rcx, qword [rcx + 0x10]
call fcn.140011a18
nop
cmp qword [rsp + 0xc8], 8
jb 0x140036274
mov rcx, qword [rsp + 0xb0]
call fcn.14008c058
mov eax, r13d
jmp 0x1400366b9
lea r8, [rsp + 0x58]
mov rdx, r15
xor ecx, ecx
call fcn.140039518
mov r13d, eax
mov dword [rsp + 0x40], eax
cmp eax, r12d
je 0x1400362df
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x1400362d5
test byte [rcx + 0x1c], 4
je 0x1400362d5
cmp byte [rcx + 0x19], 2
jb 0x140036531
mov edx, 0x1e
mov r9d, eax
lea r8, [0x140009828]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
mov r15, qword [rsp + 0x48]
jmp 0x140036536
mov r15, qword [rsp + 0x48]
jmp 0x140036536
lea r8, [rsp + 0x50]
mov rdx, r15
mov ecx, 1
call fcn.140039518
mov r13d, eax
mov dword [rsp + 0x40], eax
cmp eax, r12d
je 0x140036355
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x14003634b
test byte [rcx + 0x1c], 4
je 0x140036341
cmp byte [rcx + 0x19], 2
jb 0x140036337
mov edx, 0x1f
mov r9d, eax
lea r8, [0x140009828]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
mov r15, qword [rsp + 0x48]
jmp 0x140036536
mov r15, qword [rsp + 0x48]
jmp 0x140036536
mov r15, qword [rsp + 0x48]
jmp 0x140036536
mov r15, qword [rsp + 0x48]
jmp 0x140036536
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
lea rax, [0x14000a5a0]
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, [0x140009d80]
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call fcn.1400118ac
mov r13d, eax
cmp eax, r12d
jge 0x1400363ee
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x1400363cf
test byte [rcx + 0x1c], 4
je 0x1400363cf
cmp byte [rcx + 0x19], 2
jb 0x1400363cf
mov edx, 0x20
mov r9d, eax
lea r8, [0x140009828]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
mov ecx, r13d
and ecx, 0x1fff0000
movzx eax, r13w
mov r14d, r13d
cmp ecx, 0x70000
cmove r14d, eax
jmp 0x140036636
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0xd0]
call fcn.140079cec
mov r15, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x14003647a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x1400365e5
test byte [rcx + 0x1c], 4
je 0x1400365e5
cmp byte [rcx + 0x19], 2
jb 0x1400365e5
lea edx, [r15 + 0x22]
mov r9d, eax
lea r8, [0x140009828]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
jmp 0x1400365e5
lea rcx, [rsp + 0xa8]
call fcn.140035e34
nop
lea rdx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 8
cmovae rdx, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0xc0]
add r8d, r8d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x78]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r12d
jne 0x1400365e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rdi
je 0x1400365e5
test byte [rcx + 0x1c], 4
je 0x1400365e5
cmp byte [rcx + 0x19], 2
jb 0x1400365e5
mov edx, 0x23
mov r9d, eax
lea r8, [0x140009828]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
jmp 0x1400365e5
mov r15, qword [rsp + 0x48]
cmp r13d, r12d
je 0x1400365e5
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140036592
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, r12d
jne 0x140036592
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x140036592
test byte [rax + 0x1c], 4
je 0x140036592
cmp byte [rax + 0x19], 2
jb 0x140036592
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x24
lea r8, [0x140009828]
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x1400365e5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, r12d
jne 0x1400365e5
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x1400365e5
test byte [rax + 0x1c], 4
je 0x1400365e5
cmp byte [rax + 0x19], 2
jb 0x1400365e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x25
lea r8, [0x140009828]
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
cmp r15, 0xffffffffffffffff
je 0x140036636
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, r12d
jne 0x140036636
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x140036636
test byte [rax + 0x1c], 4
je 0x140036636
cmp byte [rax + 0x19], 2
jb 0x140036636
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0x26
lea r8, [0x140009828]
mov rcx, qword [str.P5_n_]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
cmp r14d, r12d
je 0x14003669d
mov dword [rsp + 0x7c], r14d
mov word [rsp + 0x80], r12w
mov r9d, r14d
lea r8, [0x140009d68]
mov edx, 0xc
lea rcx, [rsp + 0x80]
call fcn.1400118ac
lea r8, [rsp + 0x80]
cmp eax, r12d
cmovl r8, r12
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
mov edx, 2
lea ecx, [rdx - 1]
mov r9d, 0x80007d4d
mov r8d, edx
call fcn.140077054
nop
cmp qword [rsp + 0xc8], 8
jb 0x1400366b5
mov rcx, qword [rsp + 0xb0]
call fcn.14008c058
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
ret