Function at 0x18004f2c0
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 0x18004fe13
cmp dword [rsp + 0xd8], 0x1000
jne 0x18004fe13
mov rcx, qword [rsp + 0xc0]
call fcn.1800497c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18004f5b0
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 0x18004f414
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 0x18004f412
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 0x18004f45f
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 0x18004f4a1
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 0x18004f4f9
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x40
test eax, eax
jne 0x18004f4d0
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x80
test eax, eax
je 0x18004f4f7
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 0x18004f4f9
jmp 0x18004f497
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 0x18004f570
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 0x18004f5ae
mov rax, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0xb0]
mov qword [rax + 0xa0], rcx
jmp 0x18004f5ed
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.180050250
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.180056c20
xor r8d, r8d
mov rax, qword [rsp + 0x300]
mov rdx, qword [rax + 0xe0]
mov rcx, qword [rsp + 0x300]
call fcn.18004e1a0
xor eax, eax
cmp eax, 1
je 0x18004faf8
mov rax, qword [rsp + 0x300]
mov dword [rax + 0x90], 0xffffffff
mov dword [rsp + 0x3c], 0
jmp 0x18004f6a4
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x160]
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x6c]
cmp dword [rsp + 0x3c], eax
jge 0x18004f6f9
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x158]
cmp qword [rcx + rax + 8], 0
jne 0x18004f6f7
mov rax, qword [rsp + 0x300]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + 0x90], ecx
jmp 0x18004f6f9
jmp 0x18004f69a
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x300]
cmp dword [rax + 0x90], 0xffffffff
jne 0x18004f922
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x190]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
dec eax
mov dword [rsp + 0x24], eax
jmp 0x18004f73e
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jle 0x18004f922
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
jmp 0x18004f765
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x160]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x2c], eax
jge 0x18004f914
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x188]
mov qword [rsp + 0x98], rax
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x158]
mov rdx, qword [rsp + 0x98]
mov rax, qword [rcx + rax]
cmp qword [rdx + 8], rax
jb 0x18004f90f
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x188]
mov qword [rsp + 0xa8], rax
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x158]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rcx + rax + 8]
cmp qword [rdx + 0x10], rax
ja 0x18004f90f
movsxd rax, dword [rsp + 0x2c]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x158]
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 + 0x188]
xor r9d, r9d
mov r8, rax
mov rdx, qword [rdx + rcx + 8]
lea rcx, [rsp + 0xf0]
call fcn.180051e40
cmp qword [rsp + 0x128], 0
je 0x18004f90d
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x300]
call fcn.18004e7c0
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x160]
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 + 0x158]
cmp qword [rcx + rax + 8], 0
jne 0x18004f90d
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x160]
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 0x18004f914
jmp 0x18004f75b
cmp dword [rsp + 0x28], 0
je 0x18004f91d
jmp 0x18004f922
jmp 0x18004f734
mov rax, qword [rsp + 0x300]
cmp dword [rax + 0x90], 0xffffffff
jne 0x18004fad2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x40], 0
jmp 0x18004f953
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x190]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jge 0x18004f999
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x188]
cmp dword [rcx + rax], 0
jne 0x18004f997
mov dword [rsp + 0x28], 1
jmp 0x18004f999
jmp 0x18004f949
cmp dword [rsp + 0x28], 0
je 0x18004face
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x300]
call fcn.18004e6a0
mov rcx, qword [rsp + 0x300]
call fcn.18004eb90
mov rax, qword [rsp + 0x300]
mov rax, qword [rax + 0xe8]
dec rax
cmp rax, qword [rsp + 0x88]
je 0x18004faca
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 0x18004faca
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x160]
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.180056c20
xor r8d, r8d
mov rax, qword [rsp + 0x300]
mov rdx, qword [rax + 0xe8]
mov rcx, qword [rsp + 0x300]
call fcn.18004e1a0
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x300]
call fcn.18004ee10
cmp dword [rsp + 0xf8], 0
jne 0x18004fac8
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x160]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
dec eax
mov rcx, qword [rsp + 0x300]
add rcx, 0x158
mov edx, eax
call fcn.18004fe50
mov dword [rsp + 0xf8], 1
jmp 0x18004faf8
jmp 0x18004facc
jmp 0x18004faf8
jmp 0x18004fad0
jmp 0x18004faf8
jmp 0x18004faf3
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x300]
call fcn.18004ee10
cmp dword [rsp + 0xf8], 0
jne 0x18004faf3
jmp 0x18004faf8
jmp 0x18004f673
cmp dword [rsp + 0xf8], 0
jne 0x18004fb30
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 0x18004fe04
mov rax, qword [rsp + 0x300]
mov dword [rax + 0xd8], 1
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x300]
call fcn.18004e6a0
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 + 0x158]
cmp dword [rcx + rax + 0x10], 0
jne 0x18004fc07
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x158]
cmp dword [rcx + rax + 0x14], 0
jne 0x18004fc07
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x158]
cmp qword [rcx + rax + 0x18], 0
je 0x18004fc0c
jmp 0x18004fd14
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x158]
mov qword [rsp + 0xa0], rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x158]
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 0x18004fc83
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x300]
mov eax, dword [rax + 0x160]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x38], eax
jge 0x18004fd09
movsxd rax, dword [rsp + 0x38]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
add rax, qword [rcx + 0x158]
mov qword [rsp + 0x90], rax
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xa0
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 0x158]
mov rax, qword [rcx + rax + 8]
inc rax
mov rcx, qword [rsp + 0x90]
cmp qword [rcx], rax
jne 0x18004fd04
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x58], 1
jmp 0x18004fd09
jmp 0x18004fc79
cmp dword [rsp + 0x58], 0
jne 0x18004fb98
cmp dword [rsp + 0x50], 6
jl 0x18004fe04
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.180050200
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0x1fc], 0
jne 0x18004fd81
cmp dword [rsp + 0x200], 0
je 0x18004fdd0
cmp qword [rsp + 0x230], 0
jne 0x18004fd97
cmp qword [rsp + 0x238], 0
je 0x18004fdd0
cmp dword [rsp + 0x208], 0
jne 0x18004fdd0
movsxd rax, dword [rsp + 0x24c]
cmp rax, 8
jae 0x18004fdd0
mov rax, qword [rsp + 0x300]
mov dword [rax + 0xdc], 0
lea rcx, [rsp + 0x1f0]
call fcn.180050290
jmp 0x18004fe04
lea rcx, [rsp + 0x1f0]
call fcn.180050290
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 0x18004fd48
lea rcx, [rsp + 0xf0]
call fcn.180050290
jmp 0x18004fe3f
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