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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r13d, r13d
mov edi, r9d
mov dword [rsp + 0x38], r13d
mov rbx, r8
mov dword [rsp + 0x30], r13d
mov rbp, rdx
mov r14, rcx
mov r12d, r13d
test r8, r8
je 0x18005b9a9
cmp qword [rcx + 0x280], r12
jne 0x18005b9a9
cmp qword [r8 + 0x70], r12
jne 0x18005b9a9
call fcn.18006e020
test rax, rax
jne 0x18005b9a9
test byte [rbp + 0x48], 0x10
jne 0x18005b9a9
cmp edi, 0xa
jne 0x18005b714
cmp word [rbp + 0x40], r12w
jl 0x18005b709
movzx edi, byte [rbp + 0x49]
mov dword [rsp + 0xa8], edi
cmp edi, 0xa
jne 0x18005b714
mov dword [rsp + 0xa8], 2
mov r10, qword [rbx + 0x28]
cmp dword [r10], 1
jne 0x18005b9a9
cmp qword [r10 + 0x30], r12
jne 0x18005b9a9
cmp qword [rbx + 0x30], r12
jne 0x18005b9a9
cmp qword [rbx + 0x48], r12
jne 0x18005b9a9
cmp qword [rbx + 0x38], r12
jne 0x18005b9a9
cmp qword [rbx + 0x60], r12
jne 0x18005b9a9
cmp qword [rbx + 0x50], r12
jne 0x18005b9a9
test byte [rbx + 0xa], 1
jne 0x18005b9a9
mov rax, qword [rbx]
cmp dword [rax], 1
jne 0x18005b9a9
mov rax, qword [rax + 8]
mov rcx, qword [rax]
cmp byte [rcx], 0x74
jne 0x18005b9a9
mov r8, qword [r10 + 8]
test r8, r8
je 0x18005b7d4
mov r11, qword [r14]
mov edx, r13d
movsxd rax, dword [r11 + 0x28]
test eax, eax
jle 0x18005b7c3
mov r9, rax
mov rcx, r13
mov rax, qword [r11 + 0x20]
add rax, 0x18
nop dword [rax]
cmp qword [rax], r8
je 0x18005b7c3
inc edx
inc rcx
add rax, 0x20
cmp rcx, r9
jl 0x18005b7b0
mov rax, qword [r11 + 0x20]
movsxd rcx, edx
shl rcx, 5
mov r9, qword [rcx + rax]
jmp 0x18005b7d8
mov r9, qword [r10 + 0x10]
mov r8, qword [r10 + 0x18]
xor edx, edx
mov rcx, r14
call fcn.180046460
mov qword [rsp + 0x40], rax
mov rsi, rax
test rax, rax
je 0x18005b9a9
cmp rax, rbp
je 0x18005b9a9
movzx r8d, byte [rax + 0x48]
movzx edx, byte [rbp + 0x48]
mov ecx, r8d
shr edx, 5
shr ecx, 5
not edx
not ecx
xor edx, ecx
test dl, 1
jne 0x18005b9a9
test r8b, 0x10
jne 0x18005b9a9
cmp qword [rax + 0x18], r12
jne 0x18005b9a9
movsx rcx, word [rbp + 0x42]
cmp cx, word [rax + 0x42]
jne 0x18005b9a9
movzx eax, word [rax + 0x40]
cmp word [rbp + 0x40], ax
jne 0x18005b9a9
cmp r13w, cx
jge 0x18005b96b
mov r10, qword [rbp + 8]
lea r15, [0x180111820]
mov r11, qword [rsi + 8]
add r10, 0x10
add r11, 0x10
mov rdi, rcx
mov rbx, r13
nop dword [rax]
movzx eax, byte [r11 + 0x19]
cmp byte [r10 + 0x19], al
jne 0x18005b9a9
mov r9, qword [r10 + 0x10]
mov rax, qword [r11 + 0x10]
test r9, r9
jne 0x18005b8a1
test rax, rax
jmp 0x18005b8f6
test rax, rax
je 0x18005b9a9
movzx r8d, byte [r9]
test r8b, r8b
je 0x18005b8e6
movzx edx, r8b
sub r9, rax
nop word [rax + rax]
movzx ecx, byte [rax]
movzx r8d, dl
movzx edx, dl
movzx ecx, byte [rcx + r15]
cmp byte [rdx + r15], cl
jne 0x18005b8e6
movzx edx, byte [r9 + rax + 1]
inc rax
movzx r8d, dl
test dl, dl
jne 0x18005b8c0
movzx edx, byte [rax]
movzx ecx, r8b
movzx eax, byte [rdx + r15]
cmp byte [rcx + r15], al
mov r8d, r13d
sete r8b
test r8d, r8d
je 0x18005b9a9
cmp byte [r10 + 0x18], r12b
je 0x18005b916
cmp byte [r11 + 0x18], r12b
je 0x18005b9a9
test rbx, rbx
jle 0x18005b957
mov rdx, qword [r10]
mov ecx, r13d
mov r8, qword [r11]
test rdx, rdx
mov eax, r13d
sete cl
test r8, r8
sete al
cmp ecx, eax
jne 0x18005b9a9
test rdx, rdx
je 0x18005b957
sub r8, rdx
nop
movzx ecx, byte [rdx]
movzx eax, byte [rdx + r8]
sub ecx, eax
jne 0x18005b953
inc rdx
test eax, eax
jne 0x18005b940
test ecx, ecx
jne 0x18005b9a9
inc rbx
add r10, 0x30
add r11, 0x30
cmp rbx, rdi
jl 0x18005b880
mov rdi, qword [rbp + 0x10]
mov eax, 1
test rdi, rdi
je 0x18005b9d1
nop dword [rax]
cmp byte [rdi + 0x62], r13b
mov rbx, qword [rsi + 0x10]
cmovne r12d, eax
test rbx, rbx
je 0x18005b9a9
mov rdx, rbx
mov rcx, rdi
call fcn.18005b530
test eax, eax
jne 0x18005b9c3
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18005b991
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rdi + 0x28]
mov eax, 1
test rdi, rdi
jne 0x18005b980
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x18005b9ed
mov rcx, qword [rsi + 0x30]
mov r8d, 0xffffffff
call fcn.180040b50
test eax, eax
jne 0x18005b9a9
mov rax, qword [r14]
mov ecx, dword [rax + 0x2c]
bt ecx, 0x13
jae 0x18005b9ff
cmp qword [rbp + 0x20], r13
jne 0x18005b9a9
test cl, cl
js 0x18005b9a9
mov rdx, qword [rsi + 0x70]
mov r15d, 0xfff0bdc0
test rdx, rdx
je 0x18005ba44
movsxd rcx, dword [rax + 0x28]
mov r15d, r13d
test ecx, ecx
jle 0x18005ba44
mov rax, qword [rax + 0x20]
mov r8, rcx
add rax, 0x18
mov rcx, r13
nop dword [rax + rax]
cmp qword [rax], rdx
je 0x18005ba44
inc r15d
inc rcx
add rax, 0x20
cmp rcx, r8
jl 0x18005ba30
mov rsi, qword [r14 + 0x10]
test rsi, rsi
jne 0x18005ba90
mov rcx, r14
call fcn.180026410
mov qword [r14 + 0x10], rax
mov rsi, rax
test rax, rax
je 0x18005ba79
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.180026570
cmp qword [r14 + 0x1c0], r13
jne 0x18005ba90
mov rax, qword [r14]
test byte [rax + 0x4c], 8
jne 0x18005ba90
mov byte [r14 + 0x23], 1
mov rax, qword [r14 + 0x1c0]
mov rcx, r14
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x16c]
bt eax, r15d
jb 0x18005bae2
bts eax, r15d
movsxd r8, r15d
mov dword [rcx + 0x16c], eax
mov rdx, r8
mov rax, qword [rcx]
shl rdx, 5
mov rax, qword [rax + 0x20]
mov rdx, qword [rax + rdx + 0x18]
mov eax, dword [rdx]
mov dword [rcx + r8*4 + 0x170], eax
cmp r15d, 1
jne 0x18005bae2
call fcn.18004d290
mov r13d, dword [r14 + 0x50]
mov r8, rbp
mov edx, dword [rsp + 0xb0]
mov rcx, r14
lea edi, [r13 + 1]
lea eax, [rdi + 1]
mov dword [r14 + 0x50], eax
call fcn.180057d50
movzx ecx, byte [r14 + 0x1f]
mov dword [rsp + 0x3c], eax
test cl, cl
jne 0x18005bb29
inc dword [r14 + 0x54]
mov ecx, dword [r14 + 0x54]
inc dword [r14 + 0x54]
mov ebx, dword [r14 + 0x54]
mov dword [rsp + 0xa0], ecx
jmp 0x18005bb5a
dec cl
movzx eax, cl
mov byte [r14 + 0x1f], al
mov ecx, dword [r14 + rax*4 + 0x24]
mov dword [rsp + 0xa0], ecx
test al, al
jne 0x18005bb4c
inc dword [r14 + 0x54]
mov ebx, dword [r14 + 0x54]
jmp 0x18005bb5a
dec al
movzx eax, al
mov byte [r14 + 0x1f], al
mov ebx, dword [r14 + rax*4 + 0x24]
mov r8d, dword [rsp + 0xb0]
mov r9, rbp
mov edx, edi
mov dword [rsp + 0x34], ebx
mov rcx, r14
mov dword [rsp + 0x20], 0x37
call fcn.180057a40
cmp word [rbp + 0x40], 0
jge 0x18005bb89
cmp qword [rbp + 0x10], 0
jne 0x18005bb9c
test r12d, r12d
jne 0x18005bb9c
mov eax, dword [rsp + 0xa8]
dec eax
cmp eax, 1
jbe 0x18005bc00
xor r12d, r12d
xor r9d, r9d
mov r8d, edi
mov dword [rsp + 0x20], r12d
mov rcx, rsi
lea edx, [r12 + 0x6c]
call fcn.180026570
xor r9d, r9d
mov edi, eax
xor r8d, r8d
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 0x10]
mov rcx, rsi
call fcn.180026570
mov r8d, dword [rsi + 0x3c]
mov dword [rsp + 0x38], eax
cmp r8d, edi
jbe 0x18005bbef
mov rcx, qword [rsi + 8]
lea rdx, [rdi + rdi*2]
mov dword [rcx + rdx*8 + 8], r8d
mov r8d, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [r8 - 1]
lea edi, [r13 + 1]
mov dword [rax + 0x64], ecx
jmp 0x18005bc03
xor r12d, r12d
mov r9, qword [rsp + 0x40]
mov rcx, r14
test byte [r9 + 0x48], 0x20
jne 0x18005bda9
mov r8d, r15d
mov dword [rsp + 0x20], 0x36
mov edx, r13d
call fcn.180057a40
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, r13d
mov rcx, rsi
lea edx, [r9 + 0x6c]
call fcn.180026570
cmp word [rbp + 0x40], 0
mov r9d, ebx
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov dword [rsp + 0x20], r12d
jl 0x18005bcdc
mov r8d, r13d
mov edx, 0x67
call fcn.180026570
xor r9d, r9d
mov dword [rsp + 0x20], ebx
lea r8d, [r13 + 1]
mov rcx, rsi
mov edi, eax
lea edx, [r9 + 0x46]
call fcn.180026570
mov edx, dword [rsp + 0xa8]
mov r8, rbp
mov rcx, r14
mov r12d, eax
call fcn.18004d8e0
mov edx, dword [rsi + 0x3c]
cmp edx, r12d
jbe 0x18005bcac
mov rax, qword [rsi + 8]
lea rcx, [r12 + r12*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
xor r12d, r12d
mov dword [rax + 0x64], ecx
mov eax, dword [rsp + 0x3c]
test eax, eax
jle 0x18005bcfc
mov rcx, qword [r14 + 0x10]
mov r9d, ebx
mov r8d, eax
mov dword [rsp + 0x20], r12d
mov edx, 0x88
call fcn.180026570
jmp 0x18005bcfc
cmp qword [rbp + 0x10], 0
jne 0x18005bced
mov r8d, edi
mov edx, 0x4a
jmp 0x18005bcf5
mov r8d, r13d
mov edx, 0x67
call fcn.180026570
mov edi, eax
mov dword [rsp + 0x20], r12d
mov r8d, r13d
mov r12d, dword [rsp + 0xa0]
mov edx, 0x66
mov r9d, r12d
mov rcx, rsi
call fcn.180026570
mov r9d, r12d
mov dword [rsp + 0x20], ebx
lea r8d, [r13 + 1]
mov edx, 0x4b
mov rcx, rsi
call fcn.180026570
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x18005bd4a
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 0xb
mov r8, qword [rbp]
xor r9d, r9d
mov rcx, rsi
lea edx, [r9 - 1]
call fcn.180026b50
xor ebx, ebx
mov r9d, edi
mov r8d, r13d
mov dword [rsp + 0x20], ebx
mov rcx, rsi
lea edx, [rbx + 9]
call fcn.180026570
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, r13d
lea edx, [rbx + 0x3d]
mov rcx, rsi
call fcn.180026570
lea edi, [r13 + 1]
mov dword [rsp + 0x20], ebx
mov r8d, edi
lea edx, [rbx + 0x3d]
xor r9d, r9d
mov rcx, rsi
call fcn.180026570
mov rbx, qword [rsp + 0x40]
jmp 0x18005bdec
mov rax, qword [rbp]
mov r9b, 1
mov r8d, dword [rbp + 0x3c]
mov edx, dword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call fcn.180045b90
mov rbx, qword [rsp + 0x40]
xor r9d, r9d
mov edx, r15d
mov rcx, r14
mov rax, qword [rbx]
mov r8d, dword [rbx + 0x3c]
mov qword [rsp + 0x20], rax
call fcn.180045b90
mov r12d, dword [rsp + 0xa0]
mov rbp, qword [rbp + 0x10]
test rbp, rbp
je 0x18005bf8c
nop dword [rax]
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x18005be28
nop dword [rax]
mov rdx, rdi
mov rcx, rbp
call fcn.18005b530
test eax, eax
jne 0x18005be28
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x18005be10
mov r9d, dword [rdi + 0x58]
mov r8d, r13d
mov edx, 0x36
mov dword [rsp + 0x20], r15d
mov rcx, rsi
call fcn.180026570
mov rbx, qword [r14 + 0x10]
mov rdx, rdi
mov rcx, r14
call fcn.18004e060
mov edx, 0xffffffff
mov r8, rax
mov rcx, rbx
lea r9d, [rdx - 5]
call fcn.180026b50
mov eax, dword [rsp + 0xb0]
lea edi, [r13 + 1]
mov r9d, dword [rbp + 0x58]
mov r8d, edi
mov edx, 0x37
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.180026570
mov rbx, qword [r14 + 0x10]
mov rdx, rbp
mov rcx, r14
call fcn.18004e060
mov edx, 0xffffffff
mov r8, rax
mov rcx, rbx
lea r9d, [rdx - 5]
call fcn.180026b50
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x18005bec0
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, r13d
mov rcx, rsi
lea edx, [r9 + 0x6c]
call fcn.180026570
mov r9d, r12d
mov ebx, eax
mov r8d, r13d
mov dword [rsp + 0x20], 0
mov edx, 0x65
mov rcx, rsi
call fcn.180026570
mov r9d, r12d
mov dword [rsp + 0x20], 1
mov r8d, edi
mov edx, 0x6e
mov rcx, rsi
call fcn.180026570
lea r9d, [rbx + 1]
mov dword [rsp + 0x20], 0
mov r8d, r13d
mov edx, 9
mov rcx, rsi
call fcn.180026570
mov edx, dword [rsi + 0x3c]
cmp edx, ebx
jbe 0x18005bf44
mov rax, qword [rsi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
xor ebx, ebx
xor r9d, r9d
mov r8d, r13d
mov dword [rsp + 0x20], ebx
mov dword [rax + 0x64], ecx
mov rcx, rsi
lea edx, [rbx + 0x3d]
call fcn.180026570
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, edi
lea edx, [rbx + 0x3d]
mov rcx, rsi
call fcn.180026570
mov rbp, qword [rbp + 0x28]
mov rbx, qword [rsp + 0x40]
test rbp, rbp
jne 0x18005be00
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18005bfb4
mov edx, dword [rsi + 0x3c]
cmp edx, eax
jbe 0x18005bfaa
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
mov r8d, dword [rsp + 0x34]
test r8d, r8d
je 0x18005bff1
movzx edx, byte [r14 + 0x1f]
cmp dl, 8
jae 0x18005bff1
xor ecx, ecx
lea rax, [r14 + 0x88]
cmp dword [rax + 0xc], r8d
je 0x18005bfed
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18005bfd1
mov dword [r14 + rdx*4 + 0x24], r8d
inc byte [r14 + 0x1f]
jmp 0x18005bff1
mov byte [rax + 6], 1
test r12d, r12d
je 0x18005c030
movzx edx, byte [r14 + 0x1f]
cmp dl, 8
jae 0x18005c030
xor ecx, ecx
lea rax, [r14 + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], r12d
je 0x18005c02c
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18005c010
mov dword [r14 + rdx*4 + 0x24], r12d
inc byte [r14 + 0x1f]
jmp 0x18005c030
mov byte [rax + 6], 1
mov ebx, dword [rsp + 0x38]
test ebx, ebx
je 0x18005c094
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x18]
call fcn.180026570
mov ecx, dword [rsi + 0x3c]
cmp ecx, ebx
jbe 0x18005c069
mov rax, qword [rsi + 8]
lea r9, [rbx + rbx*2]
mov dword [rax + r9*8 + 8], ecx
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea r9d, [rcx - 1]
mov r8d, edi
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov dword [rax + 0x64], r9d
xor r9d, r9d
lea edx, [r9 + 0x3d]
call fcn.180026570
jmp 0x18005b9a9
mov eax, 1
jmp 0x18005b9ab