Function at 0x18000f030
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800ff278]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000f098
mov rdx, qword [rbx + 0x50]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x18000f098
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x38]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
movzx eax, byte [rdx]
jmp 0x18000f287
cmp qword [rbx + 0x80], 0
jne 0x18000f0aa
or eax, 0xffffffff
jmp 0x18000f287
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000f0d7
mov rdx, qword [rbx + 0x90]
mov rcx, qword [rbx + 0x88]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x18000f111
mov byte [rbp + 0x20], 0
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, edx
lea rcx, [rbp + 0x20]
call fcn.18009e65c
cmp rax, 1
jne 0x18000f109
movzx ebx, byte [rbp + 0x20]
jmp 0x18000f285
or ebx, 0xffffffff
jmp 0x18000f285
xor eax, eax
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x3f], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x27]
call fcn.180004390
nop
mov rcx, qword [rbx + 0x80]
call fcn.18009d32c
cmp eax, 0xffffffff
je 0x18000f274
movzx r8d, al
mov edx, 1
lea rcx, [rbp + 0x27]
call fcn.18000ad90
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae rdx, qword [rbp + 0x27]
lea r8, [rbp + 0x27]
cmovae r8, qword [rbp + 0x27]
mov rcx, qword [rbx + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp + 0x37]
add r9, rdx
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x74]
call qword [r10 + Ordinal_50]
test eax, eax
js 0x18000f274
cmp eax, 1
jle 0x18000f1c4
cmp eax, 3
jne 0x18000f274
cmp qword [rbp + 0x37], 1
jae 0x18000f1f3
jmp 0x18000f12a
lea rax, [rbp + 0x1f]
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x17], rax
jne 0x18000f22b
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae rax, qword [rbp + 0x27]
mov r8, qword [rbp + 0xf]
sub r8, rax
xor edx, edx
call fcn.180004e70
jmp 0x18000f12a
cmp qword [rbp + 0x3f], 0x10
jb 0x18000f21c
mov rax, qword [rbp + 0x27]
test rax, rax
jne 0x18000f220
mov byte [rbp + 0x1f], al
call fcn.18009db98
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.18009b030
movzx eax, byte [rbp + 0x1f]
jmp 0x18000f226
lea rax, [rbp + 0x27]
movzx eax, byte [rax]
mov byte [rbp + 0x1f], al
movzx ebx, al
jmp 0x18000f277
cmp qword [rbp + 0x3f], 0x10
cmovae rcx, qword [rbp + 0x27]
mov eax, dword [rbp + 0x37]
mov rdx, qword [rbp + 0xf]
sub eax, edx
add eax, ecx
movsxd rdi, eax
test eax, eax
jle 0x18000f26e
nop word [rax + rax]
dec rdi
movsx ecx, byte [rdi + rdx]
mov rdx, qword [rbx + 0x80]
call fcn.18009dee4
test rdi, rdi
jle 0x18000f26e
mov rdx, qword [rbp + 0xf]
jmp 0x18000f250
movzx ebx, byte [rbp + 0x1f]
jmp 0x18000f277
or ebx, 0xffffffff
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x27]
call fcn.180004390
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180077fb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret