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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov rdx, qword [rdx + 8]
mov rdi, rcx
mov rcx, qword [0x1000bb028]
mov r14b, r8b
call fcn.100047740
xor r15d, r15d
mov rbp, rax
cmp rax, r15
jne 0x10005af95
lea r9, [0x100022a30]
mov edx, 0x27c
jmp 0x10005b07e
mov rdx, qword [rsi]
mov r13d, 1
lea rcx, [0x100018078]
mov r8b, r13b
call fcn.100045b24
mov qword [rdi + 0x80], rax
cmp rax, r15
je 0x10005b098
lea rdx, [0x100022a68]
mov rcx, rax
call fcn.100047038
mov rdx, qword [rdi + 0x80]
cmp byte [rdx + 0x90], r13b
je 0x10005aff9
mov rcx, qword [0x1000bb030]
mov byte [rdx + 0x90], r13b
mov dword [rdx + 0xc0], 0x10
call fcn.10005c304
lea rdx, [0x100022a78]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b01a
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b01d
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x78], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x78]
cmp rax, r15
je 0x10005b072
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b072
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b0b2
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b062
lea r9, [0x100022a88]
mov edx, 0x29a
mov rax, qword [rsi + 8]
lea r8, [0x100022a60]
mov ecx, 0x2000
mov qword [rsp + 0x20], rax
call fcn.100065cf8
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [0x100022ac8]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b0d3
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b0d6
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x10]
cmp rax, r15
je 0x10005b12b
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b12b
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b13c
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b11b
lea r9, [0x100022ae0]
mov edx, 0x2aa
jmp 0x10005b07e
lea rdx, [0x100022b30]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b15d
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b160
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x18], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x18]
cmp rax, r15
je 0x10005b1b5
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b1b5
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b1c6
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b1a5
lea r9, [0x100022b50]
mov edx, 0x2b6
jmp 0x10005b07e
lea rdx, [0x100022ba0]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b1e7
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b1ea
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x20], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x20]
cmp rax, r15
je 0x10005b23f
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b23f
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b250
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b22f
lea r9, [0x100022bc0]
mov edx, 0x2c2
jmp 0x10005b07e
lea rdx, [0x100022c08]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b271
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b274
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x28], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x28]
cmp rax, r15
je 0x10005b2c9
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b2c9
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b2da
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b2b9
lea r9, [0x100022c30]
mov edx, 0x2ce
jmp 0x10005b07e
lea rdx, [0x100022c80]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b2fb
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b2fe
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x30], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x30]
cmp rax, r15
je 0x10005b353
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b353
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b364
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b343
lea r9, [0x100022ca0]
mov edx, 0x2de
jmp 0x10005b07e
lea rdx, [0x100022ce8]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b385
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b388
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x40], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x40]
cmp rax, r15
je 0x10005b3dd
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b3dd
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b3ee
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b3cd
lea r9, [0x100022d00]
mov edx, 0x2ea
jmp 0x10005b07e
lea rdx, [0x100022d48]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b40f
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b412
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x48], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x48]
cmp rax, r15
je 0x10005b467
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b467
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b478
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b457
lea r9, [0x100022d60]
mov edx, 0x2f6
jmp 0x10005b07e
lea rdx, [0x100022da8]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b499
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b49c
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x38], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x38]
cmp rax, r15
je 0x10005b4f1
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b4f1
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b502
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b4e1
lea r9, [0x100022dc0]
mov edx, 0x302
jmp 0x10005b07e
mov rdx, qword [rdi + 0x80]
lea rbx, [0x1000211d8]
mov r8b, r13b
mov rcx, rbx
call fcn.100045b24
mov rcx, rax
mov qword [rdi + 0x50], rax
cmp rax, r15
je 0x10005b098
mov rax, qword [rax]
mov rdx, qword [rsi + 0x10]
call qword [rax + 0x70]
mov rcx, qword [rdi + 0x50]
lea rdx, [0x100022e08]
call fcn.100047038
mov rcx, qword [rdi + 0x50]
call fcn.10004675c
mov rdx, qword [rdi + 0x80]
mov r8b, r13b
mov rcx, rbx
call fcn.100045b24
mov rcx, rax
mov qword [rdi + 0x58], rax
cmp rax, r15
je 0x10005b098
mov rax, qword [rax]
mov rdx, qword [rsi + 0x18]
call qword [rax + 0x70]
mov rcx, qword [rdi + 0x58]
lea rdx, [0x100022e18]
call fcn.100047038
mov rcx, qword [rdi + 0x58]
call fcn.10004675c
mov rdx, qword [rdi + 0x80]
mov r8b, r13b
mov rcx, rbx
call fcn.100045b24
mov qword [rdi + 0x68], rax
cmp rax, r15
je 0x10005b098
mov ecx, 0x80
cmp dword [rax + 0x1dc], ecx
je 0x10005b5d4
mov dword [rax + 0x1dc], ecx
mov rax, qword [0x1000bb010]
mov byte [rax + 0x14], r13b
mov byte [rax + 0x58], r13b
mov rcx, qword [rdi + 0x68]
lea rdx, [0x100022e28]
mov rax, qword [rcx]
call qword [rax + 0x70]
mov rcx, qword [rdi + 0x68]
call fcn.10004675c
lea rdx, [0x100022e38]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b60f
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b612
mov r12, r15
cmp r12, r15
je 0x10005b67d
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x60], rax
call sub.msvcrt.dll_free
mov rax, qword [rdi + 0x60]
cmp rax, r15
je 0x10005b66c
mov edx, dword [rax + 0x68]
mov ecx, r15d
cmp edx, r15d
jbe 0x10005b66c
mov rax, qword [rax + 0x78]
cmp dword [rax], r13d
je 0x10005b67d
add ecx, r13d
add rax, 4
cmp ecx, edx
jb 0x10005b65c
lea r9, [0x100022e50]
mov edx, 0x335
jmp 0x10005b07e
lea rdx, [0x100022e90]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b69e
mov rcx, rax
call fcn.10006e884
mov r12, rax
jmp 0x10005b6a1
mov r12, r15
mov rcx, qword [0x1000bb028]
mov rbx, qword [rdi + 0x80]
mov rdx, r12
call fcn.100047740
mov rdx, rbx
mov rcx, rax
call fcn.100045d40
mov rcx, r12
mov qword [rdi + 0x90], rax
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0x90]
cmp rcx, r15
je 0x10005b6fb
mov edx, r15d
cmp dword [rcx + 0x68], r15d
jbe 0x10005b6fb
mov rax, qword [rcx + 0x78]
cmp dword [rax], 2
je 0x10005b70c
add edx, r13d
add rax, 4
cmp edx, dword [rcx + 0x68]
jb 0x10005b6ea
lea r9, [0x100022eb0]
mov edx, 0x368
jmp 0x10005b07e
lea rdx, [0x100022f00]
call fcn.100047038
mov r11, qword [rdi + 0x90]
lea rdx, [0x100022f10]
mov dword [r11 + 0xc0], 0x2b
mov rcx, qword [rdi + 0x90]
call fcn.100046fb8
mov rcx, qword [rdi + 0x90]
lea rdx, [0x100022f20]
call fcn.100046ff8
mov rcx, qword [rdi + 0x90]
mov rdx, rdi
add rcx, 0xc8
call fcn.10004530c
lea rdx, [0x100022f30]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b787
mov rcx, rax
call fcn.10006e884
mov rbx, rax
jmp 0x10005b78a
mov rbx, r15
cmp rbx, r15
jne 0x10005b7a0
lea r9, [0x100022f50]
mov edx, 0x383
jmp 0x10005b07e
mov rcx, rbx
call fcn.10006cd90
mov rcx, rbx
mov r12, rax
call sub.msvcrt.dll_free
lea rdx, [0x100022f90]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b7d4
mov rcx, rax
call fcn.10006e884
mov r13, rax
jmp 0x10005b7d7
mov r13, r15
cmp r13, r15
jne 0x10005b810
lea r9, [0x100022fb0]
mov edx, 0x38e
mov rax, qword [rsi + 8]
lea r8, [0x100022a60]
mov ecx, 0x2000
mov qword [rsp + 0x20], rax
call fcn.100065cf8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10005b098
mov rcx, r13
call fcn.10006cd90
mov rcx, r13
mov rbx, rax
call sub.msvcrt.dll_free
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcstoul]
mov rcx, rbx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x100022ff8]
mov r8d, 0xffffff
mov rcx, rbp
call fcn.10006e608
lea rdx, [0x100023018]
or r8d, 0xffffffff
mov rcx, rbp
mov ebx, eax
call fcn.10006e4cc
mov ecx, dword [rsi + 0x38]
cmp eax, r15d
mov dword [rsp + 0x98], ecx
setg dl
cmp ecx, r15d
jne 0x10005b8bc
mov rcx, qword [0x1000bb0f0]
mov byte [rsp + 0x30], r15b
mov byte [rsp + 0x28], r15b
mov rax, qword [rcx]
mov byte [rsp + 0x20], dl
lea rdx, [rsp + 0x98]
mov r9, r12
mov r8d, r13d
call qword [rax + 8]
cmp al, r15b
jne 0x10005b8bc
lea r9, [0x100023040]
mov edx, 0x3a6
jmp 0x10005b7e8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi + 0x50]
mov rax, qword [0x1000bb010]
cmp ebx, dword [r11 + 0x194]
je 0x10005b8e8
mov dword [r11 + 0x194], ebx
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
mov rcx, qword [rdi + 0x50]
mov edx, dword [rsp + 0x98]
cmp dword [rcx + 0x1d8], edx
je 0x10005b909
mov dword [rcx + 0x1d8], edx
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
lea rdx, [0x100023090]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b92a
mov rcx, rax
call fcn.10006e884
mov rbx, rax
jmp 0x10005b92d
mov rbx, r15
cmp rbx, r15
jne 0x10005b943
lea r9, [0x1000230b0]
mov edx, 0x3b8
jmp 0x10005b07e
mov rcx, rbx
call fcn.10006cd90
mov rcx, rbx
mov r12, rax
call sub.msvcrt.dll_free
lea rdx, [0x1000230f0]
mov rcx, rbp
call fcn.10006e09c
cmp rax, r15
je 0x10005b977
mov rcx, rax
call fcn.10006e884
mov r13, rax
jmp 0x10005b97a
mov r13, r15
cmp r13, r15
jne 0x10005b990
lea r9, [0x100023110]
mov edx, 0x3c2
jmp 0x10005b7e8
mov rcx, r13
call fcn.10006cd90
mov rcx, r13
mov rbx, rax
call sub.msvcrt.dll_free
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcstoul]
mov rcx, rbx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [0x100023160]
mov r8d, 0xffffff
mov rcx, rbp
call fcn.10006e608
lea rdx, [0x100023180]
or r8d, 0xffffffff
mov rcx, rbp
mov ebx, eax
call fcn.10006e4cc
mov ecx, dword [rsi + 0x3c]
cmp eax, r15d
mov dword [rsp + 0x88], ecx
setg al
cmp ecx, r15d
jne 0x10005ba3d
mov rcx, qword [0x1000bb0f0]
mov byte [rsp + 0x30], r15b
lea rdx, [rsp + 0x88]
mov r10, qword [rcx]
mov r9, r12
mov r8d, r13d
mov byte [rsp + 0x28], r15b
mov byte [rsp + 0x20], al
call qword [r10 + 8]
cmp al, r15b
jne 0x10005ba3d
lea r9, [0x1000231a0]
mov edx, 0x3da
jmp 0x10005b7e8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi + 0x58]
mov rax, qword [0x1000bb010]
mov ecx, 0x80
cmp dword [r11 + 0x1dc], ecx
je 0x10005ba6e
mov dword [r11 + 0x1dc], ecx
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
mov rcx, qword [rdi + 0x58]
cmp ebx, dword [rcx + 0x194]
je 0x10005ba88
mov dword [rcx + 0x194], ebx
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
mov rdx, qword [rdi + 0x58]
mov ecx, dword [rsp + 0x88]
cmp dword [rdx + 0x1d8], ecx
je 0x10005bab0
mov dword [rdx + 0x1d8], ecx
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
mov ecx, dword [rsp + 0x88]
mov rdx, qword [rdi + 0x68]
cmp dword [rdx + 0x1d8], ecx
je 0x10005baca
mov dword [rdx + 0x1d8], ecx
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
mov rcx, qword [rdi + 0x68]
cmp ebx, dword [rcx + 0x194]
je 0x10005bae4
mov dword [rcx + 0x194], ebx
mov byte [rax + 0x14], 1
mov byte [rax + 0x58], 1
mov rax, qword [rdi + 0x10]
mov ebx, 5
lea rdx, [0x1000231f0]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x18]
mov r8d, ebx
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x20]
mov rcx, rbp
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x28]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x30]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x40]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x38]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x48]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x50]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x58]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x78]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x68]
mov byte [rax + 0x48], r15b
mov rax, qword [rdi + 0x60]
mov byte [rax + 0x48], r15b
call fcn.10006e534
lea rdx, [0x100023210]
xor r8d, r8d
mov rcx, rbp
mov dword [rdi + 0x9c], eax
call fcn.10006e534
lea rdx, [0x100023230]
mov r8d, ebx
mov rcx, rbp
mov dword [rdi + 0xa0], eax
call fcn.10006e534
lea rdx, [0x100023250]
xor r8d, r8d
mov rcx, rbp
mov dword [rdi + 0xa4], eax
call fcn.10006e534
mov ebx, 6
lea rdx, [0x100023270]
mov r8d, ebx
mov rcx, rbp
mov dword [rdi + 0xa8], eax
call fcn.10006e534
lea rdx, [0x100023298]
mov r8d, ebx
mov rcx, rbp
mov dword [rdi + 0xac], eax
call fcn.10006e534
mov rdx, rdi
mov dword [rdi + 0xb0], eax
mov rax, qword [rsi + 0x50]
mov qword [rdi + 0xc8], rax
mov eax, dword [rsi + 0x30]
mov dword [rdi + 0xc0], eax
mov eax, dword [rsi + 0x28]
mov dword [rdi + 0xbc], eax
mov eax, dword [rsi + 0x34]
mov dword [rdi + 0xc4], eax
mov eax, dword [rsi + 0x48]
mov dword [rdi + 0xb4], eax
mov eax, dword [rsi + 0x4c]
mov dword [rdi + 0xb8], eax
mov rax, qword [rdi + 0x80]
mov byte [rax + 0x48], 1
mov rax, qword [rdi + 0x80]
mov byte [rax + 0x40], 1
mov rcx, qword [rdi + 0x80]
add rcx, 0xc8
call fcn.10004530c
mov rcx, qword [0x1000bb010]
mov rbx, qword [rdi + 0x80]
sub rcx, 0xffffffffffffff80
mov rdx, rbx
call fcn.10004530c
mov rbp, qword [rsi + 0x50]
mov byte [rbx + 0x28], 1
cmp rbp, r15
je 0x10005bd37
mov rcx, qword [rbp + 0x88]
mov r12, qword [rdi + 0x78]
mov edx, r15d
lea r8, [rcx + 0x50]
cmp dword [r8], r15d
jbe 0x10005bce1
mov rcx, qword [rcx + 0x60]
cmp qword [rcx], rbp
je 0x10005bca9
mov rax, qword [rbp + 0x88]
inc edx
add rcx, 8
cmp edx, dword [rax + 0x50]
jb 0x10005bc90
jmp 0x10005bce1
mov rcx, r8
call fcn.1000453f8
mov rbx, qword [rbp + 0x88]
lea rcx, [r12 + 0x50]
mov rdx, rbp
call fcn.10004530c
mov rcx, qword [0x1000bb030]
mov r9, rbx
mov r8, rbp
mov rdx, r12
mov qword [rbp + 0x88], r12
call fcn.10005bedc
mov rcx, qword [rsi + 0x50]
call fcn.10004675c
mov r11, qword [rdi + 0xc8]
mov ecx, r15d
mov byte [r11 + 0x48], r15b
mov rax, qword [rdi + 0xc8]
cmp dword [rax + 0x50], r15d
jbe 0x10005bd37
mov rdx, r15
mov rax, qword [rdi + 0xc8]
cmp ecx, dword [rax + 0x50]
jae 0x10005bd1e
mov rax, qword [rax + 0x60]
mov r8, qword [rdx + rax]
jmp 0x10005bd21
mov r8, r15
mov byte [r8 + 0x48], r15b
mov rax, qword [rdi + 0xc8]
inc ecx
add rdx, 8
cmp ecx, dword [rax + 0x50]
jb 0x10005bd08
mov rcx, rdi
call fcn.10005a0b8
cmp r14b, r15b
je 0x10005bdaf
mov rcx, qword [rdi + 0x10]
call fcn.100054304
mov rcx, qword [rdi + 0x18]
call fcn.100054304
mov rcx, qword [rdi + 0x20]
call fcn.100054304
mov rcx, qword [rdi + 0x28]
call fcn.100054304
mov rcx, qword [rdi + 0x30]
call fcn.100054304
mov rcx, qword [rdi + 0x38]
call fcn.100054304
mov rcx, qword [rdi + 0x40]
call fcn.100054304
mov rcx, qword [rdi + 0x48]
call fcn.100054304
mov rcx, qword [rdi + 0x60]
cmp rcx, r15
je 0x10005bd9a
call fcn.100054304
mov rcx, qword [rdi + 0x90]
call fcn.100054304
mov rcx, qword [rdi + 0x78]
call fcn.100054304
mov al, 1
jmp 0x10005b09a