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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x190
xor r11d, r11d
mov r9, rcx
xor ecx, ecx
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x54], r11d
mov r15d, r11d
mov dword [rsp + 0x58], r11d
mov esi, r11d
mov r10, qword [r9 + 0x48]
mov qword [rbp - 0x18], r10
mov dword [rbp - 0x28], r11d
mov dword [rbp - 0x10], ecx
mov byte [rbp - 0xc], cl
mov dword [rsp + 0x78], r11d
test r8, r8
jne 0x18001d9bd
lea eax, [rcx + 7]
jmp 0x18001ea39
movzx ecx, word [r9 + 0x12]
movzx r8d, byte [r9 + 1]
lea ebx, [r8 + rcx]
cmp ebx, 2
jae 0x18001d9d5
mov eax, r11d
jmp 0x18001d9ff
test edx, edx
jne 0x18001d9de
mov eax, r11d
jmp 0x18001d9f2
cmp edx, ebx
jne 0x18001d9ef
mov edx, dword [rbp + 0xf0]
lea eax, [rdx - 2]
add eax, ebx
jmp 0x18001d9f8
lea eax, [rdx - 1]
mov edx, dword [rbp + 0xf0]
mov ebx, 2
sub ebx, edx
mov dword [rsp + 0x5c], eax
lea edx, [rbx + 1]
sub eax, r8d
mov dword [rbp - 0x24], ebx
add eax, ebx
mov dword [rsp + 0x50], edx
cmp eax, ecx
jne 0x18001da28
mov rdx, qword [r9 + 0x50]
movzx ecx, byte [r9 + 5]
add rdx, 8
add rdx, rcx
jmp 0x18001da4d
add eax, eax
movsxd rcx, eax
mov rax, qword [r9 + 0x60]
movzx edx, byte [rcx + rax]
movzx eax, byte [rcx + rax + 1]
shl rdx, 8
or rdx, rax
movzx eax, word [r9 + 0x14]
and rdx, rax
add rdx, qword [r9 + 0x50]
movzx eax, byte [rdx + 2]
lea r8, [rbp + 8]
movzx r13d, byte [rdx + 1]
xor r9d, r9d
shl r13d, 8
mov rcx, r10
or r13d, eax
mov qword [rbp], rdx
movzx eax, byte [rdx]
shl eax, 0x18
shl r13d, 8
or r13d, eax
movsxd r12, ebx
movzx eax, byte [rdx + 3]
mov r14, r12
or r13d, eax
shl r14, 3
mov edx, r13d
mov dword [rbp - 0x68], r13d
add r8, r14
mov dword [rsp + 0x20], r11d
call fcn.18001a578
xor r9d, r9d
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x4c], eax
mov edi, eax
mov r8d, 1
test eax, eax
jne 0x18001e9c1
lea r10, [rbp - 0x40]
lea r12, [r10 + r12*4]
mov rax, qword [rbp + r14 + 8]
lea r14, [r14 - 8]
mov r10d, 4
mov dword [rsp + 0x44], ebx
sub r12, r10
mov qword [rbp - 0x48], r12
movzx ecx, byte [rax + 1]
movzx edx, word [rax + 0x12]
inc ecx
add ecx, dword [rsp + 0x40]
mov eax, ebx
add ecx, edx
sub ebx, r8d
mov dword [rsp + 0x40], ecx
test eax, eax
je 0x18001dd36
mov edx, dword [rsp + 0x5c]
mov r8, qword [rbp + 0xd0]
lea ecx, [rdx + rbx]
movzx eax, word [r8 + 0x16]
cmp ecx, eax
jne 0x18001db67
cmp byte [r8 + 1], r9b
je 0x18001db67
mov rdx, qword [r8 + 0x20]
mov rcx, r8
mov qword [rbp + r14 - 0x60], rdx
movzx eax, byte [rdx + 2]
movzx r13d, byte [rdx + 1]
shl r13d, 8
or r13d, eax
movzx eax, byte [rdx + 3]
shl r13d, 8
or r13d, eax
movzx eax, byte [rdx]
shl eax, 0x18
or r13d, eax
mov dword [rbp - 0x68], r13d
call qword [r8 + 0x78]
movzx eax, ax
mov dword [r12], eax
mov rax, qword [rbp + 0xd0]
mov byte [rax + 1], sil
jmp 0x18001dc5f
movzx eax, byte [r8 + 1]
mov ecx, edx
sub ecx, eax
mov rax, qword [r8 + 0x60]
add ecx, ebx
add ecx, ecx
movsxd rcx, ecx
movzx r12d, byte [rcx + rax + 1]
movzx eax, byte [rcx + rax]
mov rcx, r8
shl rax, 8
or r12, rax
movzx eax, word [r8 + 0x14]
and r12, rax
add r12, qword [r8 + 0x50]
mov rdx, r12
mov qword [rbp + r14 - 0x60], r12
movzx eax, byte [r12 + 2]
movzx r13d, byte [r12 + 1]
shl r13d, 8
or r13d, eax
movzx eax, byte [r12 + 3]
shl r13d, 8
or r13d, eax
movzx eax, byte [r12]
shl eax, 0x18
or r13d, eax
mov dword [rbp - 0x68], r13d
call qword [r8 + 0x78]
mov rdx, qword [rbp - 0x18]
movzx r8d, ax
mov rax, qword [rbp - 0x48]
mov dword [rsp + 0x60], r8d
test byte [rdx + 0x24], 4
mov dword [rax], r8d
je 0x18001dc3a
mov rax, qword [rbp + 0xd0]
mov ecx, r12d
sub ecx, dword [rax + 0x50]
lea eax, [r8 + rcx]
cmp eax, dword [rdx + 0x34]
jg 0x18001dc9b
movsxd rcx, ecx
mov rdx, r12
add rcx, qword [rbp + 0xe0]
call fcn.180071560
mov rcx, qword [rbp + 0xd0]
mov r8d, dword [rsp + 0x60]
sub r12, qword [rcx + 0x50]
add r12, qword [rbp + 0xe0]
mov qword [rbp + r14 - 0x60], r12
jmp 0x18001dc41
mov rcx, qword [rbp + 0xd0]
test edi, edi
jne 0x18001dc5b
movzx eax, byte [rcx + 1]
lea r9, [rsp + 0x4c]
mov edx, dword [rsp + 0x5c]
sub edx, eax
add edx, ebx
call fcn.18001cf14
mov r12, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x18]
lea r8, [rbp + 8]
and dword [rsp + 0x20], esi
xor r9d, r9d
movsxd rax, ebx
mov edx, r13d
lea r8, [r8 + rax*8]
call fcn.18001a578
xor r9d, r9d
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x4c], eax
mov edi, eax
test eax, eax
jne 0x18001e9c1
lea r8d, [rax + 1]
jmp 0x18001dac0
mov ecx, 0xfd4c
call fcn.180049820
movsxd r8, dword [rsp + 0x44]
lea rcx, [rbp + 8]
shl r8, 3
xor edx, edx
mov edi, eax
call fcn.180071c60
xor r11d, r11d
mov r12d, 1
test rsi, rsi
je 0x18001e9d9
cmp rsi, qword [0x1800d95c0]
jb 0x18001e969
cmp rsi, qword [0x1800de098]
jae 0x18001e969
mov rcx, qword [0x1800de088]
test rcx, rcx
je 0x18001dcfc
call qword [0x1800d9508]
xor r11d, r11d
mov rax, qword [0x1800de0a0]
mov qword [rsi], rax
add dword [0x1800de0a8], r12d
sub qword [0x1800de0c8], r12
mov qword [0x1800de0a0], rsi
mov rcx, qword [0x1800de088]
test rcx, rcx
je 0x18001e9d9
call qword [0x1800d9518]
jmp 0x18001e9d6
mov rax, qword [rbp - 0x18]
lea ebx, [rcx + 3]
and ebx, 0xfffffffc
mov eax, dword [rax + 0x30]
lea ecx, [rbx + rbx*4]
lea ecx, [rax + rcx*2]
call fcn.18000facc
xor r11d, r11d
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x78], rax
mov rsi, rax
test rax, rax
jne 0x18001dd69
lea edi, [rax + 7]
jmp 0x18001e9d9
mov ecx, dword [rsp + 0x50]
mov rdx, r11
movsxd rax, ebx
mov dword [rsp + 0x40], r11d
mov qword [rbp - 8], rdx
lea r10, [rsi + rax*8]
lea rax, [r10 + rax*2]
mov qword [rbp - 0x70], r10
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 8]
mov qword [rbp - 0x80], rax
movzx r8d, byte [rax + 4]
movzx eax, byte [rax + 3]
shl r8w, 2
mov word [rsp + 0x44], r8w
mov qword [rbp - 0x20], rax
test ecx, ecx
jle 0x18001dfeb
mov r14, qword [rbp + rdx*8 + 8]
movzx eax, word [r14 + 0x14]
mov r12, qword [r14 + 0x50]
movzx ebx, word [r14 + 0xe]
mov word [rsp + 0x48], ax
add rbx, r12
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x50]
mov al, byte [rcx]
cmp byte [r12], al
jne 0x18001dfda
movzx eax, byte [r14 + 1]
xor edx, edx
movzx r8d, word [r14 + 0x12]
add r8, rax
movsxd rax, r15d
add r8, r8
lea rcx, [r10 + rax*2]
call fcn.180071c60
xor r11d, r11d
cmp byte [r14 + 1], r11b
jbe 0x18001de89
movzx eax, word [r14 + 0x16]
lea r10d, [r11 + 1]
test eax, eax
je 0x18001de51
movzx r9d, word [rsp + 0x48]
mov edx, eax
mov r8d, r9d
movzx eax, byte [rbx + 1]
movzx ecx, byte [rbx]
add rbx, 2
shl rcx, 8
or rcx, rax
movsxd rax, r15d
and rcx, r8
add r15d, r10d
add rcx, r12
mov qword [rsi + rax*8], rcx
sub rdx, r10
jne 0x18001de23
mov dword [rsp + 0x78], r15d
jmp 0x18001de57
movzx r9d, word [rsp + 0x48]
mov r8d, r11d
cmp byte [r14 + 1], r11b
jbe 0x18001de8f
lea rdx, [r14 + 0x20]
mov rax, qword [rdx]
add r8d, r10d
movsxd rcx, r15d
lea rdx, [rdx + 8]
add r15d, r10d
mov qword [rsi + rcx*8], rax
movzx eax, byte [r14 + 1]
cmp r8d, eax
jl 0x18001de64
mov dword [rsp + 0x78], r15d
jmp 0x18001de8f
movzx r9d, word [rsp + 0x48]
movzx ecx, word [r14 + 0xe]
movzx edx, word [r14 + 0x12]
add rcx, r12
lea r8, [rcx + rdx*2]
cmp rbx, r8
jae 0x18001ded5
movzx edx, r9w
movzx eax, byte [rbx + 1]
movzx ecx, byte [rbx]
add rbx, 2
shl rcx, 8
or rcx, rax
movsxd rax, r15d
and rcx, rdx
inc r15d
add rcx, r12
mov qword [rsi + rax*8], rcx
cmp rbx, r8
jb 0x18001dea9
mov dword [rsp + 0x78], r15d
mov rdx, qword [rbp - 8]
mov r9d, dword [rsp + 0x40]
mov dword [rbp + rdx*4 + 0x60], r15d
cmp r9d, dword [rbp - 0x24]
jge 0x18001dfab
cmp qword [rbp - 0x20], r11
jne 0x18001dfab
movzx ecx, word [rbp + rdx*4 - 0x40]
movsxd r9, dword [rsp + 0x58]
mov r8d, ecx
mov rax, qword [rbp - 0x70]
mov rbx, r9
add rbx, qword [rsp + 0x68]
add r9d, ecx
mov rdx, qword [rbp + rdx*8 - 0x60]
movsxd r12, r15d
mov dword [rsp + 0x58], r9d
mov word [rax + r12*2], cx
mov rcx, rbx
call fcn.180071560
movzx r8d, word [rsp + 0x44]
xor r11d, r11d
mov r10, qword [rbp - 0x70]
lea rax, [rbx + r8]
mov qword [rsi + r12*8], rax
sub word [r10 + r12*2], r8w
cmp byte [r14 + 4], r11b
jne 0x18001df5c
mov rax, qword [r14 + 0x50]
mov rcx, qword [rsi + r12*8]
mov eax, dword [rax + 8]
mov dword [rcx], eax
jmp 0x18001df92
mov r9d, 4
cmp word [r10 + r12*2], r9w
jae 0x18001df92
movsxd rdx, dword [rsp + 0x58]
lea eax, [r9 - 3]
mov rcx, qword [rsp + 0x68]
add rcx, rdx
mov byte [rcx], r11b
add edx, eax
add word [r10 + r12*2], ax
add rcx, rax
cmp word [r10 + r12*2], r9w
jb 0x18001df7a
mov dword [rsp + 0x58], edx
mov rdx, qword [rbp - 8]
mov r12d, 1
mov r9d, dword [rsp + 0x40]
add r15d, r12d
mov dword [rsp + 0x78], r15d
jmp 0x18001dfbb
mov r10, qword [rbp - 0x70]
mov r12d, 1
movzx r8d, word [rsp + 0x44]
movsxd rcx, dword [rsp + 0x50]
add r9d, r12d
add rdx, r12
mov dword [rsp + 0x40], r9d
mov qword [rbp - 8], rdx
cmp rdx, rcx
jl 0x18001ddb5
jmp 0x18001dff1
mov ecx, 0xfd8f
call fcn.180049820
mov edi, eax
jmp 0x18001dcbb
mov r12d, 1
mov rax, qword [rbp - 0x18]
mov rbx, r11
movzx ecx, r8w
mov r8d, dword [rsp + 0x50]
mov dword [rbp - 8], ecx
mov eax, dword [rax + 0x34]
add eax, 0xfffffff4
mov qword [rsp + 0x68], rbx
add ecx, eax
mov dword [rsp + 0x48], ecx
test r8d, r8d
jle 0x18001e0ad
mov r14, qword [rbp + rbx*8 + 8]
mov r12d, ecx
movzx eax, word [r14 + 0x10]
sub r12d, eax
mov dword [rbp + rbx*4 - 0x40], r12d
js 0x18001e167
cmp byte [r14 + 1], r11b
jbe 0x18001e08b
lea rsi, [r14 + 0x20]
mov edi, r11d
mov ebx, 1
mov rdx, qword [rsi]
mov rcx, r14
call qword [r14 + 0x78]
movzx eax, ax
add edi, ebx
add eax, 2
lea rsi, [rsi + 8]
add r12d, eax
movzx eax, byte [r14 + 1]
cmp edi, eax
jl 0x18001e04b
mov rbx, qword [rsp + 0x68]
xor r11d, r11d
mov edi, dword [rsp + 0x60]
mov rsi, qword [rbp - 0x48]
mov ecx, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x50]
mov dword [rbp + rbx*4 - 0x40], r12d
mov eax, dword [rbp + rbx*4 + 0x60]
mov r12d, 1
mov dword [rbp + rbx*4 - 0x60], eax
add rbx, r12
movsxd rax, r8d
mov qword [rsp + 0x68], rbx
cmp rbx, rax
jl 0x18001e01e
mov dword [rsp + 0x40], r11d
mov edx, r8d
mov dword [rsp + 0x44], edx
mov r14d, r11d
test r8d, r8d
jle 0x18001e296
mov rbx, r11
cmp dword [rbp + rbx*4 - 0x40], ecx
jle 0x18001e194
cmp r12d, edx
jl 0x18001e0f8
lea eax, [r12 + 1]
mov dword [rsp + 0x44], eax
lea rax, [rbx + 2]
cmp rax, 5
jg 0x18001e3a2
mov dword [rbp + rax*4 - 0x44], r11d
mov dword [rbp + rax*4 - 0x64], r15d
movsxd rsi, dword [rbp + rbx*4 - 0x60]
mov rcx, qword [rbp - 0x70]
lea r14d, [rsi - 1]
movsxd rax, r14d
movzx eax, word [rcx + rax*2]
test ax, ax
jne 0x18001e12a
mov edx, r14d
lea rcx, [rsp + 0x78]
call fcn.18001d1bc
mov rcx, qword [rbp - 0x70]
xor r11d, r11d
mov r15d, dword [rsp + 0x78]
movzx eax, ax
add eax, 2
sub dword [rbp + rbx*4 - 0x40], eax
cmp qword [rbp - 0x20], r11
jne 0x18001e174
cmp esi, r15d
jge 0x18001e171
mov rax, rsi
movzx eax, word [rcx + rsi*2]
test ax, ax
jne 0x18001e15f
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.18001d1bc
mov r15d, dword [rsp + 0x78]
xor r11d, r11d
movzx eax, ax
add eax, 2
jmp 0x18001e174
mov ecx, 0xfdf1
jmp 0x18001dfdf
mov eax, r11d
add dword [rbp + rbx*4 - 0x3c], eax
mov ecx, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
mov dword [rbp + rbx*4 - 0x60], r14d
cmp dword [rbp + rbx*4 - 0x40], ecx
jg 0x18001e0d2
mov r14d, dword [rsp + 0x40]
cmp dword [rbp + rbx*4 - 0x60], r15d
jge 0x18001e24a
mov r8, qword [rbp - 0x70]
mov edi, dword [rsp + 0x48]
mov r14, qword [rbp - 0x20]
movsxd rsi, dword [rbp + rbx*4 - 0x60]
mov rax, rsi
movzx eax, word [r8 + rsi*2]
test ax, ax
jne 0x18001e1d5
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.18001d1bc
mov r8, qword [rbp - 0x70]
xor r11d, r11d
mov r15d, dword [rsp + 0x78]
mov edx, dword [rbp + rbx*4 - 0x40]
movzx ecx, ax
add ecx, 2
add edx, ecx
cmp edx, edi
jg 0x18001e236
inc esi
mov dword [rbp + rbx*4 - 0x40], edx
mov dword [rbp + rbx*4 - 0x60], esi
test r14, r14
jne 0x18001e229
cmp esi, r15d
jge 0x18001e226
movsxd rax, esi
movzx eax, word [r8 + rax*2]
test ax, ax
jne 0x18001e21e
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.18001d1bc
mov r8, qword [rbp - 0x70]
xor r11d, r11d
mov r15d, dword [rsp + 0x78]
movzx ecx, ax
add ecx, 2
jmp 0x18001e229
mov ecx, r11d
sub dword [rbp + rbx*4 - 0x3c], ecx
cmp esi, r15d
jl 0x18001e1ab
mov edi, dword [rsp + 0x60]
mov r14d, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
cmp dword [rbp + rbx*4 - 0x60], r15d
jl 0x18001e253
mov edx, r12d
mov dword [rsp + 0x44], edx
jmp 0x18001e26f
test r14d, r14d
jle 0x18001e25e
mov eax, dword [rbp + rbx*4 - 0x64]
jmp 0x18001e261
mov eax, r11d
cmp dword [rbp + rbx*4 - 0x60], eax
jle 0x18001e3b7
mov edx, dword [rsp + 0x44]
mov eax, 1
add r14d, eax
add r12d, eax
add rbx, rax
mov dword [rsp + 0x40], r14d
cmp r14d, edx
jl 0x18001e0c8
mov rsi, qword [rbp - 0x78]
mov r12d, eax
mov qword [rbp - 0x48], rsi
lea eax, [rdx - 1]
movsxd rbx, eax
test eax, eax
jle 0x18001e3e8
mov r9, qword [rbp - 0x70]
lea rax, [rbp - 0x60]
lea rcx, [rbp - 0x40]
sub rax, rcx
mov qword [rsp + 0x68], rax
mov esi, dword [rbp + rbx*4 - 0x64]
lea rax, [rbp + rbx*4 - 0x44]
mov eax, dword [rax]
sub esi, r12d
mov r15d, dword [rbp + rbx*4 - 0x40]
mov edx, esi
sub edx, dword [rbp - 0x20]
add edx, r12d
mov dword [rsp + 0x58], eax
movsxd rax, edx
lea r12, [rax + rax]
cmp word [r12 + r9], r11w
jne 0x18001e2f6
lea rcx, [rsp + 0x78]
call fcn.18001d1bc
mov r9, qword [rbp - 0x70]
xor r11d, r11d
mov edi, dword [rbp + 0xf0]
movsxd rax, esi
lea r14, [rax + rax]
cmp word [r14 + r9], r11w
jne 0x18001e31d
mov edx, esi
lea rcx, [rsp + 0x78]
call fcn.18001d1bc
mov r9, qword [rbp - 0x70]
xor r11d, r11d
mov r8d, dword [rsp + 0x58]
test r15d, r15d
je 0x18001e347
test edi, edi
jne 0x18001e37b
movzx eax, word [r14 + r9]
lea ecx, [r15 + 2]
mov edx, r8d
sub edx, eax
movzx eax, word [r12 + r9]
add ecx, eax
sub edx, 2
cmp ecx, edx
jg 0x18001e37b
movzx eax, word [r12 + r9]
mov ecx, 0xfffffffe
add eax, 2
mov dword [rbp + rbx*4 - 0x64], esi
add r15d, eax
sub r12, 2
movzx eax, word [r14 + r9]
sub r14, 2
sub ecx, eax
mov eax, 1
add r8d, ecx
sub esi, eax
mov dword [rsp + 0x58], r8d
jns 0x18001e303
mov edi, dword [rsp + 0x60]
lea rax, [rbp + rbx*4 - 0x44]
mov r12d, 1
mov dword [rbp + rbx*4 - 0x40], r15d
mov dword [rax], r8d
cmp rbx, r12
jle 0x18001e3be
mov rcx, qword [rsp + 0x68]
mov eax, dword [rax + rcx - 4]
jmp 0x18001e3c1
mov ecx, 0xfdfd
call fcn.180049820
mov rsi, qword [rbp - 0x78]
mov edi, eax
jmp 0x18001dcbb
mov ecx, 0xfe1e
jmp 0x18001e3a7
mov eax, r11d
cmp dword [rbp + rbx*4 - 0x64], eax
jle 0x18001e456
sub rbx, r12
test rbx, rbx
jg 0x18001e2b8
mov rsi, qword [rbp - 0x78]
mov r15d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x44]
mov qword [rbp - 0x48], rsi
mov rax, qword [rbp + 8]
mov r14, r11
movsxd r12, edx
mov rcx, qword [rax + 0x50]
movzx ebx, byte [rcx]
mov dword [rsp + 0x40], ebx
test edx, edx
jle 0x18001e4e1
mov edx, 1
movsxd rcx, dword [rsp + 0x50]
cmp r14, rcx
jge 0x18001e46e
mov rcx, qword [rbp + r14*8 + 8]
mov qword [rbp + r14*8 + 0x20], rcx
mov qword [rsp + 0x68], rcx
mov qword [rbp + r14*8 + 8], r11
mov rcx, qword [rcx + 0x70]
call fcn.180018e8c
mov r9d, dword [rsp + 0x54]
mov edx, 1
add r9d, edx
mov dword [rsp + 0x4c], eax
xor r11d, r11d
mov dword [rsp + 0x54], r9d
mov edi, eax
test eax, eax
jne 0x18001dcbe
jmp 0x18001e4d3
mov ecx, 0xfe48
call fcn.180049820
mov rsi, qword [rbp - 0x78]
mov edi, eax
xor r11d, r11d
jmp 0x18001dcc4
cmp dword [rbp + 0xf0], r11d
lea r8, [rbp - 0x68]
mov rcx, qword [rbp - 0x18]
cmovne r13d, edx
lea rdx, [rsp + 0x68]
mov r9d, r13d
call fcn.18001c360
xor r11d, r11d
mov dword [rsp + 0x4c], eax
mov edi, eax
test eax, eax
jne 0x18001dcbe
mov edx, ebx
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.18001a3ac
mov r9d, dword [rsp + 0x54]
lea edx, [rdi + 1]
mov r13d, dword [rbp - 0x68]
add r9d, edx
mov qword [rbp + r14*8 + 0x20], rbx
xor r11d, r11d
mov ebx, dword [rsp + 0x40]
mov dword [rsp + 0x54], r9d
mov dword [rbp + r14*4 + 0x60], r15d
add r14, rdx
cmp r14, r12
jl 0x18001e40a
jmp 0x18001e4e6
mov r9d, dword [rsp + 0x54]
movsxd r14, r9d
mov rdx, r11
test r9d, r9d
jle 0x18001e53d
mov r12d, 1
mov rax, qword [rbp + rdx*8 + 0x20]
mov r8d, dword [rax + 0x88]
mov rax, qword [rax + 0x70]
mov dword [rbp + rdx*4 + 0x78], r8d
mov dword [rbp + rdx*4 + 0x48], r8d
movzx ecx, word [rax + 0x2c]
mov rax, r11
mov word [rsp + rdx*2 + 0x68], cx
test rdx, rdx
jle 0x18001e535
cmp dword [rbp + rax*4 + 0x78], r8d
je 0x18001e6b6
add rax, r12
cmp rax, rdx
jl 0x18001e522
add rdx, r12
cmp rdx, r14
jl 0x18001e4f7
mov rbx, r11
test r9d, r9d
jle 0x18001e5fa
mov rsi, qword [rbp - 0x18]
mov r13d, 1
mov r10d, r11d
mov r12, r11
mov edx, r13d
mov rcx, r13
cmp r13, r14
jge 0x18001e58e
mov r9, r11
mov eax, dword [rbp + r9 + 0x48]
mov r8, rcx
shl r8, 2
cmp dword [rbp + r8 + 0x48], eax
jae 0x18001e583
mov r10d, edx
mov r12, rcx
mov r9, r8
add edx, r13d
add rcx, r13
cmp rcx, r14
jl 0x18001e567
mov r13d, dword [rbp + r12*4 + 0x48]
or dword [rbp + r12*4 + 0x48], 0xffffffff
cmp r12, rbx
je 0x18001e5df
jle 0x18001e5b9
mov rcx, qword [rbp + r12*8 + 0x20]
xor r8d, r8d
mov edx, dword [rsi + 0x3c]
inc edx
add edx, r10d
mov rcx, qword [rcx + 0x70]
call fcn.1800193b4
mov rcx, qword [rbp + rbx*8 + 0x20]
mov edx, r13d
movzx r8d, word [rsp + r12*2 + 0x68]
mov rcx, qword [rcx + 0x70]
call fcn.1800193b4
mov rax, qword [rbp + rbx*8 + 0x20]
xor r11d, r11d
mov dword [rax + 0x88], r13d
mov r13d, 1
add rbx, r13
cmp rbx, r14
jl 0x18001e553
mov rsi, qword [rbp - 0x48]
mov r9d, dword [rsp + 0x54]
mov rdx, qword [rbp]
lea eax, [r9 - 1]
movsxd r8, eax
mov qword [rsp + 0x68], r8
mov rax, qword [rbp + r8*8 + 0x20]
mov ecx, dword [rax + 0x88]
mov eax, ecx
shr eax, 0x18
mov byte [rdx], al
mov eax, ecx
shr eax, 0x10
mov byte [rdx + 1], al
mov eax, ecx
shr eax, 8
test byte [rsp + 0x40], 8
mov byte [rdx + 2], al
mov byte [rdx + 3], cl
jne 0x18001e66a
mov eax, dword [rsp + 0x50]
cmp eax, r9d
je 0x18001e66a
cmp r9d, eax
lea rcx, [rbp + 8]
lea rdx, [rbp + 0x20]
cmovle rdx, rcx
dec eax
movsxd rcx, eax
mov rax, qword [rdx + rcx*8]
mov rdx, qword [rax + 0x50]
mov rax, qword [rbp + r8*8 + 0x20]
mov rcx, qword [rax + 0x50]
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov r12, r11
test r8, r8
jle 0x18001e81c
movsxd rdx, dword [rbp + r12*4 - 0x60]
mov r10, qword [rbp + r12*8 + 0x20]
mov rcx, qword [rbp - 0x70]
movsxd r13, dword [rbp - 0x28]
add r13, qword [rbp + 0xe0]
mov rbx, qword [rsi + rdx*8]
movzx ecx, word [rcx + rdx*2]
mov r9d, ecx
mov qword [rbp], r10
add r9d, dword [rbp - 8]
cmp byte [r10 + 4], r11b
jne 0x18001e6c5
mov rcx, qword [r10 + 0x50]
mov eax, dword [rbx]
mov dword [rcx + 8], eax
jmp 0x18001e75a
mov ecx, 0xfe92
call fcn.180049820
jmp 0x18001e464
cmp qword [rbp - 0x20], r11
je 0x18001e732
lea eax, [rdx - 1]
mov rcx, r10
movsxd rdx, eax
lea r8, [rbp + 0x78]
mov rdx, qword [rsi + rdx*8]
call qword [r10 + Ordinal_133]
mov rdx, qword [rbp + 0x78]
lea rcx, [r13 + 4]
mov rbx, r13
cmp rdx, 0x7f
ja 0x18001e700
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
jmp 0x18001e726
cmp rdx, 0x3fff
ja 0x18001e721
mov rax, rdx
shr rax, 7
or al, 0x80
and dl, 0x7f
mov byte [rcx], al
mov byte [rcx + 1], dl
mov eax, 2
jmp 0x18001e726
call fcn.1800118f0
xor r11d, r11d
lea r9d, [rax + 4]
mov r13d, r11d
jmp 0x18001e756
mov eax, 4
sub rbx, rax
cmp cx, ax
jne 0x18001e75a
mov rax, qword [rbp + 0xd0]
mov rdx, rbx
mov rcx, rax
call qword [rax + 0x78]
movzx r9d, ax
xor r11d, r11d
mov r10, qword [rbp]
add dword [rbp - 0x28], r9d
test edi, edi
jne 0x18001dcbe
lea rax, [rsp + 0x4c]
mov r8, rbx
mov ebx, dword [rsp + 0x5c]
mov edx, ebx
mov qword [rsp + 0x30], rax
mov eax, dword [r10 + 0x88]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov r13, qword [rbp + 0xd0]
mov rcx, r13
call fcn.18001d04c
mov edi, dword [rsp + 0x4c]
xor r11d, r11d
test edi, edi
jne 0x18001dcbe
lea eax, [rdi + 1]
add ebx, eax
add r12, rax
mov dword [rsp + 0x5c], ebx
cmp r12, qword [rsp + 0x68]
jl 0x18001e676
mov r9d, dword [rsp + 0x54]
mov r12d, 1
mov ebx, r12d
sub ebx, r9d
cmp ebx, r9d
jge 0x18001e8b8
mov eax, ebx
cdq
mov r8d, eax
xor r8d, edx
sub r8d, edx
movsxd rsi, r8d
cmp byte [rbp + rsi - 0x10], r11b
jne 0x18001e8a8
test ebx, ebx
jns 0x18001e80b
lea ecx, [r8 - 1]
movsxd rdx, ecx
mov eax, dword [rbp + rdx*4 - 0x60]
cmp dword [rbp + rdx*4 + 0x60], eax
jl 0x18001e8a8
test r8d, r8d
jne 0x18001e825
mov r9d, dword [rbp - 0x60]
mov r15d, r11d
mov r8d, r11d
jmp 0x18001e862
mov r13, qword [rbp + 0xd0]
jmp 0x18001e7c3
cmp r8d, dword [rsp + 0x50]
jge 0x18001e843
cmp dword [rbp - 0x20], r11d
lea eax, [r8 - 1]
mov r15d, r11d
movsxd rcx, eax
sete r15b
add r15d, dword [rbp + rcx*4 + 0x60]
cmp dword [rbp - 0x20], r11d
lea eax, [r8 - 1]
mov r9d, dword [rbp + rsi*4 - 0x60]
mov r8d, r11d
sete r8b
movsxd rcx, eax
add r8d, dword [rbp + rcx*4 - 0x60]
sub r9d, r8d
mov rcx, qword [rbp + rsi*8 + 0x20]
lea rax, [rsp + 0x78]
mov edx, r15d
mov qword [rsp + 0x20], rax
call fcn.18001d424
xor r11d, r11d
mov edi, eax
test eax, eax
jne 0x18001e960
mov rax, qword [rbp + rsi*8 + 0x20]
movzx ecx, word [rsp + 0x48]
sub cx, word [rbp + rsi*4 - 0x40]
mov r15d, dword [rsp + 0x78]
mov r9d, dword [rsp + 0x54]
mov word [rax + 0x10], cx
mov byte [rbp + rsi - 0x10], r12b
add ebx, r12d
cmp ebx, r9d
jl 0x18001e7d8
mov rsi, qword [rbp - 0x78]
cmp dword [rbp + 0xe8], r11d
je 0x18001e921
cmp word [r13 + 0x12], r11w
jne 0x18001e921
mov rcx, qword [rbp + 0x20]
movzx eax, byte [r13 + 5]
cmp ax, word [rcx + 0x10]
ja 0x18001e921
call fcn.180019a24
xor r11d, r11d
mov dword [rsp + 0x4c], eax
mov edi, eax
test eax, eax
jne 0x18001e921
mov rcx, qword [rbp + 0x20]
lea r8, [rsp + 0x4c]
mov rdx, r13
call fcn.18001d894
mov edi, dword [rsp + 0x4c]
xor r11d, r11d
test edi, edi
jne 0x18001e921
mov rcx, qword [rbp + 0x20]
mov rdx, rcx
mov r8d, dword [rcx + 0x88]
mov rcx, qword [rcx + 0x48]
call fcn.18001c76c
mov edi, eax
xor r11d, r11d
movsxd rax, dword [rsp + 0x50]
mov rbx, rax
cmp r14, rax
jge 0x18001dcc4
mov rcx, qword [rbp + r14*8 + 8]
test edi, edi
jne 0x18001e953
mov r8d, dword [rcx + 0x88]
mov rdx, rcx
mov rcx, qword [rcx + 0x48]
call fcn.18001c76c
mov edi, eax
xor r11d, r11d
add r14, r12
cmp r14, rbx
jl 0x18001e932
jmp 0x18001dcc4
mov rsi, qword [rbp - 0x78]
jmp 0x18001dcc4
cmp dword [0x1800d9480], r11d
mov rcx, rsi
je 0x18001e9b9
call qword [0x1800d94c0]
mov rcx, qword [0x1800de088]
movsxd rbx, eax
test rcx, rcx
je 0x18001e990
call qword [0x1800d9508]
sub qword [0x1800de0f8], r12
mov rax, rbx
sub qword [0x1800de0d0], rax
mov rcx, rsi
sub qword [0x1800de0b0], rax
call qword [0x1800d94b0]
xor r11d, r11d
jmp 0x18001dd1b
call qword [0x1800d94b0]
jmp 0x18001e9d6
lea eax, [rbx + 1]
xor edx, edx
movsxd r8, eax
lea rcx, [rbp + 8]
shl r8, 3
call fcn.180071c60
xor r11d, r11d
movsxd rax, dword [rsp + 0x50]
mov rbx, r11
mov rsi, rax
mov r14d, 1
test eax, eax
jle 0x18001ea0c
mov rcx, qword [rbp + rbx*8 + 8]
test rcx, rcx
je 0x18001ea04
mov rcx, qword [rcx + 0x70]
call fcn.180018950
xor r11d, r11d
add rbx, r14
cmp rbx, rsi
jl 0x18001e9ee
movsxd rsi, dword [rsp + 0x54]
mov rbx, r11
test rsi, rsi
jle 0x18001ea37
mov rcx, qword [rbp + rbx*8 + 0x20]
test rcx, rcx
je 0x18001ea2f
mov rcx, qword [rcx + 0x70]
call fcn.180018950
xor r11d, r11d
add rbx, r14
cmp rbx, rsi
jl 0x18001ea19
mov eax, edi
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret