Function at 0x140179eb0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5b0
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov qword [rsp + 0x5f0], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
mov r12, r9
mov r13, r8
mov r14, rdx
mov rbx, qword [rdx + 0x10]
cmp qword [rdx + 8], rbx
jbe 0x140179f02
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [r14 + 8]
cmp rdi, qword [r14 + 0x10]
jbe 0x140179f12
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
movabs r15, 0x6666666666666667
cmp rdi, rbx
je 0x140179f88
mov rsi, qword [r14 + 0x10]
mov rcx, rsi
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rdx + rdx*4]
lea rbp, [rdi + rax*8]
cmp rbx, rsi
je 0x140179f66
sub rdi, rbx
nop
lea rcx, [rbx + rdi]
mov rdx, rbx
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
add rbx, 0x28
cmp rbx, rsi
jne 0x140179f50
mov rdi, qword [r14 + 0x10]
mov rbx, rbp
cmp rbp, rdi
je 0x140179f84
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add rbx, 0x28
cmp rbx, rdi
jne 0x140179f72
mov qword [r14 + 0x10], rbp
mov rbx, qword [r13 + 0x10]
cmp qword [r13 + 8], rbx
jbe 0x140179f98
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [r13 + 8]
cmp rdi, qword [r13 + 0x10]
jbe 0x140179fa8
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rdi, rbx
je 0x14017a018
mov rsi, qword [r13 + 0x10]
mov rcx, rsi
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rdx + rdx*4]
lea rbp, [rdi + rax*8]
cmp rbx, rsi
je 0x140179ff6
sub rdi, rbx
nop
nop
lea rcx, [rbx + rdi]
mov rdx, rbx
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
add rbx, 0x28
cmp rbx, rsi
jne 0x140179fe0
mov rdi, qword [r13 + 0x10]
mov rbx, rbp
cmp rbp, rdi
je 0x14017a014
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add rbx, 0x28
cmp rbx, rdi
jne 0x14017a002
mov qword [r13 + 0x10], rbp
mov rbx, qword [r12 + 0x10]
cmp qword [r12 + 8], rbx
jbe 0x14017a02a
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rdi, qword [r12 + 8]
cmp rdi, qword [r12 + 0x10]
jbe 0x14017a03c
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp rdi, rbx
je 0x14017a0aa
mov rsi, qword [r12 + 0x10]
mov rcx, rsi
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rdx + rdx*4]
lea rbp, [rdi + rax*8]
cmp rbx, rsi
je 0x14017a086
sub rdi, rbx
lea rcx, [rbx + rdi]
mov rdx, rbx
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_AEBV01__Z]
add rbx, 0x28
cmp rbx, rsi
jne 0x14017a070
mov rdi, qword [r12 + 0x10]
mov rbx, rbp
cmp rbp, rdi
je 0x14017a0a5
mov rcx, rbx
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
add rbx, 0x28
cmp rbx, rdi
jne 0x14017a093
mov qword [r12 + 0x10], rbp
lea rcx, [0x140366a00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14017a614
lea rdx, [0x140366a10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14017a614
lea rdx, [0x140366a28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14017a614
lea rdx, [0x140366a40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x14017a614
lea rdx, [0x140366a60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x14017a614
lea rdx, [0x140366a78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14017a614
lea rdx, [0x140366a98]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x14017a614
mov word [rsp + 0x70], 0
xor eax, eax
mov qword [rsp + 0x72], rax
mov dword [rsp + 0x7a], eax
mov word [rsp + 0x7e], ax
lea rdx, [0x140366aa0]
lea rcx, [rsp + 0x70]
call qword [rsp + 0x90]
xor r11d, r11d
mov qword [rsp + 0xd0], r11
mov qword [rsp + 0xd8], r11
mov qword [rsp + 0xe0], r11
mov qword [rsp + 0xe8], r11
mov qword [rsp + 0xf0], r11
mov dword [rsp + 0xc8], 0x30
xor ebx, ebx
mov qword [rsp + 0xd0], rbx
mov dword [rsp + 0xe0], 0x40
lea rax, [rsp + 0x70]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0x48], rbx
lea r8, [rsp + 0xc8]
lea edx, [rbx + 1]
lea rcx, [rsp + 0x48]
call rdi
test eax, eax
je 0x14017a226
xor al, al
jmp 0x14017a614
xor edx, edx
mov r8d, 0x800000
lea rcx, [0x140443b70]
call sub.ntdll.dll_memset
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x58], ebx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 0x800000
lea rdx, [0x140443b70]
mov rcx, qword [rsp + 0x48]
call rbp
test eax, eax
je 0x14017a284
mov rcx, qword [rsp + 0x48]
call rsi
xor al, al
jmp 0x14017a614
cmp word [0x140443b72], bx
je 0x14017a60b
lea rdi, [0x140443b72]
lea rbx, [0x140443b78]
mov rbp, qword [rsp + 0x40]
nop
nop
nop
lea rdx, [0x140366ab8]
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
mov rdx, qword [rbx]
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
mov word [rsp + 0x80], 0
xor eax, eax
mov qword [rsp + 0x82], rax
mov dword [rsp + 0x8a], eax
mov word [rsp + 0x8e], ax
lea rdx, [rsp + 0x108]
cmp qword [rsp + 0x120], 8
cmovae rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x80]
call qword [rsp + 0x90]
xor r11d, r11d
mov qword [rsp + 0xa0], r11
mov qword [rsp + 0xa8], r11
mov qword [rsp + 0xb0], r11
mov qword [rsp + 0xb8], r11
mov qword [rsp + 0xc0], r11
mov dword [rsp + 0x98], 0x30
xor ecx, ecx
mov qword [rsp + 0xa0], rcx
mov dword [rsp + 0xb0], 0x40
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0x40], rcx
lea r8, [rsp + 0x98]
lea edx, [rcx + 1]
lea rcx, [rsp + 0x40]
call rbp
test eax, eax
je 0x14017a3c4
add rbx, 0x20
add rdi, 0x20
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
jmp 0x14017a601
mov word [rsp + 0x60], 0
xor eax, eax
mov qword [rsp + 0x62], rax
mov dword [rsp + 0x6a], eax
mov word [rsp + 0x6e], ax
mov word [rsp + 0x1a0], ax
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_418]
call sub.ntdll.dll_memset
lea r11, [rsp + 0x1a0]
mov qword [rsp + 0x68], r11
mov word [rsp + 0x62], 0x400
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call r15
test eax, eax
je 0x14017a44c
mov rcx, qword [rsp + 0x40]
call rsi
add rbx, 0x20
add rdi, 0x20
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
jmp 0x14017a601
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_376]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
xor r8d, r8d
lea rdx, [0x140366ac8]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_376]
call qword [sym.imp.MSVCP80.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
test rax, rax
je 0x14017a4ae
mov rcx, qword [rsp + 0x40]
call rsi
add rbx, 0x20
add rdi, 0x20
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_376]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
jmp 0x14017a601
mov rdx, qword [rbx]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
mov rdx, qword [rbx]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_296]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const____ptr64____ptr64]
nop
xor r8d, r8d
lea rdx, [0x140366af8]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
call qword [sym.imp.MSVCP80.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
test rax, rax
jne 0x14017a517
lea rdx, [0x140366b08]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
mov rdx, qword [rbx]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
jmp 0x14017a52c
lea rdx, [0x140366a0c]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
xor r8d, r8d
lea rdx, [0x140366b18]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_296]
call qword [sym.imp.MSVCP80.dll_public:_unsigned_long_long_unsigned___int64____cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64__const___ptr64]
test rax, rax
jne 0x14017a571
lea rdx, [0x140366b38]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_296]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
mov rdx, qword [rbx]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_296]
call qword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const____ptr64____ptr64]
jmp 0x14017a586
lea rdx, [0x140366ab4]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_296]
call qword [reloc.MSVCP80.dll___4__basic_string__WU__char_traits__W_std__V__allocator__W_2__std__QEAAAEAV01_PEB_W_Z]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
mov rcx, r14
call fcn.1400044f0
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_376]
mov rcx, r13
call fcn.1400044f0
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_296]
mov rcx, r12
call fcn.1400044f0
add rbx, 0x20
add rdi, 0x20
mov rcx, qword [rsp + 0x40]
call rsi
nop
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_296]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_336]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_376]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCP80.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
cmp word [rdi], 0
jne 0x14017a2b0
mov rcx, qword [rsp + 0x48]
call rsi
mov al, 1
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x5f0]
add rsp, 0x5b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret