Function at 0x14004ded0
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 0x14004df1f
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x8a]
test eax, eax
jne 0x14004df2b
mov al, 1
jmp 0x14004e2cf
mov dword [rsp + 0x30], 8
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
mov dx, 0xffff
mov rcx, qword [rsp + 0x170]
call qword [rax + 0x18]
mov word [rsp + 0x78], ax
mov eax, 0xffff
mov word [rsp + 0x7a], ax
movzx eax, word [rsp + 0x7a]
movzx ecx, word [rsp + 0x78]
cmp eax, ecx
jne 0x14004df77
mov dword [rsp + 0x140], 1
jmp 0x14004df82
mov dword [rsp + 0x140], 0
movzx eax, byte [rsp + 0x140]
test eax, eax
je 0x14004df95
xor al, al
jmp 0x14004e2cf
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 0x14004dfe9
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 0x14004e023
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc8], rax
jmp 0x14004e030
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 0x14004e04a
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 0x14004e108
cmp dword [rsp + 0x150], 1
je 0x14004e117
cmp dword [rsp + 0x150], 3
je 0x14004e276
jmp 0x14004e298
mov rax, qword [rsp + 0x170]
mov byte [rax + 0x8a], 0
cmp qword [rsp + 0x60], 0x10
jb 0x14004e12e
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rax
jmp 0x14004e13b
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 0x14004e155
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 0x14004e225
cmp qword [rsp + 0x60], 0x10
jb 0x14004e196
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe8], rax
jmp 0x14004e1a3
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 0x14004e1bd
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 0x14004e225
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 0x14004e2cf
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x8a]
test eax, eax
jne 0x14004e25a
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 0x14004e2cf
cmp qword [rsp + 0x70], 0
jne 0x14004e274
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.140046e40
jmp 0x14004e2ba
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 0x14004e2cf
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 0x14004e2cf
jmp 0x14004dfc7
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0x168
ret