Function at 0x18005b458
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r14, qword [rcx]
mov r11, qword [rcx + 8]
mov r15, rcx
mov rbx, qword [r14]
mov rdi, qword [r14 + 0x10]
mov rcx, r14
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], r11
mov qword [rsp + 0x88], rbx
call fcn.18002f960
movzx eax, byte [r15 + 0x39]
sub eax, 1
movsxd rsi, eax
js 0x18005b717
mov rax, rsi
imul rax, rax, 0x78
lea r14, [rax + r11 + 0x50]
lea rax, [rsi + rsi*4]
add rax, rax
lea rbx, [r15 + rax*8 + 0x358]
mov r15, qword [rsp + 0x88]
mov edx, dword [rbx]
mov r13, qword [rbx + 0x28]
mov rcx, rdi
call fcn.18001ecf8
cmp byte [rbx + 0xd], 0x9d
je 0x18005b518
movzx eax, byte [rbx + 0xe]
movzx edx, byte [rbx + 0xd]
mov r9d, dword [rbx + 0x14]
mov r8d, dword [rbx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.18001eb5c
mov r11, qword [rdi + 8]
test r11, r11
je 0x18005b518
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov al, byte [rbx + 0xf]
mov byte [r11 + rcx*8 - 0x15], al
bt dword [r13 + 0x28], 0xb
jae 0x18005b5d0
cmp dword [rbx + 0x18], 0
jle 0x18005b5d0
mov edx, dword [rbx - 8]
mov rcx, rdi
call fcn.18001ecf8
mov ebp, dword [rbx + 0x18]
lea eax, [rbp - 1]
movsxd rcx, eax
mov rax, qword [rbx + 0x20]
lea rdx, [rcx + rcx*2]
lea r12, [rax + rdx*4]
jmp 0x18005b5c0
mov eax, dword [r12 + 4]
mov edx, dword [rdi + 0x3c]
inc eax
cmp edx, eax
jbe 0x18005b56a
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
and dword [rsp + 0x20], 0
dec ecx
mov dword [rax + 0x64], ecx
movzx edx, byte [r12 + 8]
mov r9d, dword [r12 + 4]
mov r8d, dword [r12]
mov rcx, rdi
call fcn.18001eb5c
mov r11d, dword [r12 + 4]
mov edx, dword [rdi + 0x3c]
dec r11d
cmp edx, r11d
jbe 0x18005b5ae
mov rax, qword [rdi + 8]
lea rcx, [r11 + r11*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ebp
dec ecx
sub r12, 0xc
mov dword [rax + 0x64], ecx
test ebp, ebp
jg 0x18005b550
mov rdx, qword [rbx + 0x20]
mov rcx, r15
call fcn.180005a84
mov edx, dword [rbx - 0xc]
mov rcx, rdi
call fcn.18001ecf8
mov r9d, dword [rbx - 4]
test r9d, r9d
je 0x18005b63e
and dword [rsp + 0x20], 0
xor r8d, r8d
lea edx, [r8 + 0x10]
call fcn.18001eb5c
mov edx, dword [rdi + 0x3c]
cmp edx, dword [rbx - 4]
jbe 0x18005b60c
mov eax, dword [rbx - 4]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov eax, dword [rbx - 4]
sub eax, 2
cmp dword [rdi + 0x3c], eax
jbe 0x18005b632
mov rcx, qword [rdi + 8]
lea rdx, [rax + rax*2]
mov eax, dword [rdi + 0x3c]
mov dword [rcx + rdx*8 + 8], eax
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov r8d, dword [rbx - 0x18]
test r8d, r8d
je 0x18005b6ed
and dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x87
mov rcx, rdi
call fcn.18001eb5c
xor r12d, r12d
test byte [r13 + 0x28], 0x40
mov ebp, eax
jne 0x18005b684
mov r8d, dword [r14]
lea edx, [r12 + 0x66]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call fcn.18001eb5c
bt dword [r13 + 0x28], 9
jae 0x18005b6a4
mov r8d, dword [rbx - 0x10]
xor r9d, r9d
mov rcx, rdi
lea edx, [r9 + 0x66]
mov dword [rsp + 0x20], r12d
call fcn.18001eb5c
cmp byte [rbx + 0xd], 0x12
mov r9d, dword [rbx + 4]
mov dword [rsp + 0x20], r12d
mov rcx, rdi
jne 0x18005b6c1
mov r8d, dword [rbx + 0x10]
mov edx, 0x11
jmp 0x18005b6c8
xor r8d, r8d
lea edx, [r8 + 0x10]
call fcn.18001eb5c
mov edx, dword [rdi + 0x3c]
cmp edx, ebp
jbe 0x18005b6e1
mov rax, qword [rdi + 8]
lea rcx, [rbp + rbp*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
sub rbx, 0x50
sub r14, 0x78
sub rsi, 1
jns 0x18005b4d2
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov edx, dword [r15 + 0x44]
mov rcx, rdi
call fcn.18001ecf8
xor r13d, r13d
cmp byte [r15 + 0x39], r13b
jbe 0x18005b94a
mov r14, qword [rsp + 0x98]
lea rbp, [r15 + 0x380]
movzx r11d, byte [rbp - 0x1c]
mov rsi, qword [rbp]
imul r11, r11, 0x78
test byte [r11 + r14 + 0x48], 4
mov r12, qword [r11 + r14 + 0x28]
je 0x18005b7d0
cmp byte [rbx + 0x50], 0
jne 0x18005b7d0
mov edx, dword [rbp - 0x20]
mov r10d, dword [rdi + 0x3c]
mov rcx, rdi
call fcn.18001f240
cmp dword [rbp - 0x20], r10d
mov r9, rax
jge 0x18005b92d
sub r10d, dword [rbp - 0x20]
xor r12d, r12d
mov edx, r10d
mov ecx, dword [rbp - 0x3c]
cmp dword [r9 + 4], ecx
jne 0x18005b7c1
cmp byte [r9], 0x2e
jne 0x18005b7af
mov byte [r9], 0x21
mov eax, dword [r11 + r14 + 0x40]
add eax, dword [r9 + 8]
mov dword [r9 + 4], eax
mov eax, dword [r9 + 0xc]
mov dword [r9 + 8], eax
jmp 0x18005b7bd
cmp byte [r9], 0x65
jne 0x18005b7c1
mov byte [r9], 0x1c
mov dword [r9 + 4], r12d
mov dword [r9 + 0xc], r12d
add r9, 0x18
sub rdx, 1
jne 0x18005b785
jmp 0x18005b92d
test byte [r12 + 0x48], 2
jne 0x18005b83b
cmp qword [r12 + 0x18], 0
jne 0x18005b83b
test byte [r15 + 0x32], 0x10
jne 0x18005b83b
cmp byte [r15 + 0x36], 0
mov ebx, dword [rsi + 0x28]
jne 0x18005b80f
test bl, 0x40
jne 0x18005b80f
mov r8d, dword [r11 + r14 + 0x50]
and dword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 0x3b]
mov rcx, rdi
call fcn.18001eb5c
bt ebx, 9
jae 0x18005b83b
test ebx, 0x4100
jne 0x18005b83b
mov r8d, dword [rbp - 0x38]
cmp r8d, dword [r15 + 0x50]
je 0x18005b83b
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rdi
lea edx, [r9 + 0x3b]
call fcn.18001eb5c
test dword [rsi + 0x28], 0x240
je 0x18005b84a
mov r11, qword [rsi + 0x20]
jmp 0x18005b859
bt dword [rsi + 0x28], 0xd
jae 0x18005b925
mov r11, qword [rbp - 0x10]
mov rbx, qword [rsp + 0x88]
test r11, r11
je 0x18005b92d
cmp byte [rbx + 0x50], 0
jne 0x18005b92d
mov edx, dword [rbp - 0x20]
mov r9d, dword [rdi + 0x3c]
mov rcx, rdi
call fcn.18001f240
cmp dword [rbp - 0x20], r9d
mov r10, rax
jge 0x18005b92d
sub r9d, dword [rbp - 0x20]
mov ebx, r9d
mov ecx, dword [rbp - 0x3c]
cmp dword [r10 + 4], ecx
jne 0x18005b917
cmp byte [r10], 0x2e
jne 0x18005b906
test byte [r12 + 0x48], 0x20
movsxd r9, dword [r10 + 8]
je 0x18005b8d4
mov rdx, qword [r12 + 0x10]
jmp 0x18005b8c6
mov eax, dword [rdx + 0x64]
and al, 3
cmp al, 2
je 0x18005b8cb
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x18005b8b9
mov rax, qword [rdx + 8]
movsx r9d, word [rax + r9*2]
movzx edx, word [r11 + 0x60]
xor ecx, ecx
test edx, edx
jle 0x18005b8f3
mov r8, qword [r11 + 8]
movsxd rax, ecx
cmp r9w, word [r8 + rax*2]
je 0x18005b8f6
inc ecx
cmp ecx, edx
jl 0x18005b8e3
or ecx, 0xffffffff
movsx eax, cx
test eax, eax
js 0x18005b917
mov dword [r10 + 8], eax
mov eax, dword [rbp - 0x38]
jmp 0x18005b913
cmp byte [r10], 0x65
jne 0x18005b917
mov eax, dword [rbp - 0x38]
mov byte [r10], 0x6e
mov dword [r10 + 4], eax
add r10, 0x18
sub rbx, 1
jne 0x18005b897
mov rbx, qword [rsp + 0x88]
movzx eax, byte [r15 + 0x39]
inc r13d
add rbp, 0x50
cmp r13d, eax
jl 0x18005b73f
mov r14, qword [rsp + 0x90]
mov eax, dword [r15 + 0x48]
mov rdx, r15
mov rcx, rbx
mov dword [r14 + 0x1d8], eax
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.180058148