Function at 0x180049bf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
movsxd rsi, r8d
mov ebx, ebp
mov r15, r9
cmp qword [0x1801786d0], rbx
mov r12, rdx
mov r13d, ecx
jne 0x180049c3f
mov ecx, 0x4004
call fcn.1800d829c
mov qword [0x1801786d0], rax
test rax, rax
je 0x180049ef3
mov rax, qword [0x1801786b8]
test rax, rax
jne 0x180049c65
mov ecx, 0x4004
call fcn.1800d829c
mov qword [0x1801786b8], rax
test rax, rax
je 0x180049ef3
mov r9, qword [0x1801786c0]
test r9, r9
jne 0x180049c95
mov ecx, 0x4004
call fcn.1800d829c
mov qword [0x1801786c0], rax
mov r9, rax
test rax, rax
je 0x180049ef3
mov rax, qword [0x1801786b8]
movsxd rdi, dword [0x1801786cc]
test edi, edi
je 0x180049cf5
mov rcx, r12
cmp edi, esi
jge 0x180049ccd
movsxd rdx, dword [0x1801786c8]
mov r8, rdi
add rdx, r9
call fcn.1800d7020
mov esi, edi
mov dword [0x1801786cc], ebp
mov eax, esi
mov dword [0x1801786c8], ebp
mov edi, ebp
jmp 0x180049d38
movsxd rbx, dword [0x1801786c8]
mov r8, rsi
lea rdx, [r9 + rbx]
call fcn.1800d7020
sub edi, esi
lea ebp, [rbx + rsi]
mov dword [0x1801786cc], edi
mov eax, esi
mov dword [0x1801786c8], ebp
jmp 0x180049d38
mov r14d, 0x4000
cmp esi, r14d
cmovle r14d, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, 4
movsxd rdx, ebx
sub r8d, ebx
add rdx, rax
mov ecx, r13d
call fcn.1800e51ec
cmp eax, 0xffffffff
jne 0x180049d55
call fcn.1800d92ec
cmp dword [rax], 4
je 0x180049d5b
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test eax, eax
jle 0x180049d36
add ebx, eax
cmp ebx, 4
jge 0x180049d69
mov rax, qword [0x1801786b8]
jmp 0x180049d10
mov r10, qword [0x1801786b8]
movzx ebx, byte [r10]
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10 + 2]
shl ebx, 0x18
shl eax, 0x10
or ebx, eax
shl ecx, 8
movzx eax, byte [r10 + 3]
or ecx, eax
or ebx, ecx
cmp ebx, 0x4000
ja 0x180049ef3
cmp ebx, 8
jge 0x180049daa
mov esi, 8
jmp 0x180049db9
lea eax, [rbx + 7]
cdq
and edx, 7
lea esi, [rdx + rax]
and esi, 0xfffffff8
jle 0x180049dfe
mov edi, ebp
nop dword [rax + rax]
mov r8d, esi
movsxd rdx, edi
sub r8d, edi
add rdx, r10
mov ecx, r13d
call fcn.1800e51ec
cmp eax, 0xffffffff
jne 0x180049de9
call fcn.1800d92ec
cmp dword [rax], 4
jne 0x180049d36
jmp 0x180049df3
test eax, eax
jle 0x180049d36
add edi, eax
mov r10, qword [0x1801786b8]
cmp edi, esi
jl 0x180049dc0
mov dword [rsp + 0x28], ebp
mov r9, r15
mov r8d, ebx
cmp r14d, ebx
jge 0x180049e65
test byte [sym.version.dll_DES_rw_mode], 1
mov rcx, r10
mov rax, qword [rsp + 0x80]
mov rdx, qword [0x1801786c0]
mov qword [rsp + 0x20], rax
je 0x180049e34
call sym.version.dll_DES_pcbc_encrypt
jmp 0x180049e39
call sym.version.dll_DES_cbc_encrypt
mov rdx, qword [0x1801786c0]
mov rcx, r12
movsxd r8, r14d
call fcn.1800d7020
sub ebx, r14d
mov dword [0x1801786c8], r14d
mov dword [0x1801786cc], ebx
mov ebx, r14d
mov eax, ebx
jmp 0x180049d38
cmp r14d, esi
jge 0x180049eaf
test byte [sym.version.dll_DES_rw_mode], 1
mov rcx, r10
mov rax, qword [rsp + 0x80]
mov rdx, qword [0x1801786d0]
mov qword [rsp + 0x20], rax
je 0x180049e91
call sym.version.dll_DES_pcbc_encrypt
jmp 0x180049e96
call sym.version.dll_DES_cbc_encrypt
mov rdx, qword [0x1801786d0]
mov rcx, r12
movsxd r8, ebx
call fcn.1800d7020
mov eax, ebx
jmp 0x180049d38
test byte [sym.version.dll_DES_rw_mode], 1
mov rdx, r12
je 0x180049ed7
mov rax, qword [rsp + 0x80]
mov rcx, r10
mov qword [rsp + 0x20], rax
call sym.version.dll_DES_pcbc_encrypt
mov eax, ebx
jmp 0x180049d38
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov rcx, r10
call sym.version.dll_DES_cbc_encrypt
mov eax, ebx
jmp 0x180049d38
mov eax, 0xffffffff
jmp 0x180049d38