Function at 0x140005fc0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x288]
sub rsp, 0x370
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140079258]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rsi, rcx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1400094f0
mov qword [rsp + 0x50], rax
mov dword [rbp - 0x50], 0x94
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rdx, [rsp + 0x50]
mov rcx, rsi
cmp dword [rbp - 0x40], 2
jne 0x140006041
call fcn.140007040
jmp 0x140006046
call fcn.140006e40
xor eax, eax
movzx edx, al
lea rcx, [rsp + 0x50]
call fcn.140005b90
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdx]
mov rax, rcx
cmp rcx, rdx
je 0x14000607e
lea r8, [fcn.1400069b0]
nop dword [rax]
cmp qword [rax + 0x10], r8
ja 0x14000607e
mov rax, qword [rax]
cmp rax, rdx
jne 0x140006070
mov rbx, r14
cmp rax, rdx
je 0x140006093
cmp rax, rcx
je 0x140006093
mov rax, qword [rax + 8]
mov rbx, qword [rax + 0x10]
call fcn.140009f40
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r14
mov word [rsp + 0x70], r14w
or rdi, 0xffffffffffffffff
cmp word [rax], 0
jne 0x1400060b9
mov r8, r14
jmp 0x1400060cb
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400060c0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140004610
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x50]
call fcn.140038e90
mov r8d, 0x104
lea rdx, [rbp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400061bd
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
cmp word [rbp + 0x50], 0
jne 0x140006122
mov r8, r14
jmp 0x14000613b
lea rax, [rbp + 0x50]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140006130
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140004610
nop
lea rbx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rbx, qword [rbp - 0x70]
mov edx, 0x5c
mov r8, rdi
lea rcx, [rbp - 0x70]
call fcn.140004c60
lea rdx, [rbx + rax*2]
cmp word [rdx], 0
jne 0x140006177
mov r8, r14
jmp 0x14000618b
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140006180
lea rcx, [rsp + 0x70]
call fcn.140009c00
mov r8d, 1
lea rdx, [0x140057804]
lea rcx, [rsp + 0x70]
call fcn.140009c00
nop
cmp qword [rbp - 0x58], 8
jb 0x1400061bd
mov rcx, qword [rbp - 0x70]
call fcn.1400376e4
xor ecx, ecx
call fcn.140039c58
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.140039904
mov r8, rax
mov ecx, dword [rax + 0x14]
add ecx, 0x76c
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
mov eax, dword [r8 + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [r8 + 8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov eax, dword [r8 + 0x10]
mov dword [rsp + 0x20], eax
mov r9d, dword [r8 + 0xc]
lea r8, [0x140057808]
mov edx, 0x104
lea rcx, [rbp + 0x50]
call fcn.14000b130
cmp word [rbp + 0x50], 0
jne 0x140006226
mov rdi, r14
jmp 0x14000623a
lea rax, [rbp + 0x50]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140006230
mov r8, rdi
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140009c00
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, str.wbcS
call fcn.140039818
mov qword [rsi], rax
test rax, rax
je 0x1400062b1
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
mov rcx, rax
call fcn.1400395ac
mov r9, qword [rsi]
mov edx, 1
lea r8d, [rdx + 0x35]
lea rcx, str._LOG_OPEN_
call fcn.1400379e4
mov r9, qword [rsi]
mov edx, 1
lea r8d, [rdx + 1]
lea rcx, [0x140056b68]
call fcn.1400379e4
nop
cmp qword [rbp - 0x78], 8
jb 0x1400062c2
mov rcx, qword [rsp + 0x70]
call fcn.1400376e4
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r14
mov word [rsp + 0x70], r14w
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], rax
mov qword [rsp + 0x58], r14
mov rax, qword [rsp + 0x50]
cmp rcx, rax
je 0x14000630c
mov rbx, qword [rcx]
call fcn.1400376e4
mov rcx, rbx
mov rax, qword [rsp + 0x50]
cmp rbx, rax
jne 0x1400062f7
mov rcx, rax
call fcn.1400376e4
mov rax, rsi
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140038d80
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret