Function at 0x140008058
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xc0], 0xfffffffffffffffe
call fcn.140004b60
mov dword [rsp + 0x68], eax
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x68]
call fcn.140004ad8
movzx eax, al
test eax, eax
je 0x1400080ad
lea rcx, [rsp + 0x108]
call fcn.140004b10
jmp 0x14000843e
mov rcx, qword [rsp + 0x100]
call fcn.14000a3c0
test rax, rax
je 0x140008120
mov rcx, qword [rsp + 0x100]
call fcn.14000a3c0
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x100]
call fcn.14000a440
mov rcx, qword [rsp + 0xa0]
cmp rcx, rax
jae 0x140008120
lea rcx, [rsp + 0x108]
call fcn.140004ab8
mov byte [rsp + 0x42], al
mov rcx, qword [rsp + 0x100]
call fcn.14000a5dc
mov cl, byte [rsp + 0x42]
mov byte [rax], cl
mov eax, dword [rsp + 0x108]
jmp 0x14000843e
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x90], 0
jne 0x14000813c
call fcn.140004b60
jmp 0x14000843e
mov rcx, qword [rsp + 0x100]
call fcn.14000acac
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x78], 0
jne 0x1400081a6
lea rcx, [rsp + 0x108]
call fcn.140004ab8
mov rcx, qword [rsp + 0x100]
mov rdx, qword [rcx + 0x90]
mov cl, al
call fcn.140006694
movzx eax, al
test eax, eax
je 0x14000818f
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x4c], eax
jmp 0x140008198
call fcn.140004b60
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x14000843e
mov dword [rsp + 0x90], 8
lea rcx, [rsp + 0x108]
call fcn.140004ab8
mov byte [rsp + 0x40], al
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x70]
call fcn.1400096c0
nop
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x70]
call fcn.140009c90
mov rcx, rax
call fcn.14000c284
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x70]
call fcn.140009cc4
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x70]
call fcn.140009c90
mov rcx, rax
call fcn.14000c284
lea rcx, [rsp + 0x41]
mov rdx, qword [rsp + 0x100]
add rdx, 0x84
lea r8, [rsp + 0x98]
mov qword [rsp + 0x38], r8
mov r8, qword [rsp + 0xb0]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x40]
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0x78]
call fcn.14000c0cc
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140008415
cmp dword [rsp + 0x44], 1
jle 0x1400082b0
cmp dword [rsp + 0x44], 3
je 0x1400083c8
jmp 0x140008415
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x70]
call fcn.140009c90
mov rcx, rax
call fcn.14000c284
mov rcx, qword [rsp + 0x98]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x140008343
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x70]
call fcn.140009c90
mov rcx, rax
call fcn.14000c284
mov rcx, qword [rsp + 0x100]
mov r9, qword [rcx + 0x90]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rax
call fcn.1401a3794
cmp qword [rsp + 0x50], rax
je 0x140008343
call fcn.140004b60
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x70]
call fcn.1400072a4
mov eax, dword [rsp + 0x58]
jmp 0x14000843e
mov rax, qword [rsp + 0x100]
mov byte [rax + 0x81], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0xa8], rax
je 0x14000837f
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x70]
call fcn.1400072a4
mov eax, dword [rsp + 0x6c]
jmp 0x14000843e
cmp qword [rsp + 0x50], 0
jbe 0x140008389
jmp 0x1400083c6
lea rcx, [rsp + 0x70]
call fcn.140009cc4
cmp rax, 0x20
jae 0x1400083ad
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x70]
call fcn.1400099e8
jmp 0x1400083c6
call fcn.140004b60
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x70]
call fcn.1400072a4
mov eax, dword [rsp + 0x64]
jmp 0x14000843e
jmp 0x14000842e
mov rax, qword [rsp + 0x100]
mov rdx, qword [rax + 0x90]
mov cl, byte [rsp + 0x40]
call fcn.140006694
movzx eax, al
test eax, eax
je 0x1400083f4
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x48], eax
jmp 0x1400083fd
call fcn.140004b60
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x70]
call fcn.1400072a4
mov eax, dword [rsp + 0x5c]
jmp 0x14000843e
call fcn.140004b60
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x70]
call fcn.1400072a4
mov eax, dword [rsp + 0x60]
jmp 0x14000843e
jmp 0x1400081d5
add rsp, 0xf8
ret