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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rdi, r8
mov esi, edx
mov r15d, ecx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
cmp qword [r8], rcx
jbe 0x18004b64d
cmp dword [r8 + 0x94], ecx
je 0x18004b64d
lea rdx, str.DoAction_NPC:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180055e00
lea rdx, [rdi + 0x28]
cmp qword [rdi + 0x40], 0x10
jb 0x18004b08b
mov rdx, qword [rdi + 0x28]
mov r8, qword [rdi + 0x38]
mov rcx, rax
call fcn.180057760
lea rdx, [0x180055fe0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
movss xmm2, dword [rdi + 0x18]
movss xmm1, dword [rdi + 0x14]
movss xmm0, dword [rdi + 0x10]
unpcklps xmm0, xmm1
movsd qword [rbp - 0x70], xmm0
movss dword [rbp - 0x68], xmm2
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x60]
call fcn.1800d2560
cvttss2si r13d, dword [rbp - 0x5c]
cvttss2si r12d, dword [rbp - 0x60]
lea eax, [r12 - 1]
cmp eax, 0xf9f
jbe 0x18004b0f3
mov ecx, dword [0x18033c8b0]
call fcn.1800d38c0
lea eax, [r13 - 1]
cmp eax, 0xf9f
jbe 0x18004b10e
mov rcx, qword [0x18033c8b0]
shr rcx, 0x20
call fcn.1800d38c0
cmp byte [0x18033509d], 0
je 0x18004b510
mov ecx, 0xf0
call fcn.1802779bc
mov rbx, rax
mov qword [rbp + 0xb8], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 0xf
mov byte [rbx], al
mov dword [rsp + 0x20], 1
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov dword [rbx + 0x38], eax
mov dword [rbx + 0x3c], 0x3f800000
mov dword [rbx + 0x40], 0x3f008081
mov dword [rbx + 0x44], 0x3f800000
mov dword [rbx + 0x48], 0x41a00000
mov dword [rbx + 0x4c], 0x3f800000
mov dword [rbx + 0x50], 5
mov word [rbx + 0x54], ax
mov byte [rbx + 0x56], al
mov dword [rbx + 0x58], eax
mov qword [rbx + 0x60], rax
mov qword [rbx + 0x68], rax
movups xmmword [rbx + 0x70], xmm0
mov qword [rbx + 0x80], rax
mov qword [rbx + 0x88], 0xf
mov byte [rbx + 0x70], al
mov dword [rsp + 0x20], 3
movups xmmword [rbx + 0x90], xmm0
mov qword [rbx + 0xa0], rax
mov qword [rbx + 0xa8], 0xf
mov byte [rbx + 0x90], al
mov dword [rsp + 0x20], 7
movups xmmword [rbx + 0xb0], xmm0
mov qword [rbx + 0xc0], rax
mov qword [rbx + 0xc8], 0xf
mov byte [rbx + 0xb0], al
mov dword [rsp + 0x20], 0xf
mov qword [rbx + 0xd0], rax
mov qword [rbx + 0xd8], rax
mov qword [rbx + 0xe0], rax
mov dword [rsp + 0x20], 0x1f
mov byte [rbx + 0xe8], al
mov edx, dword [rdi + 0x9c]
lea rcx, [rbp + 0x30]
call fcn.1800409e0
mov rsi, rax
mov edx, dword [rdi + 0x98]
lea rcx, [rbp + 0x10]
call fcn.1800409e0
mov r15, rax
mov edx, dword [rdi + 0x94]
lea rcx, [rbp - 0x10]
call fcn.1800409e0
nop
lea r8, [rdi + 0x28]
cmp qword [rdi + 0x40], 0x10
jb 0x18004b26d
mov r8, qword [rdi + 0x28]
mov r9, qword [rdi + 0x38]
xor edx, edx
mov rcx, rax
call fcn.180057380
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm1
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], 0xf
mov byte [rax], cl
mov dword [rsp + 0x20], 0x3f
mov r9, r15
lea r8, [rsp + 0x28]
lea rcx, [rbp - 0x30]
call fcn.180057120
mov dword [rsp + 0x20], 0x7f
mov r9, rsi
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.180057120
mov esi, 0xff
mov dword [rsp + 0x20], esi
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1800551d0
btr esi, 7
mov dword [rsp + 0x20], esi
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x18004b332
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b32d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004b32d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180277944
xor r15d, r15d
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], r15b
and esi, 0xffffffbf
mov dword [rsp + 0x20], esi
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18004b38a
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b385
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004b385
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180277944
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
and esi, 0xffffffdf
mov dword [rsp + 0x20], esi
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x18004b3e1
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b3dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004b3dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180277944
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x18004b432
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b42d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004b42d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180277944
mov qword [rbp], r15
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x18004b480
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b47b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004b47b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180277944
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x18004b4ce
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b4c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004b4c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180277944
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], 0xf
mov byte [rbp + 0x30], 0
mov rax, qword [rdi]
mov qword [rbx + 0x60], rax
mov rax, qword [rdi + 8]
mov qword [rbx + 0x68], rax
mov dword [rbx + 0x50], 0xa
mov byte [rbx + 0xe8], 1
mov rdx, rbx
call fcn.1800617c0
mov esi, dword [rbp + 0xa8]
mov r15d, dword [rbp + 0xa0]
mov rbx, qword [0x18033b6a8]
mov rax, qword [0x18033b6b0]
cmp rbx, rax
je 0x18004b612
cmp byte [rbx + 0x40], 0
jne 0x18004b534
cmp qword [rbx + 0x38], 0
je 0x18004b53a
add rbx, 0x48
jmp 0x18004b51e
lea rax, [0x18033cb90]
mov qword [rbp + 0xb8], rax
lea rcx, [rbp + 0xb8]
call fcn.1800d4cf0
mov ecx, eax
lea rcx, [rcx + rcx*4]
add rcx, rcx
cmp ecx, 5
ja 0x18004b57c
lea rcx, [rbp + 0xb8]
call fcn.1800d4cf0
mov ecx, eax
lea rcx, [rcx + rcx*4]
add rcx, rcx
cmp ecx, 6
jb 0x18004b562
shr rcx, 0x20
add ecx, 2
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rdi + 0x94]
xor edx, edx
mov qword [rbp - 0x80], rdx
lea rcx, vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__void____cdecl___int__int__int__int__int__int__int__int__int___int__int____ptr64__int____ptr64__int____ptr64__int__int__int__int____ptr64__int____ptr64___void___.0
mov qword [rsp + 0x48], rcx
lea rcx, [0x180046540]
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], r13d
mov dword [rsp + 0x5c], r12d
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x68], edx
mov dword [rsp + 0x6c], eax
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x74], r15d
mov dword [rsp + 0x78], 1
lea rax, [rsp + 0x48]
mov qword [rbp - 0x80], rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180059090
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18004b60c
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xor ecx, ecx
mov qword [rbp - 0x80], rcx
mov byte [rbx + 0x40], 1
jmp 0x18004b636
lea rdx, str.Push_D_A_Q:_Que_full
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180055e00
lea rdx, [0x180055fe0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rdi + 0x48]
call fcn.180055930
nop
lea rcx, [rdi + 0x28]
call fcn.180055930
mov al, 1
jmp 0x18004b662
lea rcx, [r8 + 0x48]
call fcn.180055930
nop
lea rcx, [rdi + 0x28]
call fcn.180055930
xor al, al
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret