Function at 0x1401b51d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8c8]
sub rsp, 0x9c8
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
mov qword [rbp + 0x18], rdx
xor edx, edx
mov qword [rbp + 0x20], rcx
mov dword [rsp + 0x38], r8d
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x50]
mov dword [rsp + 0x48], r9d
mov dword [rsp + 0x40], 2
call fcn.1401c0040
lea rcx, [rbp + 0x4e0]
call fcn.140056c60
lea rbx, [0x1401b6010]
lea rcx, [rbp + 0x590]
mov rdx, rsp
mov qword [rbp + 0x4e0], rbx
mov qword [rbp + 0x80], rax
call fcn.1401bd630
lea rcx, [rbp + 0x80]
test eax, eax
jne 0x1401b52c7
lea edx, [rax + 0x3e]
mov r8d, 0x258
call fcn.1400572d0
lea rcx, [rbp + 0x4e0]
call fcn.140056c60
lea rcx, [rbp + 0x2e0]
mov edx, 0x3e
mov r8d, 0x1f8
mov qword [rbp + 0x4e0], rbx
mov qword [rbp + 0x2e0], rax
call fcn.140056d50
lea rcx, [rbp + 0x590]
mov rdx, rsp
call fcn.1401bd630
test eax, eax
je 0x1401b52d6
lea rcx, [rbp + 0x2e0]
call fcn.140057500
lea rcx, [rbp + 0x80]
call fcn.140057500
xor esi, esi
movzx eax, si
jmp 0x1401b5a2d
mov r9d, dword [rbp + 0x930]
xor esi, esi
test r9d, r9d
je 0x1401b52fd
mov eax, dword [rbp + 0x938]
test eax, eax
je 0x1401b52fd
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x1401b5309
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], esi
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1401bcc70
movzx eax, byte [rbp + 0x948]
movzx ecx, word [rbp + 0x940]
and al, 1
mov r15d, 1
mov byte [rsp + 0x75], sil
mov byte [rsp + 0x74], al
lea r14d, [r15 + 4]
dec ecx
je 0x1401b5375
dec ecx
je 0x1401b536b
dec ecx
je 0x1401b5361
dec ecx
je 0x1401b5357
dec ecx
je 0x1401b5350
mov dword [rsp + 0x70], esi
jmp 0x1401b537a
mov dword [rsp + 0x70], r15d
jmp 0x1401b537a
mov dword [rsp + 0x70], 2
jmp 0x1401b537a
mov dword [rsp + 0x70], 7
jmp 0x1401b537a
mov dword [rsp + 0x70], 6
jmp 0x1401b537a
mov dword [rsp + 0x70], r14d
mov rax, qword [rbp + 0x2e8]
lea rdx, [0x140264ea4]
mov ecx, dword [rax + 0x58]
mov rax, qword [rbp + 0x88]
mov dword [rax + 0x58], ecx
mov rcx, qword [rbp + 0x20]
call fcn.1401be7e4
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1401b52ce
lea rcx, [rbp + 0x590]
mov rdx, rsp
call fcn.1401bd630
test eax, eax
je 0x1401b53e9
lea rcx, [rbp + 0x2e0]
call fcn.140057500
lea rcx, [rbp + 0x80]
call fcn.140057500
mov rcx, qword [rsp + 0x50]
call fcn.1401be6a4
movzx eax, si
jmp 0x1401b5a2d
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.140168260
mov edx, dword [rsp + 0x40]
lea rcx, [rbp + 0x80]
call fcn.1401bc950
lea rcx, [rbp + 0x80]
movzx edx, r15b
call fcn.1400575e0
movzx ebx, word [rbp + 0x940]
lea r12, [0x140000000]
mov r13d, 3
cmp bx, 6
jne 0x1401b550c
mov rdi, qword [rbp + 0x1f0]
mov rcx, rdi
test rdi, rdi
je 0x1401b5645
nop dword [rax + rax]
cmp byte [rcx + 8], 0xe1
je 0x1401b5463
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1401b5450
jmp 0x1401b5645
mov dword [rbp - 0x18], r15d
mov eax, dword [rcx + 0x10]
lea rdx, [rsp + 0x58]
mov dword [rbp - 0x14], eax
mov rax, qword [rcx + 0x18]
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rsi
call fcn.14003ca80
test eax, eax
je 0x1401b563e
mov eax, dword [rsp + 0x58]
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x1401b54a8
cdqe
mov ecx, dword [r12 + rax*4 + 0x1b5a50]
add rcx, r12
jmp rcx
mov dword [rsp + 0x70], r15d
jmp 0x1401b54ee
mov dword [rsp + 0x70], 6
jmp 0x1401b54ee
mov dword [rsp + 0x70], 2
jmp 0x1401b54ee
mov dword [rsp + 0x70], r13d
jmp 0x1401b54ee
mov dword [rsp + 0x70], r14d
jmp 0x1401b54ee
mov r14d, 4
mov dword [rsp + 0x70], r14d
jmp 0x1401b54f4
mov dword [rsp + 0x70], 7
jmp 0x1401b54ee
mov dword [rsp + 0x70], esi
mov r14d, 4
lea rcx, [rbp - 0x18]
mov edx, r15d
call fcn.14003e1b0
mov rdi, qword [rbp + 0x1f0]
jmp 0x1401b564b
mov r14d, dword [rbp + 0x948]
test r14b, 4
je 0x1401b563e
mov rdi, qword [rbp + 0x1f0]
test rdi, rdi
je 0x1401b5645
nop dword [rax]
cmp byte [rdi + 8], 0xe1
jne 0x1401b555e
mov dword [rbp], r15d
mov eax, dword [rdi + 0x10]
lea rdx, [rsp + 0x5c]
mov dword [rbp + 4], eax
mov rax, qword [rdi + 0x18]
lea rcx, [rbp]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rsi
call fcn.14003ca80
test eax, eax
jne 0x1401b556c
mov rdi, qword [rdi]
test rdi, rdi
je 0x1401b563e
jmp 0x1401b5530
test r14b, 2
je 0x1401b5632
lea eax, [rbx - 1]
cmp ax, 2
ja 0x1401b5632
mov edx, dword [rsp + 0x5c]
movdqa xmm0, xmmword [0x14024dbd0]
movdqa xmm1, xmmword [0x14024dbc0]
movdqu xmmword [rbp + 0x6a0], xmm0
movdqu xmmword [rbp + 0x690], xmm1
lea eax, [rdx - 2]
cmp eax, 6
ja case.0x1401b55bc.5
cdqe
mov ecx, dword [r12 + rax*4 + 0x1b5a6c]
add rcx, r12
jmp rcx
mov eax, r15d
jmp 0x1401b55d1
mov eax, 2
jmp 0x1401b55d1
mov eax, r13d
jmp 0x1401b55d1
mov eax, esi
cmp bx, r15w
jne 0x1401b55db
inc eax
jmp 0x1401b55ef
cmp bx, 2
jne 0x1401b55e6
add eax, 2
jmp 0x1401b55ef
cmp bx, r13w
jne 0x1401b55ef
add eax, r13d
cmp edx, 7
ja 0x1401b5617
mov ecx, 0xb4
bt ecx, edx
jae 0x1401b5617
and eax, 0x80000003
jge 0x1401b560c
dec eax
or eax, 0xfffffffc
inc eax
cdqe
mov ecx, dword [rbp + rax*4 + 0x690]
jmp 0x1401b562e
and eax, 0x80000003
jge 0x1401b5625
dec eax
or eax, 0xfffffffc
inc eax
cdqe
mov ecx, dword [rbp + rax*4 + 0x6a0]
mov dword [rsp + 0x70], ecx
lea rcx, [rbp]
mov edx, r15d
call fcn.14003e1b0
mov rdi, qword [rbp + 0x1f0]
mov r14d, 4
lea eax, [rbx - 1]
cmp ax, 2
ja 0x1401b56cc
mov rcx, rdi
test rdi, rdi
je 0x1401b56cc
nop dword [rax]
cmp byte [rcx + 8], 0xe1
je 0x1401b5670
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1401b5660
jmp 0x1401b56cc
mov dword [rbp - 0x38], r15d
mov eax, dword [rcx + 0x10]
mov dword [rbp - 0x34], eax
mov rax, qword [rcx + 0x18]
lea rcx, [rbp + 0x80]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
call fcn.140071b80
mov eax, dword [rsp + 0x70]
lea rcx, [rbp - 0x38]
add eax, 0xfffffffb
test eax, 0xfffffffd
je 0x1401b56b3
mov r8d, dword [rbp + 0xf8]
mov edx, dword [rbp + 0xf4]
jmp 0x1401b56c0
mov r8d, dword [rbp + 0xf4]
mov edx, dword [rbp + 0xf8]
call fcn.14003e110
mov rdi, qword [rbp + 0x1f0]
test bx, bx
je 0x1401b5821
test rdi, rdi
je 0x1401b5821
nop
cmp byte [rdi + 8], 0xe1
je 0x1401b56f3
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1401b56e0
jmp 0x1401b5821
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
lea r8, [rbp + 0x30]
call fcn.1401509e0
test eax, eax
je 0x1401b5821
lea rcx, [rbp + 0x6b0]
mov edx, 0x200
call fcn.1400661b0
lea rdx, [0x1401f6fd8]
lea rcx, [rbp + 0x6b0]
call fcn.1401be7e4
mov rbx, rax
test rax, rax
je 0x1401b5821
movsxd rcx, dword [rbp + 0x30]
mov edx, dword [rbp + 0x34]
mov r9, rax
add rcx, qword [rdi + 0x18]
mov r8, r15
call fcn.1401c24f8
mov rcx, rbx
call fcn.1401be6a4
movsxd rax, dword [rsp + 0x70]
cmp eax, 7
ja case.0x1401b5772.3
mov ecx, dword [r12 + rax*4 + 0x1b5a88]
add rcx, r12
jmp rcx
movzx eax, r15w
mov word [rsp + 0x30], ax
lea rcx, [rbp + 0x6b0]
mov r8d, r15d
movzx edx, ax
call fcn.1401b5100
movsx ecx, ax
test ecx, ecx
je 0x1401b5815
lea rdx, [0x140264ea4]
lea rcx, [rbp + 0x6b0]
call fcn.1401be7e4
mov rbx, rax
test rax, rax
je 0x1401b5815
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.1401c1f88
mov rcx, rbx
call fcn.1401c2310
xor r8d, r8d
xor edx, edx
mov rcx, rbx
movsxd r14, eax
call fcn.1401c1f88
cmp r14d, dword [rbp + 0x34]
ja 0x1401b580d
movsxd rcx, dword [rbp + 0x30]
mov rdx, r14
mov r9, rbx
add rcx, qword [rdi + 0x18]
mov r8, r15
call fcn.1401c1e14
cmp dword [rbp + 0x60], esi
je 0x1401b580d
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x1401b580d
mov r8d, dword [rbp + 0x70]
mov edx, r15d
call fcn.1401b4fe0
mov rcx, rbx
call fcn.1401be6a4
lea rcx, [rbp + 0x6b0]
call fcn.1401c2588
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x80]
call fcn.1401bccc0
lea rcx, [rbp + 0x80]
call fcn.1401ea6c0
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x80]
mov rbx, rax
mov qword [rbp - 0x40], rax
call fcn.1401eab80
lea r9, [rsp + 0x70]
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x80]
mov r8, rbx
call fcn.1401bc9b0
mov rcx, qword [rbp + 0x18]
lea rdx, [0x1401f6fd8]
mov qword [rbp - 0x20], rax
mov byte [rbp + 0x3e2], r15b
call fcn.1401be7e4
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1401b52ce
lea rcx, [rbp + 0x590]
mov rdx, rsp
call fcn.1401bd630
lea rcx, [rbp + 0x2e0]
test eax, eax
je 0x1401b5997
call fcn.140057500
lea rcx, [rbp + 0x80]
call fcn.140057510
lea rcx, [rbp + 0x80]
call fcn.140057500
mov rcx, qword [rsp + 0x60]
call fcn.1401be6a4
mov rcx, qword [rsp + 0x50]
call fcn.1401be6a4
movzx eax, si
jmp 0x1401b5a2d
mov eax, 2
jmp 0x1401b5778
movzx eax, r13w
jmp 0x1401b5778
movzx eax, r14w
jmp 0x1401b5778
mov eax, 5
jmp 0x1401b5778
mov word [rsp + 0x30], si
jmp 0x1401b592e
movzx eax, word [rsp + 0x30]
test ax, ax
jne 0x1401b577d
mov eax, dword [rbp + 0x50]
xor edx, edx
lea rcx, [rbp + 0x6b0]
mov word [rsp + 0x28], r15w
imul eax, dword [rbp + 0x938]
div dword [rbp + 0xb4]
xor edx, edx
mov ebx, eax
mov eax, dword [rbp + 0x40]
mov dword [rsp + 0x20], ebx
imul eax, dword [rbp + 0x930]
div dword [rbp + 0xb0]
xor edx, edx
mov r9d, eax
mov eax, dword [rsp + 0x48]
imul eax, dword [rbp + 0x50]
div dword [rbp + 0xb4]
xor edx, edx
mov r8d, eax
mov eax, dword [rsp + 0x38]
imul eax, dword [rbp + 0x40]
div dword [rbp + 0xb0]
mov edx, eax
call fcn.1401b5000
jmp 0x1401b578f
mov rdx, qword [rsp + 0x60]
call fcn.1401ea5d0
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp + 0x2e0]
call fcn.1401eae30
mov r8d, dword [rsp + 0x40]
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x80]
call fcn.1401bc890
mov r8, qword [rbp - 0x40]
lea r9, [rsp + 0x70]
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x80]
call fcn.1401bcb30
lea rcx, [rbp + 0x2e0]
call fcn.140056e70
lea rcx, [rbp + 0x2e0]
call fcn.140057500
lea rcx, [rbp + 0x80]
call fcn.140057510
lea rcx, [rbp + 0x80]
call fcn.140057500
mov rcx, qword [rsp + 0x50]
call fcn.1401be6a4
mov rcx, qword [rsp + 0x60]
call fcn.1401be6a4
movzx eax, r15w
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x9c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret