Function at 0x18005b870
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 + 0x44], r13d
mov rbx, r8
mov dword [rsp + 0x40], r13d
mov r15, rdx
mov rsi, rcx
mov r14d, r13d
test r8, r8
je 0x18005bb99
cmp qword [rcx + 0x280], r13
jne 0x18005bb99
cmp qword [r8 + 0x70], r13
jne 0x18005bb99
call fcn.18006e770
test rax, rax
jne 0x18005bb99
test byte [r15 + 0x48], 0x10
jne 0x18005bb99
cmp edi, 0xa
jne 0x18005b906
cmp word [r15 + 0x40], r13w
jl 0x18005b8fb
movzx edi, byte [r15 + 0x49]
mov dword [rsp + 0xa8], edi
cmp edi, 0xa
jne 0x18005b906
mov dword [rsp + 0xa8], 2
mov r10, qword [rbx + 0x28]
cmp dword [r10], 1
jne 0x18005bb99
cmp qword [r10 + 0x30], r13
jne 0x18005bb99
cmp qword [rbx + 0x30], r13
jne 0x18005bb99
cmp qword [rbx + 0x48], r13
jne 0x18005bb99
cmp qword [rbx + 0x38], r13
jne 0x18005bb99
cmp qword [rbx + 0x60], r13
jne 0x18005bb99
cmp qword [rbx + 0x50], r13
jne 0x18005bb99
test byte [rbx + 0xa], 1
jne 0x18005bb99
mov rax, qword [rbx]
cmp dword [rax], 1
jne 0x18005bb99
mov rax, qword [rax + 8]
mov rcx, qword [rax]
cmp byte [rcx], 0x74
jne 0x18005bb99
mov r8, qword [r10 + 8]
test r8, r8
je 0x18005b9c4
mov r11, qword [rsi]
mov edx, r13d
movsxd rax, dword [r11 + 0x28]
test eax, eax
jle 0x18005b9b3
mov r9, rax
mov rcx, r13
mov rax, qword [r11 + 0x20]
add rax, 0x18
nop dword [rax + rax]
cmp qword [rax], r8
je 0x18005b9b3
inc edx
inc rcx
add rax, 0x20
cmp rcx, r9
jl 0x18005b9a0
mov rax, qword [r11 + 0x20]
movsxd rcx, edx
shl rcx, 5
mov r9, qword [rcx + rax]
jmp 0x18005b9c8
mov r9, qword [r10 + 0x10]
mov r8, qword [r10 + 0x18]
xor edx, edx
mov rcx, rsi
call fcn.180046000
mov qword [rsp + 0x48], rax
mov rbp, rax
test rax, rax
je 0x18005bb99
cmp rax, r15
je 0x18005bb99
movzx r8d, byte [rax + 0x48]
movzx ecx, byte [r15 + 0x48]
mov edx, r8d
shr edx, 5
shr ecx, 5
not edx
not ecx
xor edx, ecx
test dl, 1
jne 0x18005bb99
test r8b, 0x10
jne 0x18005bb99
cmp qword [rax + 0x18], r13
jne 0x18005bb99
movsx rcx, word [r15 + 0x42]
cmp cx, word [rax + 0x42]
jne 0x18005bb99
movzx eax, word [rax + 0x40]
cmp word [r15 + 0x40], ax
jne 0x18005bb99
cmp r13w, cx
jge 0x18005bb5b
mov r10, qword [r15 + 8]
lea r12, [0x1801103d0]
mov r11, qword [rbp + 8]
add r10, 0x10
add r11, 0x10
mov rdi, rcx
mov rbx, r13
nop dword [rax + rax]
movzx eax, byte [r11 + 0x19]
cmp byte [r10 + 0x19], al
jne 0x18005bb99
mov r9, qword [r10 + 0x10]
mov rax, qword [r11 + 0x10]
test r9, r9
jne 0x18005ba91
test rax, rax
jmp 0x18005bae6
test rax, rax
je 0x18005bb99
movzx r8d, byte [r9]
test r8b, r8b
je 0x18005bad6
movzx ecx, r8b
sub r9, rax
nop word [rax + rax]
movzx edx, cl
movzx r8d, cl
movzx ecx, byte [rax]
movzx ecx, byte [rcx + r12]
cmp byte [rdx + r12], cl
jne 0x18005bad6
movzx ecx, byte [rax + r9 + 1]
inc rax
movzx r8d, cl
test cl, cl
jne 0x18005bab0
movzx ecx, byte [rax]
movzx edx, r8b
movzx eax, byte [rcx + r12]
cmp byte [rdx + r12], al
mov r8d, r13d
sete r8b
test r8d, r8d
je 0x18005bb99
cmp byte [r10 + 0x18], r13b
je 0x18005bb06
cmp byte [r11 + 0x18], r13b
je 0x18005bb99
test rbx, rbx
jle 0x18005bb47
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 0x18005bb99
test rdx, rdx
je 0x18005bb47
sub r8, rdx
nop
movzx ecx, byte [rdx]
movzx eax, byte [rdx + r8]
sub ecx, eax
jne 0x18005bb43
inc rdx
test eax, eax
jne 0x18005bb30
test ecx, ecx
jne 0x18005bb99
inc rbx
add r10, 0x30
add r11, 0x30
cmp rbx, rdi
jl 0x18005ba70
mov rdi, qword [r15 + 0x10]
mov eax, 1
test rdi, rdi
je 0x18005bbc1
nop dword [rax]
cmp byte [rdi + 0x62], r13b
mov rbx, qword [rbp + 0x10]
cmovne r14d, eax
test rbx, rbx
je 0x18005bb99
mov rdx, rbx
mov rcx, rdi
call fcn.18005b720
test eax, eax
jne 0x18005bbb3
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18005bb81
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 0x18005bb70
mov rdx, qword [r15 + 0x30]
test rdx, rdx
je 0x18005bbdd
mov rcx, qword [rbp + 0x30]
mov r8d, 0xffffffff
call fcn.180040580
test eax, eax
jne 0x18005bb99
mov rax, qword [rsi]
mov ecx, dword [rax + 0x2c]
bt ecx, 0x13
jae 0x18005bbef
cmp qword [r15 + 0x20], r13
jne 0x18005bb99
test cl, cl
js 0x18005bb99
mov rdx, qword [rbp + 0x70]
mov r12d, 0xfff0bdc0
mov dword [rsp + 0x34], r12d
test rdx, rdx
je 0x18005bc3e
movsxd rcx, dword [rax + 0x28]
mov r12d, r13d
mov dword [rsp + 0x34], r13d
test ecx, ecx
jle 0x18005bc3e
mov rax, qword [rax + 0x20]
mov r8, rcx
add rax, 0x18
mov rcx, r13
cmp qword [rax], rdx
je 0x18005bc39
inc r12d
inc rcx
add rax, 0x20
cmp rcx, r8
jl 0x18005bc25
mov dword [rsp + 0x34], r12d
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x18005bc89
mov rcx, rsi
call fcn.180025fc0
mov qword [rsi + 0x10], rax
mov rdi, rax
test rax, rax
je 0x18005bc73
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov edx, 0x99
mov rcx, rax
call fcn.180026120
cmp qword [rsi + 0x1c0], r13
jne 0x18005bc89
mov rax, qword [rsi]
test byte [rax + 0x4c], 8
jne 0x18005bc89
mov byte [rsi + 0x23], 1
mov rax, qword [rsi + 0x1c0]
mov rcx, rsi
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x16c]
bt eax, r12d
jb 0x18005bcdb
bts eax, r12d
movsxd r9, r12d
mov dword [rcx + 0x16c], eax
mov r8, r9
mov rax, qword [rcx]
shl r8, 5
mov rdx, qword [rax + 0x20]
mov rax, qword [r8 + rdx + 0x18]
mov edx, dword [rax]
mov dword [rcx + r9*4 + 0x170], edx
cmp r12d, 1
jne 0x18005bcdb
call fcn.18004cf80
mov ebx, dword [rsi + 0x50]
mov r8, r15
mov edx, dword [rsp + 0xb0]
mov rcx, rsi
mov dword [rsp + 0xa0], ebx
lea eax, [rbx + 1]
mov dword [rsp + 0x3c], eax
inc eax
mov dword [rsi + 0x50], eax
call fcn.180057d70
movzx ecx, byte [rsi + 0x1f]
mov ebp, eax
test cl, cl
jne 0x18005bd20
inc dword [rsi + 0x54]
mov ecx, dword [rsi + 0x54]
inc dword [rsi + 0x54]
mov r13d, dword [rsi + 0x54]
mov dword [rsp + 0x30], ecx
jmp 0x18005bd4a
dec cl
movzx eax, cl
mov byte [rsi + 0x1f], al
mov ecx, dword [rsi + rax*4 + 0x24]
mov dword [rsp + 0x30], ecx
test al, al
jne 0x18005bd3d
inc dword [rsi + 0x54]
mov r13d, dword [rsi + 0x54]
jmp 0x18005bd4a
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov r13d, dword [rsi + rax*4 + 0x24]
mov r8d, dword [rsp + 0xb0]
lea edx, [rbx + 1]
mov r9, r15
mov dword [rsp + 0x38], r13d
mov rcx, rsi
mov dword [rsp + 0x20], 0x37
call fcn.1800579d0
cmp word [r15 + 0x40], 0
jge 0x18005bd7c
cmp qword [r15 + 0x10], 0
jne 0x18005bd8f
test r14d, r14d
jne 0x18005bd8f
mov eax, dword [rsp + 0xa8]
dec eax
cmp eax, 1
jbe 0x18005bdfc
mov r14d, dword [rsp + 0x3c]
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x20], 0
mov rcx, rdi
lea edx, [r9 + 0x6c]
call fcn.180026120
xor r9d, r9d
mov ebx, eax
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov rcx, rdi
lea edx, [r9 + 0x10]
call fcn.180026120
mov r8d, dword [rdi + 0x3c]
mov dword [rsp + 0x44], eax
cmp r8d, ebx
jbe 0x18005bde8
mov rcx, qword [rdi + 8]
lea rdx, [rbx + rbx*2]
mov dword [rcx + rdx*8 + 8], r8d
mov r8d, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [r8 - 1]
mov ebx, dword [rsp + 0xa0]
mov dword [rax + 0x64], ecx
jmp 0x18005be00
lea r14d, [rbx + 1]
mov r9, qword [rsp + 0x48]
mov rcx, rsi
test byte [r9 + 0x48], 0x20
jne 0x18005c05e
mov r8d, r12d
mov dword [rsp + 0x20], 0x36
mov edx, ebx
call fcn.1800579d0
xor r12d, r12d
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x20], r12d
mov rcx, rdi
lea edx, [r12 + 0x6c]
call fcn.180026120
mov r9d, r13d
mov dword [rsp + 0x40], eax
mov rcx, rdi
mov dword [rsp + 0x20], r12d
cmp word [r15 + 0x40], r12w
jl 0x18005bf77
mov r8d, ebx
lea edx, [r12 + 0x67]
call fcn.180026120
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov r8d, r14d
mov rcx, rdi
mov r12d, eax
lea edx, [r9 + 0x46]
call fcn.180026120
mov edx, dword [rsp + 0xa8]
mov r8, r15
mov rcx, rsi
mov ebx, eax
call fcn.18004d5d0
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x18005beab
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
test ebp, ebp
jle 0x18005bed5
mov rcx, qword [rsi + 0x10]
mov r9d, r13d
mov r8d, ebp
mov dword [rsp + 0x20], 0
mov edx, 0x88
call fcn.180026120
mov ebx, dword [rsp + 0xa0]
mov r9d, dword [rsp + 0x30]
mov r8d, ebx
mov edx, 0x66
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.180026120
mov r9d, dword [rsp + 0x30]
mov r8d, r14d
mov edx, 0x4b
mov dword [rsp + 0x20], r13d
mov rcx, rdi
call fcn.180026120
mov r8, qword [rdi + 8]
test r8, r8
je 0x18005bf2e
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [r8 + rcx*8 - 0x15], 0xb
mov r8, qword [rdi + 8]
mov rbx, qword [r15]
mov rcx, qword [rdi]
test r8, r8
je 0x18005bffd
cmp byte [rcx + 0x50], 0
jne 0x18005bffd
movsxd rax, dword [rdi + 0x3c]
lea rdx, [rax + rax*2]
lea rbp, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 - 0x17]
mov r8, qword [rbp - 8]
call fcn.1800264a0
mov qword [rbp - 8], 0
test rbx, rbx
jne 0x18005bfa7
mov byte [rbp - 0x17], bl
jmp 0x18005c007
cmp qword [r15 + 0x10], r12
jne 0x18005bf92
mov r8d, r14d
mov edx, 0x4a
call fcn.180026120
mov r12d, eax
jmp 0x18005bedc
mov r8d, ebx
mov edx, 0x67
call fcn.180026120
mov r12d, eax
jmp 0x18005bedc
cmp byte [rbx], 0
mov rax, rbx
je 0x18005bfb8
nop
inc rax
cmp byte [rax], 0
jne 0x18005bfb0
mov rcx, qword [rdi]
sub eax, ebx
and eax, 0x3fffffff
mov r13d, eax
lea rdx, [rax + 1]
call fcn.1800059e0
mov r14, rax
test rax, rax
je 0x18005bfe9
mov r8d, r13d
mov rdx, rbx
mov rcx, rax
call fcn.1800cef60
mov byte [r14 + r13], 0
mov r13d, dword [rsp + 0x38]
mov qword [rbp - 8], r14
mov r14d, dword [rsp + 0x3c]
mov byte [rbp - 0x17], 0xff
jmp 0x18005c007
mov r8, rbx
xor edx, edx
call fcn.1800264a0
mov r8d, dword [rsp + 0xa0]
xor ebp, ebp
mov r9d, r12d
mov dword [rsp + 0x20], ebp
mov rcx, rdi
lea edx, [rbp + 9]
call fcn.180026120
mov r8d, dword [rsp + 0xa0]
lea edx, [rbp + 0x3d]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov rcx, rdi
call fcn.180026120
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov r8d, r14d
lea edx, [rbp + 0x3d]
mov rcx, rdi
call fcn.180026120
mov r12d, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x48]
jmp 0x18005c098
mov rax, qword [r15]
mov r9b, 1
mov r8d, dword [r15 + 0x3c]
mov edx, dword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call fcn.180045700
mov rbx, qword [rsp + 0x48]
xor r9d, r9d
mov edx, r12d
mov rcx, rsi
mov rax, qword [rbx]
mov r8d, dword [rbx + 0x3c]
mov qword [rsp + 0x20], rax
call fcn.180045700
mov rbp, qword [r15 + 0x10]
test rbp, rbp
je 0x18005c2db
mov r13d, dword [rsp + 0xa0]
nop dword [rax]
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x18005c0d8
nop dword [rax]
mov rdx, rbx
mov rcx, rbp
call fcn.18005b720
test eax, eax
jne 0x18005c0d8
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18005c0c0
mov r9d, dword [rbx + 0x58]
mov r8d, r13d
mov edx, 0x36
mov dword [rsp + 0x20], r12d
mov rcx, rdi
call fcn.180026120
mov r15, qword [rsi + 0x10]
mov rdx, rbx
mov rcx, rsi
call fcn.18004dd40
mov rcx, qword [r15]
mov r14, rax
mov rax, qword [r15 + 8]
test rax, rax
je 0x18005c150
cmp byte [rcx + 0x50], 0
jne 0x18005c150
movsxd rdx, dword [r15 + 0x3c]
lea r8, [rdx + rdx*2]
movsx edx, byte [rax + r8*8 - 0x17]
lea rbx, [rax + r8*8]
mov r8, qword [rax + r8*8 - 8]
call fcn.1800264a0
test r14, r14
jne 0x18005c140
mov qword [rbx - 8], r14
mov byte [rbx - 0x17], r14b
jmp 0x18005c15d
mov qword [rbx - 8], r14
mov byte [rbx - 0x17], 0xfa
jmp 0x18005c15d
mov r8, r14
mov edx, 0xfffffffa
call fcn.1800264a0
mov eax, dword [rsp + 0xb0]
lea r15d, [r13 + 1]
mov r9d, dword [rbp + 0x58]
mov r8d, r15d
mov edx, 0x37
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.180026120
mov rbx, qword [rsi + 0x10]
mov rdx, rbp
mov rcx, rsi
call fcn.18004dd40
mov rcx, qword [rbx]
mov r14, rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x18005c1e0
cmp byte [rcx + 0x50], 0
jne 0x18005c1e0
movsxd rdx, dword [rbx + 0x3c]
lea r8, [rdx + rdx*2]
movsx edx, byte [rax + r8*8 - 0x17]
lea rbx, [rax + r8*8]
mov r8, qword [rax + r8*8 - 8]
call fcn.1800264a0
test r14, r14
jne 0x18005c1cf
mov qword [rbx - 8], r14
mov byte [rbx - 0x17], r14b
jmp 0x18005c1ed
mov qword [rbx - 8], r14
mov byte [rbx - 0x17], 0xfa
jmp 0x18005c1ed
mov r8, r14
mov edx, 0xfffffffa
call fcn.1800264a0
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x18005c203
movsxd rax, dword [rdi + 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, rdi
lea edx, [r9 + 0x6c]
call fcn.180026120
mov r14d, dword [rsp + 0x30]
mov r8d, r13d
mov r9d, r14d
mov ebx, eax
mov edx, 0x65
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.180026120
mov r9d, r14d
mov dword [rsp + 0x20], 1
mov r8d, r15d
mov edx, 0x6e
mov rcx, rdi
call fcn.180026120
lea r9d, [rbx + 1]
mov dword [rsp + 0x20], 0
mov r8d, r13d
mov edx, 9
mov rcx, rdi
call fcn.180026120
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x18005c28c
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 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, rdi
lea edx, [rbx + 0x3d]
call fcn.180026120
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, r15d
lea edx, [rbx + 0x3d]
mov rcx, rdi
call fcn.180026120
mov rbp, qword [rbp + 0x28]
mov rbx, qword [rsp + 0x48]
test rbp, rbp
jne 0x18005c0b0
mov r13d, dword [rsp + 0x38]
jmp 0x18005c2e5
mov r14d, dword [rsp + 0x30]
mov r15d, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18005c30d
mov edx, dword [rdi + 0x3c]
cmp edx, eax
jbe 0x18005c303
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea ecx, [rdx - 1]
mov dword [rax + 0x64], ecx
test r13d, r13d
je 0x18005c343
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x18005c343
xor ecx, ecx
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], r13d
je 0x18005c33f
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18005c324
mov dword [rsi + rdx*4 + 0x24], r13d
inc byte [rsi + 0x1f]
jmp 0x18005c343
mov byte [rax + 6], 1
test r14d, r14d
je 0x18005c37f
movzx edx, byte [rsi + 0x1f]
cmp dl, 8
jae 0x18005c37f
xor ecx, ecx
lea rax, [rsi + 0x88]
nop word [rax + rax]
cmp dword [rax + 0xc], r14d
je 0x18005c37b
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18005c360
mov dword [rsi + rdx*4 + 0x24], r14d
inc byte [rsi + 0x1f]
jmp 0x18005c37f
mov byte [rax + 6], 1
mov ebx, dword [rsp + 0x44]
test ebx, ebx
je 0x18005c3e3
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x18]
call fcn.180026120
mov ecx, dword [rdi + 0x3c]
cmp ecx, ebx
jbe 0x18005c3b8
mov rax, qword [rdi + 8]
lea r9, [rbx + rbx*2]
mov dword [rax + r9*8 + 8], ecx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea r9d, [rcx - 1]
mov r8d, r15d
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov dword [rax + 0x64], r9d
xor r9d, r9d
lea edx, [r9 + 0x3d]
call fcn.180026120
jmp 0x18005bb99
mov eax, 1
jmp 0x18005bb9b