Function at 0x14004b000
Capabilities:
Write file on windows

Disassembly:
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov qword [rsp + 0x188], 0xfffffffffffffffe
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
mov eax, 0xffff
mov word [rsp + 0x98], ax
movzx eax, word [rsp + 0x98]
movzx ecx, word [rsp + 0x1e8]
cmp eax, ecx
jne 0x14004b05d
mov dword [rsp + 0x190], 1
jmp 0x14004b068
mov dword [rsp + 0x190], 0
movzx eax, byte [rsp + 0x190]
test eax, eax
je 0x14004b0dd
movzx eax, word [rsp + 0x1e8]
mov ecx, 0xffff
movzx ecx, cx
cmp eax, ecx
je 0x14004b099
movzx eax, word [rsp + 0x1e8]
mov dword [rsp + 0x194], eax
jmp 0x14004b0cb
mov eax, 0xffff
movzx eax, ax
test eax, eax
jne 0x14004b0b2
mov dword [rsp + 0x198], 1
jmp 0x14004b0bd
mov dword [rsp + 0x198], 0
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0x194], eax
movzx eax, word [rsp + 0x194]
jmp 0x14004b6d9
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x14004b1d3
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x48]
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x60]
movsxd rcx, dword [rcx]
mov rax, qword [rax]
lea rax, [rax + rcx*2]
cmp qword [rsp + 0xd8], rax
jae 0x14004b1d3
movzx eax, word [rsp + 0x1e8]
mov word [rsp + 0xe0], ax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x60]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x48]
mov rax, qword [rax]
add rax, 2
mov rcx, qword [rsp + 0x1e0]
mov rcx, qword [rcx + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x1a0]
movzx ecx, word [rsp + 0xe0]
mov word [rax], cx
movzx eax, word [rsp + 0x1e8]
jmp 0x14004b6d9
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x98], 0
jne 0x14004b1ef
mov eax, 0xffff
jmp 0x14004b6d9
mov rcx, qword [rsp + 0x1e0]
call fcn.14004e2f0
mov rax, qword [rsp + 0x1e0]
cmp qword [rax + 0x80], 0
jne 0x14004b2ad
movzx eax, word [rsp + 0x1e8]
mov word [rsp + 0xf0], ax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0xf8], rax
mov rdx, qword [rsp + 0xf8]
movzx ecx, word [rsp + 0xf0]
call fcn.140252df8
movzx eax, ax
cmp eax, 0xffff
je 0x14004b265
mov dword [rsp + 0x1a8], 1
jmp 0x14004b270
mov dword [rsp + 0x1a8], 0
movzx eax, byte [rsp + 0x1a8]
test eax, eax
je 0x14004b28e
movzx eax, word [rsp + 0x1e8]
mov word [rsp + 0x1ac], ax
jmp 0x14004b29b
mov eax, 0xffff
mov word [rsp + 0x1ac], ax
movzx eax, word [rsp + 0x1ac]
jmp 0x14004b6d9
mov dword [rsp + 0x40], 8
movzx eax, word [rsp + 0x1e8]
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x108], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140022710
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x68]
call fcn.14004b700
nop
lea rcx, [rsp + 0x68]
call fcn.140047010
mov qword [rsp + 0x110], rax
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0xa0]
call fcn.140043a40
xor eax, eax
test eax, eax
jne 0x14004b320
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x68]
call fcn.140047010
mov qword [rsp + 0x128], rax
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0xa8]
call fcn.140043a40
xor eax, eax
test eax, eax
jne 0x14004b36f
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x118]
add rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x52]
mov rdx, qword [rsp + 0x1e0]
add rdx, 0x8c
mov r8, qword [rsp + 0x138]
mov r8, qword [r8]
mov qword [rsp + 0x1b0], r8
lea r9, [rsp + 0x58]
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x50]
mov rcx, qword [rsp + 0x138]
mov rax, qword [rsp + 0x1b0]
call qword [rax + 0x28]
mov dword [rsp + 0x1b8], eax
cmp dword [rsp + 0x1b8], 0
jl 0x14004b69d
cmp dword [rsp + 0x1b8], 1
jle 0x14004b44c
cmp dword [rsp + 0x1b8], 3
je 0x14004b5ed
jmp 0x14004b69d
lea rcx, [rsp + 0x68]
call fcn.140047010
mov qword [rsp + 0x140], rax
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0xb0]
call fcn.140043a40
xor eax, eax
test eax, eax
jne 0x14004b478
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jbe 0x14004b53d
lea rcx, [rsp + 0x68]
call fcn.140047010
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xb8], rax
xor eax, eax
test eax, eax
jne 0x14004b4ca
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x1e0]
mov r9, qword [rax + 0x98]
mov r8, qword [rsp + 0x90]
mov edx, 1
mov rcx, qword [rsp + 0x150]
call fcn.140252b68
cmp qword [rsp + 0x90], rax
je 0x14004b53d
mov eax, 0xffff
mov word [rsp + 0xc0], ax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
movzx eax, word [rsp + 0xc0]
jmp 0x14004b6d9
mov rax, qword [rsp + 0x1e0]
mov byte [rax + 0x8a], 1
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x48], rax
je 0x14004b585
movzx eax, word [rsp + 0x1e8]
mov word [rsp + 0xc2], ax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
movzx eax, word [rsp + 0xc2]
jmp 0x14004b6d9
cmp qword [rsp + 0x90], 0
jbe 0x14004b592
jmp 0x14004b5e8
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x158], rax
cmp qword [rsp + 0x158], 0x20
jae 0x14004b5be
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x68]
call fcn.140046e40
jmp 0x14004b5e8
mov eax, 0xffff
mov word [rsp + 0xc4], ax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
movzx eax, word [rsp + 0xc4]
jmp 0x14004b6d9
jmp 0x14004b6c4
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x170], rax
movzx eax, word [rsp + 0x50]
mov word [rsp + 0x168], ax
mov rdx, qword [rsp + 0x170]
movzx ecx, word [rsp + 0x168]
call fcn.140252df8
movzx eax, ax
cmp eax, 0xffff
je 0x14004b63d
mov dword [rsp + 0x1bc], 1
jmp 0x14004b648
mov dword [rsp + 0x1bc], 0
movzx eax, byte [rsp + 0x1bc]
test eax, eax
je 0x14004b666
movzx eax, word [rsp + 0x1e8]
mov word [rsp + 0x1c0], ax
jmp 0x14004b673
mov eax, 0xffff
mov word [rsp + 0x1c0], ax
movzx eax, word [rsp + 0x1c0]
mov word [rsp + 0xc6], ax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
movzx eax, word [rsp + 0xc6]
jmp 0x14004b6d9
mov eax, 0xffff
mov word [rsp + 0xc8], ax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140022710
nop
movzx eax, word [rsp + 0xc8]
jmp 0x14004b6d9
jmp 0x14004b2f4
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0x1d8
ret