Function at 0x1400036d0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rbx
push r12
push r14
lea rbp, [r11 - 0x5f]
sub rsp, 0xe8
mov rax, qword [0x140079258]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rbx, rdx
mov r12, rcx
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x38], r15
mov edx, 0x25
mov rcx, rbx
mov r15, r8
call fcn.140038248
or r14, 0xffffffffffffffff
mov rsi, rax
test rax, rax
je 0x140003cf4
mov qword [rsp + 0xd8], r13
lea r13, [0x140002000]
mov qword [rsp + 0xe0], rdi
cmp byte [rsi], 0
je 0x140003ce4
mov r8, rsi
sub r8, rbx
je 0x14000375e
mov r9, qword [r12]
test r9, r9
je 0x14000375e
mov edx, 1
mov rcx, rbx
call fcn.1400379e4
movzx edx, byte [rsi + 1]
inc rsi
lea eax, [rdx - 0x49]
cmp eax, 0x2f
ja case.0x140003787.82
cdqe
movzx eax, byte [r13 + rax + 0x1d7c]
mov ecx, dword [r13 + rax*4 + 0x1d54]
add rcx, r13
jmp rcx
mov r9, qword [r12]
movzx eax, byte [r15]
add r15, 8
mov byte [rbp - 0x69], al
test r9, r9
je case.0x140003787.82
mov edx, 1
lea rcx, [rbp - 0x69]
mov r8d, edx
jmp 0x140003cc1
mov ecx, dword [r15]
add r15, 8
lea rdx, [rbp - 0x29]
mov r8d, 0xa
call fcn.140037b64
lea rax, [rbp - 0x29]
mov r8, r14
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400037d0
jmp 0x140003caa
movzx eax, byte [rsi + 1]
cmp al, 0x64
je 0x1400038b5
cmp al, 0x73
je 0x14000382f
cmp al, 0x75
jne case.0x140003787.82
movzx ecx, word [r15]
add r15, 8
lea rdx, [rbp - 0x29]
mov r8d, 0xa
inc rsi
call fcn.140037be0
lea rax, [rbp - 0x29]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003820
jmp 0x140003caa
mov rcx, qword [r15]
add r15, 8
inc rsi
mov r8, r14
test rcx, rcx
jne 0x140003890
mov eax, dword [str.null]
mov dword [rbp - 0x39], eax
movzx eax, word [0x140056b8c]
mov word [rbp - 0x35], ax
movzx eax, byte [0x140056b8e]
mov byte [rbp - 0x33], al
lea rax, [rbp - 0x39]
inc r8
cmp byte [rax + r8], 0
jne 0x140003863
test r8, r8
je case.0x140003787.82
mov r9, qword [r12]
test r9, r9
je case.0x140003787.82
lea rcx, [rbp - 0x39]
jmp 0x140003cbc
inc r8
cmp byte [rcx + r8], 0
jne 0x140003890
test r8, r8
je case.0x140003787.82
mov r9, qword [r12]
test r9, r9
je case.0x140003787.82
jmp 0x140003cbc
movsx ecx, word [r15]
add r15, 8
lea rdx, [rbp - 0x29]
mov r8d, 0xa
inc rsi
call fcn.140037b64
lea rax, [rbp - 0x29]
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x1400038d6
jmp 0x140003caa
mov ecx, dword [r15]
add r15, 8
lea rdx, [rbp - 0x29]
mov r8d, 0xa
call fcn.140037be0
lea rax, [rbp - 0x29]
mov r8, r14
inc r8
cmp byte [rax + r8], 0
jne 0x140003902
jmp 0x140003caa
mov ecx, dword [r15]
add r15, 8
lea rdx, [rbp - 0x29]
mov r8d, 0x10
call fcn.140037b64
lea rax, [rbp - 0x29]
mov r8, r14
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140003930
jmp 0x140003caa
mov edi, dword [r15]
lea rax, [rbp - 0x61]
mov qword [rsp + 0x30], 0
add r15, 8
mov r9d, 0x400
xor edx, edx
mov r8d, edi
mov ecx, 0x1300
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x140003a35
mov r9, qword [r12]
test r9, r9
je 0x14000399b
mov edx, 1
lea rcx, [0x140056b90]
mov r8d, edx
call fcn.1400379e4
mov rax, qword [rbp - 0x61]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400039a2
test rbx, rbx
je 0x1400039f0
mov rax, qword [rbp - 0x61]
movzx ecx, byte [rbx + rax - 1]
call fcn.1400384a4
test eax, eax
je 0x1400039d1
dec rbx
mov rax, qword [rbp - 0x61]
mov byte [rbx + rax], 0
jne 0x1400039b0
jmp 0x1400039f0
test rbx, rbx
je 0x1400039f0
mov r9, qword [r12]
test r9, r9
je 0x140003a2b
mov rcx, qword [rbp - 0x61]
mov r8, rbx
mov edx, 1
call fcn.1400379e4
mov r9, qword [r12]
test r9, r9
je 0x140003a2b
mov edx, 1
lea rcx, [0x140056b90]
mov r8d, edx
call fcn.1400379e4
mov r9, qword [r12]
test r9, r9
je 0x140003a2b
mov edx, 1
lea rcx, [0x140056b94]
lea r8d, [rdx + 2]
call fcn.1400379e4
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [rbp - 0x26]
mov r8d, 0x10
mov ecx, edi
mov word [rbp - 0x29], 0x305b
mov byte [rbp - 0x27], 0x78
call fcn.140037be0
lea rcx, [rbp - 0x26]
mov rax, r14
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140003a60
mov word [rbp + rax - 0x26], 0x5d
mov r8, r14
lea rax, [rbp - 0x29]
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003a80
jmp 0x140003caa
mov rcx, qword [r15]
add r15, 8
mov r8, r14
test rcx, rcx
jne 0x140003af0
mov eax, dword [str.null]
mov dword [rbp - 0x31], eax
movzx eax, word [0x140056b8c]
mov word [rbp - 0x2d], ax
movzx eax, byte [0x140056b8e]
mov byte [rbp - 0x2b], al
lea rax, [rbp - 0x31]
inc r8
cmp byte [rax + r8], 0
jne 0x140003ac0
test r8, r8
je case.0x140003787.82
mov r9, qword [r12]
test r9, r9
je case.0x140003787.82
lea rcx, [rbp - 0x31]
jmp 0x140003cbc
inc r8
cmp byte [rcx + r8], 0
jne 0x140003af0
jmp 0x14000389a
cmp byte [rsi + 1], 0x73
lea rax, [rsi + 1]
je 0x140003b14
cmp dl, 0x53
jne case.0x140003787.82
jmp 0x140003b1b
cmp dl, 0x53
cmovne rsi, rax
mov rdi, qword [r15]
add r15, 8
test rdi, rdi
jne 0x140003b79
mov eax, dword [str.null]
mov r8, r14
mov dword [rbp - 0x41], eax
movzx eax, word [0x140056b8c]
mov word [rbp - 0x3d], ax
movzx eax, byte [0x140056b8e]
mov byte [rbp - 0x3b], al
lea rax, [rbp - 0x41]
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003b50
test r8, r8
je case.0x140003787.82
mov r9, qword [r12]
test r9, r9
je case.0x140003787.82
lea rcx, [rbp - 0x41]
jmp 0x140003cbc
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r9d, r14d
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je case.0x140003787.82
lea rcx, [rbp - 0x59]
movsxd rdx, eax
call fcn.1400035a0
mov eax, dword [rbp - 0x51]
mov rbx, qword [rbp - 0x59]
xor ecx, ecx
sub eax, ebx
mov r9d, r14d
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140003c0d
dec eax
movsxd r8, eax
je 0x140003c0d
mov r9, qword [r12]
test r9, r9
je 0x140003c0d
mov edx, 1
mov rcx, rbx
call fcn.1400379e4
test rbx, rbx
je case.0x140003787.82
mov rcx, rbx
call fcn.1400376e4
jmp case.0x140003787.82
lea rdx, str.I64d
mov r8d, 4
mov rcx, rsi
call fcn.1400382f0
test eax, eax
sete bl
test bl, bl
jne 0x140003c5a
lea rdx, str.I64u
mov r8d, 4
mov rcx, rsi
call fcn.1400382f0
test eax, eax
jne case.0x140003787.82
mov rcx, qword [r15]
add r15, 8
add rsi, 3
mov r8d, 0xa
lea rdx, [rbp - 0x29]
test bl, bl
je 0x140003c8c
call fcn.140037b38
lea rax, [rbp - 0x29]
mov r8, r14
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140003c80
jmp 0x140003caa
call fcn.140037b90
lea rax, [rbp - 0x29]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140003ca0
test r8, r8
je case.0x140003787.82
mov r9, qword [r12]
test r9, r9
je case.0x140003787.82
lea rcx, [rbp - 0x29]
mov edx, 1
call fcn.1400379e4
lea rcx, [rsi + 1]
mov edx, 0x25
lea rbx, [rsi + 1]
call fcn.140038248
mov rsi, rax
test rax, rax
jne 0x140003737
mov rdi, qword [rsp + 0xe0]
mov r13, qword [rsp + 0xd8]
mov r15, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0x128]
test rbx, rbx
je 0x140003d38
cmp byte [rbx], 0
je 0x140003d38
nop
inc r14
cmp byte [rbx + r14], 0
jne 0x140003d10
test r14, r14
je 0x140003d38
mov r9, qword [r12]
test r9, r9
je 0x140003d38
mov r8, r14
mov edx, 1
mov rcx, rbx
call fcn.1400379e4
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140038d80
add rsp, 0xe8
pop r14
pop r12
pop rbx
pop rbp
ret