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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
sub rsp, 0x90
mov r14d, dword [rcx + 4]
lea rbp, [rcx + 4]
sub r14d, 1
mov dword [rsp + 0xb0], 0
mov dword [rsp + 0xc0], r14d
mov r15, rcx
je 0x1403273f1
mov qword [rax - 0x20], rbx
mov qword [rax - 0x28], rsi
mov qword [rax - 0x30], rdi
mov r8d, r14d
mov qword [rax - 0x38], r12
mov qword [rax - 0x40], r13
mov qword [rsp + 0x38], r8
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r15 + 0x18]
lea eax, [r14 - 1]
mov dword [rsp + 0x30], eax
xor r13d, r13d
mov r10d, eax
lea rax, [rax*8]
mov qword [rsp + 0x48], rax
mov r11, qword [rax + rcx]
mov rdi, qword [rcx + r8*8]
mov dword [rsp + 0xc8], r13d
mov rax, qword [r11]
movsxd rdx, dword [rax]
mov rax, qword [rdi]
mov rbx, rdx
mov dword [rsp + 0xb8], edx
cmp dword [r15 + rdx*4 + 0x74], 2
movsxd rsi, dword [rax]
mov dword [rsp + 0x34], esi
jne 0x140326be9
mov r13d, 1
mov dword [rsp + 0xc8], r13d
cmp edx, 0xc
jne 0x140326be9
mov rax, qword [r15 + 0x10]
xor edx, edx
mov r8d, dword [rax + r10*4]
test r8d, r8d
je 0x140326be2
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r11 + rdx*8]
mov rax, qword [rcx + 0x28]
cmp byte [rax + 0xc], 0
jne 0x140326bd7
inc edx
cmp edx, r8d
jb 0x140326bc0
jmp 0x140326be2
xor r13d, r13d
mov dword [rsp + 0xc8], r13d
mov r8, qword [rsp + 0x38]
mov edx, ebx
cmp dword [r15 + rsi*4 + 0x74], 2
jne 0x140326c4a
mov ebp, 1
cmp edx, 0xc
jne 0x140326c25
mov rax, qword [r15 + 0x10]
xor edx, edx
mov r8d, dword [rax + r8*4]
test r8d, r8d
je 0x140326c25
nop word [rax + rax]
mov rcx, qword [rdi + rdx*8]
mov rax, qword [rcx + 0x28]
cmp byte [rax + 0xc], 0
jne 0x140326c46
inc edx
cmp edx, r8d
jb 0x140326c10
test r13d, r13d
je 0x140326c55
lea rcx, str.Z__d
mov eax, dword [rcx + rsi*4]
cmp dword [rcx + rbx*4], eax
jl 0x140326c53
xor r13d, r13d
mov dword [rsp + 0xc8], r13d
jmp 0x140326c55
lea rbp, [r15 + 4]
test r13d, r13d
je 0x1403272dc
xor ebp, ebp
mov rax, qword [r15 + 0x10]
lea rcx, [r10*4]
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x50], rcx
mov r8d, dword [rax + rdx*4]
cmp dword [rcx + rax], r8d
jne 0x1403272d8
xor edx, edx
test r8d, r8d
je 0x140326cb5
mov rax, qword [rdi + rdx*8]
mov rcx, qword [r11 + rdx*8]
cmp rcx, qword [rax + 0x48]
jne 0x1403272d8
cmp dword [rcx + 0x68], 1
jne 0x1403272d8
cmp esi, 3
jne 0x140326cae
cmp dword [rcx + 0x8c], 0
jne 0x1403272d8
inc edx
cmp edx, r8d
jb 0x140326c80
mov ecx, esi
call fcn.140332fc0
mov ecx, dword [rsp + 0xb8]
mov rbx, rax
call fcn.140332fc0
mov edx, dword [rsp + 0x30]
lea rcx, str.may_merge_levels__u_s_and__u_s_n
mov r8, rax
mov qword [rsp + 0x20], rbx
mov r9d, r14d
call fcn.140326030
mov rax, qword [r15 + 0x10]
xor esi, esi
mov rbx, qword [rsp + 0x38]
cmp dword [rax + rbx*4], esi
jbe 0x140327108
mov r14, qword [rsp + 0x48]
mov r13, rbx
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r15 + 0x18]
lea rcx, [rsi*8]
mov rax, qword [r14 + rdx]
mov rbx, qword [rdx + r13*8]
mov rdi, qword [rcx + rax]
mov rbx, qword [rcx + rbx]
test ebp, ebp
je 0x140326ed8
mov rax, qword [rbx + 0x78]
mov rcx, qword [rdi + 0x70]
mov qword [rdi + 0x78], rax
mov rax, qword [rbx + 0x80]
mov qword [rdi + 0x80], rax
mov eax, dword [rbx + 0x68]
mov dword [rdi + 0x68], eax
call fcn.140352810
mov rax, qword [rbx + 0x70]
xor edx, edx
mov qword [rdi + 0x70], rax
mov qword [rbx + 0x70], 0
cmp dword [rdi + 0x68], edx
jbe 0x140326d83
mov rax, qword [rdi + 0x70]
mov rcx, qword [rax + rdx*8]
inc edx
mov qword [rcx + 0x48], rdi
cmp edx, dword [rdi + 0x68]
jb 0x140326d70
mov r9, qword [rbx + 0x90]
test r9, r9
je 0x140326df3
lea rdx, [rdi + 0x90]
xor ecx, ecx
mov rax, qword [rdx]
xor r8d, r8d
test rax, rax
je 0x140326dc1
nop dword [rax]
nop word [rax + rax]
lea rdx, [rax + 0x58]
mov r8, rax
mov rax, qword [rdx]
inc ecx
test rax, rax
jne 0x140326db0
mov rax, r9
nop dword [rax]
nop dword [rax + rax]
add dword [rax + 0x50], ecx
mov qword [rax + 0x48], rdi
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140326dd0
mov qword [rdx], r9
mov qword [r9 + 0x60], r8
mov eax, dword [rbx + 0x8c]
add dword [rdi + 0x8c], eax
mov r9, qword [rbx + 0xa0]
test r9, r9
je 0x140326e63
lea rdx, [rdi + 0xa0]
xor ecx, ecx
mov rax, qword [rdx]
xor r8d, r8d
test rax, rax
je 0x140326e31
nop dword [rax]
nop word [rax + rax]
lea rdx, [rax + 0x58]
mov r8, rax
mov rax, qword [rdx]
inc ecx
test rax, rax
jne 0x140326e20
mov rax, r9
nop dword [rax]
nop dword [rax + rax]
add dword [rax + 0x50], ecx
mov qword [rax + 0x48], rdi
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140326e40
mov qword [rdx], r9
mov qword [r9 + 0x60], r8
mov eax, dword [rbx + 0x98]
add dword [rdi + 0x98], eax
mov r9, qword [rbx + 0xb0]
test r9, r9
je 0x1403270d3
lea rdx, [rdi + 0xb0]
xor ecx, ecx
mov rax, qword [rdx]
xor r8d, r8d
test rax, rax
je 0x140326ea1
nop word [rax + rax]
lea rdx, [rax + 0x58]
mov r8, rax
mov rax, qword [rdx]
inc ecx
test rax, rax
jne 0x140326e90
mov rax, r9
nop dword [rax]
nop dword [rax + rax]
add dword [rax + 0x50], ecx
mov qword [rax + 0x48], rdi
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140326eb0
mov qword [rdx], r9
mov qword [r9 + 0x60], r8
mov eax, dword [rbx + 0xa8]
add dword [rdi + 0xa8], eax
jmp 0x1403270d3
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x140326f4b
mov rax, qword [rax + 0x70]
mov ecx, dword [rdi + 0x50]
mov qword [rax + rcx*8], rbx
mov eax, dword [rdi + 0x50]
mov dword [rbx + 0x50], eax
mov eax, dword [rdi + 0x50]
mov rdx, qword [rdi + 0x48]
test eax, eax
jne 0x140326f03
mov qword [rdx + 0x78], rbx
jmp 0x140326f16
lea ecx, [rax - 1]
mov rax, qword [rdx + 0x70]
mov rdx, qword [rax + rcx*8]
mov qword [rbx + 0x60], rdx
mov qword [rdx + 0x58], rbx
mov rdx, qword [rdi + 0x48]
mov ecx, dword [rdi + 0x50]
mov eax, dword [rdx + 0x68]
dec eax
cmp ecx, eax
jne 0x140326f33
mov qword [rdx + 0x80], rbx
mov rax, qword [rdi + 0x48]
jmp 0x140326f53
mov rax, qword [rdx + 0x70]
inc ecx
mov rdx, qword [rax + rcx*8]
mov qword [rbx + 0x58], rdx
mov qword [rdx + 0x60], rbx
mov rax, qword [rdi + 0x48]
jmp 0x140326f53
mov rax, qword [rdx]
mov qword [rax], rbx
xor eax, eax
mov qword [rbx + 0x48], rax
mov rax, qword [rdi + 0x90]
test rax, rax
je 0x140326fd0
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
xor ecx, ecx
nop
mov qword [rax + 0x48], rbx
inc ecx
mov r8, qword [rdx]
mov rax, qword [r8 + 0x58]
lea rdx, [r8 + 0x58]
test rax, rax
jne 0x140326f70
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x140326fa5
add dword [rax + 0x50], ecx
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140326f92
mov rax, qword [rbx + 0x90]
mov qword [rdx], rax
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x140326fb8
mov qword [rax + 0x60], r8
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x90], rax
mov eax, dword [rdi + 0x8c]
add dword [rbx + 0x8c], eax
mov rax, qword [rdi + 0xa0]
test rax, rax
je 0x140327050
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
xor ecx, ecx
nop dword [rax + rax]
mov qword [rax + 0x48], rbx
inc ecx
mov r8, qword [rdx]
mov rax, qword [r8 + 0x58]
lea rdx, [r8 + 0x58]
test rax, rax
jne 0x140326ff0
mov rax, qword [rbx + 0xa0]
test rax, rax
je 0x140327025
add dword [rax + 0x50], ecx
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140327012
mov rax, qword [rbx + 0xa0]
mov qword [rdx], rax
mov rax, qword [rbx + 0xa0]
test rax, rax
je 0x140327038
mov qword [rax + 0x60], r8
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0xa0], rax
mov eax, dword [rdi + 0x98]
add dword [rbx + 0x98], eax
mov rax, qword [rdi + 0xb0]
test rax, rax
je 0x1403270d0
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
xor ecx, ecx
nop dword [rax + rax]
mov qword [rax + 0x48], rbx
inc ecx
mov r8, qword [rdx]
mov rax, qword [r8 + 0x58]
lea rdx, [r8 + 0x58]
test rax, rax
jne 0x140327070
mov rax, qword [rbx + 0xb0]
test rax, rax
je 0x1403270a5
add dword [rax + 0x50], ecx
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140327092
mov rax, qword [rbx + 0xb0]
mov qword [rdx], rax
mov rax, qword [rbx + 0xb0]
test rax, rax
je 0x1403270b8
mov qword [rax + 0x60], r8
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0xb0], rax
mov eax, dword [rdi + 0xa8]
add dword [rbx + 0xa8], eax
mov rbx, rdi
mov rcx, rbx
call fcn.140325110
mov rcx, rbx
call fcn.140352810
mov rax, qword [r15 + 0x10]
inc esi
cmp esi, dword [rax + r13*4]
jb 0x140326d10
mov r13d, dword [rsp + 0xc8]
mov r14d, dword [rsp + 0xc0]
mov rbx, qword [rsp + 0x38]
test r13d, r13d
je 0x1403271a9
cmp r14d, 1
jbe 0x1403271a9
xor r10d, r10d
cmp dword [rax + rbx*4], r10d
jbe 0x1403271a9
nop dword [rax + rax]
mov rax, qword [r15 + 0x18]
mov rax, qword [rax + rbx*8]
mov r9, qword [rax + r10*8]
mov r8d, dword [r9 + 0x50]
mov rdx, qword [r9 + 0x48]
test r8d, r8d
je 0x140327157
mov rax, qword [rdx + 0x70]
lea ecx, [r8 - 1]
mov r11, qword [rax + rcx*8]
jmp 0x14032715a
xor r11d, r11d
mov qword [r9 + 0x60], r11
mov eax, dword [rdx + 0x68]
dec eax
cmp r8d, eax
jae 0x140327176
mov rax, qword [rdx + 0x70]
lea ecx, [r8 + 1]
mov rdx, qword [rax + rcx*8]
jmp 0x140327178
xor edx, edx
mov qword [r9 + 0x58], rdx
inc r10d
mov rax, qword [r15 + 0x10]
cmp r10d, dword [rax + rbx*4]
jb 0x140327130
mov rcx, qword [r15 + 0x18]
lea rsi, [r15 + 0x18]
mov ebx, dword [rsp + 0xc0]
mov edi, r14d
lea r14, [r15 + 4]
lea rbp, [rdi*8]
jmp 0x1403271cb
mov ebx, dword [rsp + 0xc0]
lea rsi, [r15 + 0x18]
mov rcx, qword [r15 + 0x18]
lea r14, [r15 + 4]
mov edi, ebx
lea rbp, [rbx*8]
test r13d, r13d
je 0x140327223
mov r13, qword [rsp + 0x48]
mov rcx, qword [rcx + r13]
call fcn.140352810
mov rcx, qword [rsi]
mov r8d, dword [r14]
sub r8d, ebx
shl r8, 3
lea rdx, [rcx + rbp]
add rcx, r13
call fcn.140349660
mov rcx, qword [r15 + 0x10]
mov r8d, dword [r14]
sub r8d, ebx
shl r8, 2
lea rdx, [rcx + rdi*4]
add rcx, qword [rsp + 0x50]
call fcn.140349660
mov eax, dword [rsp + 0xb8]
lea rbx, str.removed_parent_level__s_at_depth__u_n
mov r13d, dword [rsp + 0x30]
jmp 0x140327285
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rcx + rdx*8]
call fcn.140352810
mov rcx, qword [r15 + 0x18]
mov r8d, dword [r14]
mov r13d, dword [rsp + 0xc0]
sub r8d, r13d
dec r8d
shl r8, 3
lea eax, [r13 + 1]
lea rdx, [rcx + rax*8]
mov ebx, eax
add rcx, rbp
call fcn.140349660
mov rcx, qword [r15 + 0x10]
mov r8d, dword [r14]
sub r8d, r13d
dec r8d
lea rdx, [rcx + rbx*4]
shl r8, 2
lea rcx, [rcx + rdi*4]
call fcn.140349660
mov eax, dword [rsp + 0x34]
lea rbx, str.removed_child_level__s_at_depth__u_n
mov ecx, eax
call fcn.140332fc0
mov rdx, rax
mov r8d, r13d
mov rcx, rbx
call fcn.140326030
mov ecx, dword [r15 + 4]
lea rbp, [r15 + 4]
mov rax, qword [r15 + 0x10]
dec ecx
mov r9d, dword [rsp + 0xb0]
mov dword [rax + rcx*4], 0
mov ecx, dword [rbp]
mov rax, qword [r15 + 0x18]
dec ecx
mov qword [rax + rcx*8], 0
dec dword [rbp]
inc r9d
mov dword [rsp + 0xb0], r9d
jmp 0x1403272e4
lea rbp, [r15 + 4]
mov r9d, dword [rsp + 0xb0]
mov r8, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x30]
dec r8
mov dword [rsp + 0xc0], r14d
mov qword [rsp + 0x38], r8
test r14d, r14d
jne 0x140326b40
mov r13, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
test r9d, r9d
jle 0x1403273ec
mov qword [r15 + 0x24], 0xffffffffffffffff
xor r9d, r9d
mov qword [r15 + 0x2c], 0xffffffffffffffff
mov qword [r15 + 0x34], 0xffffffffffffffff
mov qword [r15 + 0x3c], 0xffffffffffffffff
mov qword [r15 + 0x44], 0xffffffffffffffff
mov qword [r15 + 0x4c], 0xffffffffffffffff
mov dword [r15 + 0x54], 0xffffffff
mov dword [r15 + 0x70], 0xffffffff
cmp dword [rbp], r9d
jbe 0x1403273ec
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r15 + 0x18]
lea r10, [r9*8]
xor r8d, r8d
lea rdx, [r9*4]
mov rcx, qword [r10 + rax]
mov rax, qword [rcx]
movsxd r11, dword [rax]
mov rax, qword [r15 + 0x10]
cmp dword [rdx + rax], r8d
jbe 0x1403273cd
nop dword [rax + rax]
mov rax, qword [r15 + 0x18]
mov rax, qword [rax + r10]
mov rcx, qword [rax + r8*8]
inc r8d
mov dword [rcx + 0x30], r9d
mov rax, qword [r15 + 0x10]
cmp r8d, dword [rdx + rax]
jb 0x1403273b0
cmp dword [r15 + r11*4 + 0x24], 0xffffffff
lea rcx, [r15 + r11*4]
mov eax, 0xfffffffe
cmove eax, r9d
inc r9d
mov dword [rcx + 0x24], eax
cmp r9d, dword [rbp]
jb 0x140327380
mov r12, qword [rsp + 0x70]
add rsp, 0x90
pop r15
pop r14
pop rbp
ret