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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rdi, r8
mov r12d, edx
mov r14d, ecx
mov dword [rsp + 0x20], 0
cmp qword [r8], 0
jbe 0x180052231
cmp dword [r8 + 0x94], 0
je 0x180052231
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.18000b990
lea rsi, [rdi + 0x28]
mov rdx, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x180051c62
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov rcx, rax
call fcn.18005d780
lea rdx, [0x18000bb70]
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 - 0x60], xmm0
movss dword [rbp - 0x58], xmm2
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x28]
call fcn.1800d9520
cvttss2si r13d, dword [rsp + 0x2c]
cvttss2si r15d, dword [rsp + 0x28]
lea eax, [r15 - 1]
cmp eax, 0xf9f
jbe 0x180051ccc
mov ecx, dword [0x18036b148]
call fcn.1800da920
lea eax, [r13 - 1]
cmp eax, 0xf9f
jbe 0x180051ce7
mov rcx, qword [0x18036b148]
shr rcx, 0x20
call fcn.1800da920
cmp byte [0x18035f0fd], 0
je 0x1800520ec
mov ecx, 0xf0
call fcn.180298d00
mov rbx, rax
mov qword [rbp + 0xa8], 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.180047230
mov r14, rax
mov edx, dword [rdi + 0x98]
lea rcx, [rbp + 0x10]
call fcn.180047230
mov r15, rax
mov edx, dword [rdi + 0x94]
lea rcx, [rbp - 0x10]
call fcn.180047230
nop
mov r9, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x180051e45
mov rsi, qword [rsi]
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.180009390
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], 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 + 0x38]
lea rcx, [rbp - 0x30]
call fcn.18005d3b0
mov dword [rsp + 0x20], 0x7f
mov r9, r14
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.18005d3b0
mov esi, 0xff
mov dword [rsp + 0x20], esi
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.180008760
btr esi, 7
mov dword [rsp + 0x20], esi
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x180051f09
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051f04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180051f04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1802990b4
xor r14d, r14d
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], r14b
and esi, 0xffffffbf
mov dword [rsp + 0x20], esi
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x180051f61
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051f5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180051f5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1802990b4
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
and esi, 0xffffffdf
mov dword [rsp + 0x20], esi
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x180051fb8
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180051fb3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180051fb3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1802990b4
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], sil
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x18005200b
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052006
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052006
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1802990b4
mov qword [rbp], rsi
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x180052059
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052054
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052054
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1802990b4
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x1800520a7
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800520a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800520a2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1802990b4
mov qword [rbp + 0x40], rsi
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.180067e00
mov r14d, dword [rbp + 0x90]
cvttss2si r15d, dword [rsp + 0x28]
jmp 0x1800520ee
xor esi, esi
mov rbx, qword [0x180369e40]
mov rax, qword [0x180369e48]
cmp rbx, rax
je 0x180052117
cmp byte [rbx + 0x40], 0
jne 0x18005210e
cmp qword [rbx + 0x38], 0
je 0x180052155
add rbx, 0x48
cmp rbx, rax
jne 0x180052101
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.18000b990
lea rdx, [0x18000bb70]
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.180008a30
nop
lea rcx, [rdi + 0x28]
call fcn.180008a30
mov al, 1
jmp 0x180052246
lea rax, [0x18036b440]
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0xa8]
call fcn.1800dbdc0
mov ecx, eax
lea rcx, [rcx + rcx*4]
add rcx, rcx
cmp ecx, 5
ja 0x18005219a
nop dword [rax]
lea rcx, [rbp + 0xa8]
call fcn.1800dbdc0
mov ecx, eax
lea rcx, [rcx + rcx*4]
add rcx, rcx
cmp ecx, 6
jb 0x180052180
shr rcx, 0x20
add ecx, 2
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rdi + 0x94]
mov qword [rbp - 0x70], rsi
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 + 0x58], rcx
lea rcx, [0x18004d140]
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], r13d
mov dword [rsp + 0x6c], r15d
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x7c], eax
mov dword [rbp - 0x80], r12d
mov dword [rbp - 0x7c], r14d
mov dword [rbp - 0x78], 1
lea rax, [rsp + 0x58]
mov qword [rbp - 0x70], rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.18005f1b0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x180052228
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x70], rsi
mov byte [rbx + 0x40], 1
jmp 0x18005213b
lea rcx, [r8 + 0x48]
call fcn.180008a30
nop
lea rcx, [rdi + 0x28]
call fcn.180008a30
xor al, al
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret