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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str._CxxThrowException
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x300]
mov qword [rcx + 0xd0], rax
mov r8d, 0x30
lea rdx, [rsp + 0xb8]
mov rax, qword [rsp + 0x300]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x180016ed3
cmp dword [rsp + 0xd8], 0x1000
jne 0x180016ed3
mov rcx, qword [rsp + 0xc0]
call fcn.18000bc00
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180016670
mov rax, qword [rsp + 0x48]
add rax, 0x108
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x20
test eax, eax
je 0x1800164d4
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x300]
mov qword [rcx + 0x98], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x98]
lea rax, [rcx + rax - 1]
mov rcx, qword [rsp + 0x300]
mov qword [rcx + 0xa0], rax
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x20
test eax, eax
je 0x1800164d2
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
lea rax, [rax + rcx - 1]
mov rcx, qword [rsp + 0x300]
mov qword [rcx + 0xa0], rax
jmp 0x18001651f
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x2c]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x300]
mov qword [rcx + 0x98], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x98]
mov rcx, qword [rsp + 0x300]
mov qword [rcx + 0xa0], rax
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0xa0]
mov qword [rax + 0xa8], rcx
mov rax, qword [rsp + 0x48]
add rax, 0x108
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x54], 0
jmp 0x180016561
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x54], eax
jge 0x1800165b9
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x40
test eax, eax
jne 0x180016590
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x80
test eax, eax
je 0x1800165b7
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0xc0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x300]
mov qword [rcx + 0xa8], rax
jmp 0x1800165b9
jmp 0x180016557
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0xa8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x20]
lea rax, [rax + rcx - 1]
mov rcx, qword [rsp + 0x300]
mov qword [rcx + 0xb0], rax
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0xa8]
cmp qword [rax + 0x98], rcx
jbe 0x180016630
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0xa8]
mov qword [rax + 0x98], rcx
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0xb0]
cmp qword [rax + 0xa0], rcx
jae 0x18001666e
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0xb0]
mov qword [rax + 0xa0], rcx
jmp 0x1800166ad
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 0x98], rcx
mov rax, qword [rsp + 0x300]
mov rax, qword [rax + 0x98]
add rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x300]
mov qword [rcx + 0xa0], rax
lea rcx, [rsp + 0xf0]
call fcn.18001c890
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx]
mov qword [rax + 0xe0], rcx
mov rax, qword [rsp + 0x300]
mov dword [rax + 0xdc], 0
mov rax, qword [rsp + 0x300]
mov dword [rax + 0x110], 1
mov rax, qword [rsp + 0x300]
add rax, 8
mov r8d, 0x80
xor edx, edx
mov rcx, rax
call fcn.180024170
xor r8d, r8d
mov rax, qword [rsp + 0x300]
mov rdx, qword [rax + 0xe0]
mov rcx, qword [rsp + 0x300]
call fcn.180016f10
xor eax, eax
cmp eax, 1
je 0x180016bb8
mov rax, qword [rsp + 0x300]
mov dword [rax + 0x90], 0xffffffff
mov dword [rsp + 0x3c], 0
jmp 0x180016764
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x158]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x3c], eax
jge 0x1800167b9
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x150]
cmp qword [rcx + rax + 8], 0
jne 0x1800167b7
mov rax, qword [rsp + 0x300]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x90], ecx
jmp 0x1800167b9
jmp 0x18001675a
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x300]
cmp dword [rax + 0x90], 0xffffffff
jne 0x1800169e2
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x188]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
dec eax
mov dword [rsp + 0x24], eax
jmp 0x1800167fe
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jle 0x1800169e2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
jmp 0x180016825
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x158]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x2c], eax
jge 0x1800169d4
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x180]
mov qword [rsp + 0x98], rax
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x150]
mov rdx, qword [rsp + 0x98]
mov rax, qword [rcx + rax]
cmp qword [rdx + 8], rax
jb 0x1800169cf
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x180]
mov qword [rsp + 0xa8], rax
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x150]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rcx + rax + 8]
cmp qword [rdx + 0x10], rax
ja 0x1800169cf
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x150]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
add rax, 0x20
movsxd rcx, dword [rsp + 0x24]
imul rcx, rcx, 0x18
mov rdx, qword [rsp + 0x300]
mov rdx, qword [rdx + 0x180]
xor r9d, r9d
mov r8, rax
mov rdx, qword [rdx + rcx + 8]
lea rcx, [rsp + 0xf0]
call fcn.18001c9c0
cmp qword [rsp + 0x128], 0
je 0x1800169cd
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x300]
call fcn.1800172d0
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x158]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
dec eax
cdqe
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x150]
cmp qword [rcx + rax + 8], 0
jne 0x1800169cd
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x158]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
dec eax
mov rcx, qword [rsp + 0x300]
mov dword [rcx + 0x90], eax
mov dword [rsp + 0x28], 1
jmp 0x1800169d4
jmp 0x18001681b
cmp dword [rsp + 0x28], 0
je 0x1800169dd
jmp 0x1800169e2
jmp 0x1800167f4
mov rax, qword [rsp + 0x300]
cmp dword [rax + 0x90], 0xffffffff
jne 0x180016b92
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x40], 0
jmp 0x180016a13
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x188]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x180016a59
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x180]
cmp dword [rcx + rax], 0
jne 0x180016a57
mov dword [rsp + 0x28], 1
jmp 0x180016a59
jmp 0x180016a09
cmp dword [rsp + 0x28], 0
je 0x180016b8e
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x300]
call fcn.180017b60
mov rcx, qword [rsp + 0x300]
call fcn.180017c90
mov rax, qword [rsp + 0x300]
mov rax, qword [rax + 0xe8]
dec rax
cmp rax, qword [rsp + 0x88]
je 0x180016b8a
mov rax, qword [rsp + 0x300]
mov rax, qword [rax + 0xe8]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
cmp rax, 0x400
jae 0x180016b8a
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x158]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x300]
mov ecx, dword [rsp + 0x7c]
mov dword [rax + 0x90], ecx
mov rax, qword [rsp + 0x300]
add rax, 8
mov r8d, 0x80
xor edx, edx
mov rcx, rax
call fcn.180024170
xor r8d, r8d
mov rax, qword [rsp + 0x300]
mov rdx, qword [rax + 0xe8]
mov rcx, qword [rsp + 0x300]
call fcn.180016f10
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x300]
call fcn.1800176a0
cmp dword [rsp + 0xf8], 0
jne 0x180016b88
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x158]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
dec eax
mov rcx, qword [rsp + 0x300]
add rcx, 0x150
mov edx, eax
call fcn.180018de0
mov dword [rsp + 0xf8], 1
jmp 0x180016bb8
jmp 0x180016b8c
jmp 0x180016bb8
jmp 0x180016b90
jmp 0x180016bb8
jmp 0x180016bb3
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x300]
call fcn.1800176a0
cmp dword [rsp + 0xf8], 0
jne 0x180016bb3
jmp 0x180016bb8
jmp 0x180016733
cmp dword [rsp + 0xf8], 0
jne 0x180016bf0
mov rax, qword [rsp + 0x300]
mov dword [rax + 0xd8], 0
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x120]
mov qword [rax + 0xf8], rcx
jmp 0x180016ec4
mov rax, qword [rsp + 0x300]
mov dword [rax + 0xd8], 1
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x300]
call fcn.180017b60
mov rax, qword [rsp + 0x300]
movsxd rax, dword [rax + 0xf0]
mov rcx, qword [rsp + 0x300]
movsxd rcx, dword [rcx + 0x114]
lea rax, [rcx + rax + 8]
mov rcx, qword [rsp + 0x300]
mov dword [rcx + 0x114], eax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x150]
cmp dword [rcx + rax + 0x10], 0
jne 0x180016cc7
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x150]
cmp dword [rcx + rax + 0x14], 0
jne 0x180016cc7
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x150]
cmp qword [rcx + rax + 0x18], 0
je 0x180016ccc
jmp 0x180016dd4
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x150]
mov qword [rsp + 0xa0], rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x150]
mov rdx, qword [rsp + 0xa0]
mov rax, qword [rcx + rax]
mov rcx, qword [rdx + 8]
sub rcx, rax
mov rax, rcx
inc rax
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x38], 1
jmp 0x180016d43
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x158]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x38], eax
jge 0x180016dc9
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x150]
mov qword [rsp + 0x90], rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x150]
mov rax, qword [rcx + rax + 8]
inc rax
mov rcx, qword [rsp + 0x90]
cmp qword [rcx], rax
jne 0x180016dc4
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x58], 1
jmp 0x180016dc9
jmp 0x180016d39
cmp dword [rsp + 0x58], 0
jne 0x180016c58
cmp dword [rsp + 0x50], 6
jl 0x180016ec4
mov rax, qword [rsp + 0x300]
mov dword [rax + 0xdc], 1
mov rax, qword [rsp + 0x300]
mov rax, qword [rax + 0xe0]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x1f0]
call fcn.18001c8c0
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0x1fc], 0
jne 0x180016e41
cmp dword [rsp + 0x200], 0
je 0x180016e90
cmp qword [rsp + 0x230], 0
jne 0x180016e57
cmp qword [rsp + 0x238], 0
je 0x180016e90
cmp dword [rsp + 0x208], 0
jne 0x180016e90
movsxd rax, dword [rsp + 0x24c]
cmp rax, 8
jae 0x180016e90
mov rax, qword [rsp + 0x300]
mov dword [rax + 0xdc], 0
lea rcx, [rsp + 0x1f0]
call fcn.18001c990
jmp 0x180016ec4
lea rcx, [rsp + 0x1f0]
call fcn.18001c990
mov rax, qword [rsp + 0x300]
mov rax, qword [rax + 0xe0]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
cmp rax, 6
jb 0x180016e08
lea rcx, [rsp + 0xf0]
call fcn.18001c990
jmp 0x180016eff
mov rax, qword [rsp + 0x300]
mov dword [rax + 0xd8], 0
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx]
mov qword [rax + 0xf8], rcx
add rsp, 0x2f8
ret