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

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, qword [rcx]
mov rsi, rcx
mov rbp, qword [rcx + 8]
mov r14d, r8d
xor ecx, ecx
mov r15d, edx
mov dword [rsp + 0x34], ecx
mov r13d, dword [rdi + 0x44]
movzx eax, byte [rbp + 0x20]
dec r13d
mov rbx, qword [rsi + 0x10]
mov byte [rsp + 0x88], al
mov dword [rdi + 0x44], r13d
mov dword [rsp + 0x30], ecx
cmp edx, 2
jne 0x18009a8b3
cmp byte [rbp + 0x21], 0x5a
jne 0x18009a8b3
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x39
test r14d, r14d
jle 0x18009a944
cmp byte [rbp + 0x20], 0x59
jne 0x18009a92c
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x30], eax
cmp r15d, 2
jne 0x18009a90a
movzx r9d, byte [rbp + 0x21]
cmp r9b, 0x56
jne 0x18009a8e8
mov r8d, dword [rsi + 0x30]
jmp 0x18009a8ec
mov r8d, dword [rsi + 0x28]
cmp r9b, 0x56
mov edx, 0x37
mov eax, 0x28
cmovne edx, ecx
mov ecx, 0x30
cmovne eax, ecx
mov ecx, dword [rax + rsi]
jmp 0x18009a916
mov r8d, dword [rsi + 0x38]
mov edx, 0x36
mov ecx, dword [rsi + 0x30]
mov dword [rsp + 0x28], r13d
mov r9d, r14d
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.18009a300
jmp 0x18009a944
mov r9d, r13d
mov dword [rsp + 0x20], 1
mov edx, 0x30
mov rcx, rbx
call fcn.180029850
cmp r15d, 1
jne 0x18009a95d
cmp dword [rbp + 0x84], 0
jne 0x18009a95d
xor edx, edx
mov rcx, rsi
call fcn.180098a80
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x38], eax
movzx eax, byte [rbp + 0x22]
mov qword [rsp + 0x90], r12
cmp byte [rbp + 0x21], al
jne 0x18009aa54
test r14d, r14d
je 0x18009aa54
cmp byte [rbp + 0x20], 0x59
jne 0x18009aa54
cmp r15d, 2
jne 0x18009aa54
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x18009a9b1
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
inc dword [rdi + 0x38]
mov r14d, dword [rdi + 0x38]
jmp 0x18009a9de
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xd4]
test al, al
jne 0x18009a9ce
inc dword [rdi + 0x38]
mov r14d, dword [rdi + 0x38]
jmp 0x18009a9de
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r14d, dword [rdi + rax*4 + 0xd4]
mov r8d, dword [rsi + 0x28]
mov r9d, r12d
mov edx, 0x80
mov rcx, rbx
call fcn.1800299a0
mov r8d, dword [rsi + 0x38]
mov r9d, r14d
mov edx, 0x80
mov rcx, rbx
call fcn.1800299a0
mov r9d, r13d
mov dword [rsp + 0x20], r12d
mov r8d, r14d
mov edx, 0x39
mov rcx, rbx
call fcn.180029850
test r12d, r12d
je 0x18009aa39
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x18009aa39
movzx eax, al
mov dword [rdi + rax*4 + 0xd4], r12d
inc byte [rdi + 0x1f]
test r14d, r14d
je 0x18009aa54
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x18009aa54
movzx eax, al
mov dword [rdi + rax*4 + 0xd4], r14d
inc byte [rdi + 0x1f]
mov ecx, r15d
sub ecx, 1
je 0x18009aafa
cmp ecx, 1
je 0x18009aab3
cmp dword [rbp + 0x84], 0
mov r12d, dword [rsi + 0x3c]
mov r14d, dword [rsi + 0x38]
mov dword [rsp + 0x80], r12d
je 0x18009aa99
mov r8d, dword [rbp + 0x88]
mov r9d, 1
mov rcx, rbx
lea edx, [r9 + 0x51]
call fcn.1800299a0
jmp 0x18009ab10
mov eax, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, rsi
call fcn.180098030
jmp 0x18009ab10
mov r8d, dword [rbp + 0x84]
mov r9d, 1
mov r12d, dword [rsi + 0x2c]
mov r14d, dword [rsi + 0x28]
mov dword [rsp + 0x80], r12d
test r8d, r8d
je 0x18009aae3
lea edx, [r9 + 0x51]
mov rcx, rbx
call fcn.1800299a0
jmp 0x18009ab10
mov eax, dword [rsi + 0x20]
mov r8d, r14d
mov rdx, rbp
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.180098030
jmp 0x18009ab10
mov eax, dword [rsi + 0x34]
mov rcx, rsi
mov r14d, dword [rsi + 0x30]
mov dword [rsp + 0x80], eax
call fcn.180099690
cmp r15d, dword [rsi + 0x24]
jne 0x18009ab89
movsxd rcx, dword [rbx + 0x90]
xor edx, edx
cmp dword [rbx + 0x94], ecx
jg 0x18009ab3f
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, r14d
mov rcx, rbx
lea edx, [r9 + 0x7b]
call fcn.1800297f0
jmp 0x18009ab69
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x7b
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], rdx
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x18009ab89
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
movsxd rcx, dword [rbx + 0x90]
xor r12d, r12d
mov eax, dword [rbx + 0x94]
cmp dword [rsp + 0x98], r12d
je 0x18009ac0e
lea edx, [rcx + 2]
cmp eax, ecx
jg 0x18009abc4
mov r9d, edx
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 5]
mov r8d, r14d
mov rcx, rbx
call fcn.1800297f0
jmp 0x18009abf2
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov edx, 0xb
mov rcx, rbx
call fcn.1800298c0
movzx r15d, byte [rsp + 0x88]
mov dword [rsp + 0x34], eax
jmp 0x18009ac8d
movzx r15d, byte [rsp + 0x88]
mov edx, r12d
cmp r15b, 0x4c
setne dl
inc edx
add edx, ecx
cmp eax, ecx
jg 0x18009ac43
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 5
mov r8d, r14d
mov rcx, rbx
call fcn.1800297f0
jmp 0x18009ac71
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
cmp r15b, 0x4c
je 0x18009ad1c
xor r8d, r8d
mov r9d, r13d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.1800299a0
cmp r15b, 0x4c
je 0x18009ad1c
mov rax, qword [rbp + 0x18]
test rax, rax
je 0x18009acb8
mov r15d, dword [rax]
test r15d, r15d
je 0x18009acbb
mov edx, r15d
mov rcx, rdi
call fcn.18004ad50
mov r12d, eax
jmp 0x18009acbb
mov r15d, r12d
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.180097f20
mov eax, dword [rsp + 0x38]
mov r8d, r12d
mov r9d, dword [rsp + 0x80]
mov rcx, rdi
mov rdx, qword [rbp + 0x18]
mov dword [rsp + 0x20], eax
call fcn.18009a0d0
cmp r15d, 1
jne 0x18009ad0b
test r12d, r12d
je 0x18009ad19
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x18009ad19
movzx eax, al
mov dword [rdi + rax*4 + 0xd4], r12d
inc byte [rdi + 0x1f]
jmp 0x18009ad19
cmp r15d, dword [rdi + 0x28]
jle 0x18009ad19
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r12d
xor r12d, r12d
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x18009ad76
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x18009ad4c
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, edx
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.1800297f0
jmp 0x18009ad76
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 0xb
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rcx, qword [rbx + 0x18]
not r13d
mov r12, qword [rsp + 0x90]
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x18009ad9a
mov r8d, r13d
mov rdx, rbx
call fcn.18002a420
jmp 0x18009adaa
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, r13d
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x34]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret