Function at 0x18005bb50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
imul r13d, edx, 0x24e
mov r15d, edx
mov rbx, rcx
mov r14d, edx
cmp edx, r13d
ja 0x18005be71
mov rsi, qword [rsp + 0x80]
lea rcx, [0x180047250]
mov r12, qword [rsp + 0x80]
lea rdx, [0x180064110]
mov ebp, dword [rsp + 0x78]
xor edi, edi
cmp r14d, 0x5940
ja 0x18005bca1
je 0x18005bc77
mov eax, r14d
sub eax, 0xc0
je 0x18005bc6f
sub eax, 0x11
je 0x18005bc4b
sub eax, 0x4e
je 0x18005bc16
sub eax, 0x2be1
je 0x18005bbee
cmp eax, 0x3fc
jne 0x18005be61
mov qword [rsi], rcx
mov qword [rsi + 0x18], rdx
jmp 0x18005be61
mov r9, qword [0x1800bd648]
lea rcx, [rsp + 0x78]
mov edx, 4
mov dword [rsp + 0x78], edi
mov dword [rbx], edi
lea r8d, [rdx - 3]
call fcn.18007c8f8
mov r12, rax
jmp 0x18005be53
mov rax, qword [rbx]
lea r8, [rsp + 0x80]
mov edx, 0x18
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x88]
mov dword [rsp + 0x80], 0xd9
call fcn.18003ae20
jmp 0x18005be53
mov rcx, qword [rbx]
mov edx, 1
mov rax, qword [rcx + 8]
lea r8d, [rdx + 0x57]
call qword [rax]
mov rcx, qword [rbx]
mov rsi, rax
mov qword [rcx + 0x2a8], rax
jmp 0x18005be53
mov r12, rdi
jmp 0x18005be61
movzx eax, byte [rsp + 0x79]
movzx ecx, byte [rsp + 0x78]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x7a]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x7b]
shl ecx, 8
or ecx, eax
mov dword [rbx], ecx
jmp 0x18005be5a
cmp r14d, 0x6127
je 0x18005be2d
cmp r14d, 0x8580
je 0x18005be8e
cmp r14d, 0x9152
je 0x18005bd2e
cmp r14d, 0xc17d
jne 0x18005be61
mov rcx, qword [rbx]
cmp dword [rcx + 0x70], 0
je 0x18005bce4
mov dword [rcx + 0x70], 2
mov rcx, qword [rbx]
cmp dword [rcx + 0x70], 2
jne 0x18005be5a
mov eax, dword [rcx + 0x88]
mov edx, 1
mov r9, qword [rcx + 8]
add eax, 2
lea r8, [rax + rax*2]
add r8, r8
call qword [r9 + OleUIPromptUserA]
mov qword [rsi + 0x40], rax
xor r8d, r8d
mov rax, qword [rbx]
lea rcx, [rsp + 0x20]
mov edx, 0x11a
mov qword [rsp + 0x20], rax
call fcn.18005e7a0
jmp 0x18005be53
mov rcx, qword [rbx]
mov edx, 1
mov r8d, 0x100
mov rax, qword [rcx + 8]
call qword [rax]
mov qword [rsi + 0x30], rax
nop word [rax + rax]
mov rcx, qword [rbx]
mov edx, 1
mov r8d, 0x2000
mov rax, qword [rcx + 8]
call qword [rax + OleUIPromptUserA]
mov rcx, qword [rsi + 0x30]
mov qword [rdi + rcx], rax
add rdi, 8
cmp rdi, 0x100
jl 0x18005bd50
mov dword [rsi + 0x38], 1
mov rax, qword [rbx]
cmp dword [rax + 0x84], 0
je 0x18005be25
mov edi, 0x67
mov eax, edi
sub eax, 0x66
je 0x18005be13
cmp eax, 1
jne 0x18005be16
mov rcx, qword [rbx]
mov ebp, dword [rcx + 0x78]
cmp ebp, 8
jge 0x18005bdcf
mov rax, qword [rcx]
mov dword [rax + 0x28], 0x38
mov rax, qword [rbx]
mov rcx, qword [rax]
mov dword [rcx + 0x2c], 8
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rbx]
cmp ebp, 0x100
jle 0x18005bdf9
mov rax, qword [rcx]
mov dword [rax + 0x28], 0x39
mov rax, qword [rbx]
mov rcx, qword [rax]
mov dword [rcx + 0x2c], 0x100
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
mov r9d, 3
mov r8d, ebp
lea edx, [r9 - 2]
call qword [rax + 0x10]
mov qword [rsi + 0x20], rax
jmp 0x18005be16
mov dword [rsi + 0x28], ebp
dec edi
cmp edi, 0x65
ja 0x18005bd96
xor edi, edi
jmp 0x18005be53
xor edi, edi
mov qword [rsi + 0x20], rdi
jmp 0x18005be53
mov qword [rsi + 0x40], rdi
mov qword [rsi + 0x50], rdi
mov rax, qword [rbx]
cmp dword [rax + 0x90], 3
je 0x18005be61
mov rax, qword [rax]
mov dword [rax + 0x28], 0x2f
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax]
lea rdx, [0x180064110]
lea rcx, [0x180047250]
imul eax, r15d, 0x3b
add r14d, eax
cmp r14d, r13d
jbe 0x18005bba1
mov rax, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [r12*4]
jmp 0x18005be79