Function at 0x14005ed30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov qword [rsp + 0x138], 0xfffffffffffffffe
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x170]
cmp qword [rax + 0x80], 0
je 0x14005ed7f
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x89]
test eax, eax
jne 0x14005ed8b
mov al, 1
jmp 0x14005f129
mov dword [rsp + 0x30], 8
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x170]
call qword [rax + 0x18]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], 0xffffffff
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x7c], eax
jne 0x14005edd1
mov dword [rsp + 0x140], 1
jmp 0x14005eddc
mov dword [rsp + 0x140], 0
movzx eax, byte [rsp + 0x140]
test eax, eax
je 0x14005edef
xor al, al
jmp 0x14005f129
lea rax, [rsp + 0xa4]
mov qword [rsp + 0xa8], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140022710
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.14004b700
nop
lea rcx, [rsp + 0x48]
call fcn.140047010
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x80], rax
xor eax, eax
test eax, eax
jne 0x14005ee43
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0x60], 0x10
jb 0x14005ee7d
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc8], rax
jmp 0x14005ee8a
lea rax, [rsp + 0x48]
mov qword [rsp + 0xc8], rax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x88]
call fcn.140043a40
xor eax, eax
test eax, eax
jne 0x14005eea4
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x170]
add rcx, 0x8c
mov rdx, qword [rsp + 0xd8]
mov rdx, qword [rdx]
mov qword [rsp + 0x148], rdx
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], r8
mov r9, rax
mov r8, qword [rsp + 0xd0]
mov rdx, rcx
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rsp + 0x148]
call qword [rax + 0x30]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0
je 0x14005ef62
cmp dword [rsp + 0x150], 1
je 0x14005ef71
cmp dword [rsp + 0x150], 3
je 0x14005f0d0
jmp 0x14005f0f2
mov rax, qword [rsp + 0x170]
mov byte [rax + 0x89], 0
cmp qword [rsp + 0x60], 0x10
jb 0x14005ef88
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rax
jmp 0x14005ef95
lea rax, [rsp + 0x48]
mov qword [rsp + 0xe0], rax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x90]
call fcn.140043a40
xor eax, eax
test eax, eax
jne 0x14005efaf
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jbe 0x14005f07f
cmp qword [rsp + 0x60], 0x10
jb 0x14005eff0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe8], rax
jmp 0x14005effd
lea rax, [rsp + 0x48]
mov qword [rsp + 0xe8], rax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x98]
call fcn.140043a40
xor eax, eax
test eax, eax
jne 0x14005f017
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x170]
mov r9, qword [rax + 0x98]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0xf0]
call fcn.140252b68
cmp qword [rsp + 0x70], rax
je 0x14005f07f
mov byte [rsp + 0xa0], 0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140022710
nop
movzx eax, byte [rsp + 0xa0]
jmp 0x14005f129
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x89]
test eax, eax
jne 0x14005f0b4
mov byte [rsp + 0xa1], 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140022710
nop
movzx eax, byte [rsp + 0xa1]
jmp 0x14005f129
cmp qword [rsp + 0x70], 0
jne 0x14005f0ce
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.140046e40
jmp 0x14005f114
mov byte [rsp + 0xa2], 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140022710
nop
movzx eax, byte [rsp + 0xa2]
jmp 0x14005f129
mov byte [rsp + 0xa3], 0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140022710
nop
movzx eax, byte [rsp + 0xa3]
jmp 0x14005f129
jmp 0x14005ee21
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0x168
ret