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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x1f0]
add rax, 0x18
mov rcx, rax
call fcn.140041940
shr rax, 1
mov rcx, rax
call fcn.140001e60
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov ecx, 1
mov qword [rsp + 0x100], rcx
movzx ecx, al
mov rax, qword [rsp + 0x100]
shl rax, cl
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
cmp qword [rsp + 0x1f8], rax
jbe 0x14004071e
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
mov rcx, qword [rsp + 0x1f8]
call fcn.140001e70
mov ecx, 1
mov qword [rsp + 0x110], rcx
movzx ecx, al
mov rax, qword [rsp + 0x110]
shl rax, cl
mov qword [rsp + 0x1f8], rax
lea rax, [rsp + 0x1d0]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x1f0]
add rax, 8
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov qword [rsp + 0x120], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x1d0]
call fcn.1400253d0
nop
mov rax, qword [rsp + 0x1f0]
add rax, 0x18
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x1f8]
shl rax, 1
mov r8, qword [rsp + 0x1d0]
mov rdx, rax
mov rcx, qword [rsp + 0x128]
call fcn.140025410
mov rax, qword [rsp + 0x1f8]
dec rax
mov rcx, qword [rsp + 0x1f0]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x1f0]
mov rcx, qword [rsp + 0x1f8]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x1c8], rax
lea rax, [rsp + 0x1b8]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x1f0]
add rax, 8
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x138], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x1b8]
call fcn.1400253d0
nop
lea rax, [rsp + 0x1c0]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x1c0], rax
jmp 0x1400408a1
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x1b8], rax
mov rax, qword [rsp + 0x1d0]
cmp qword [rsp + 0x1b8], rax
jne 0x1400408bd
mov dword [rsp + 0x28], 1
jmp 0x1400408c5
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
movzx eax, al
test eax, eax
jne 0x140040efd
mov rax, qword [rsp + 0x1c0]
mov rax, qword [rax]
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1b8]
add rax, 0x10
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1f0]
call fcn.1400419c0
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
shl rax, 1
mov rcx, qword [rsp + 0x1f0]
mov rcx, qword [rcx + 0x18]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd8]
shl rax, 1
mov rcx, qword [rsp + 0x1f0]
mov rcx, qword [rcx + 0x18]
lea rax, [rcx + rax*8 + 8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x1d0]
cmp qword [rax], rcx
jne 0x1400409ac
mov dword [rsp + 0x2c], 1
jmp 0x1400409b4
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
movzx eax, al
test eax, eax
je 0x1400409f1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x1b8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x1b8]
mov qword [rax], rcx
jmp 0x140040891
lea rax, [rsp + 0x1b0]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x1b0]
add rax, 0x10
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x170]
mov ecx, dword [rcx]
cmp dword [rax], ecx
jne 0x140040a89
mov dword [rsp + 0x30], 1
jmp 0x140040a91
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
movzx eax, al
test eax, eax
jne 0x140040ab0
mov dword [rsp + 0x34], 1
jmp 0x140040ab8
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
movzx eax, al
test eax, eax
jne 0x140040c0e
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b8]
cmp qword [rsp + 0x1b0], rax
jne 0x140040b00
mov dword [rsp + 0x38], 1
jmp 0x140040b08
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
movzx eax, al
test eax, eax
jne 0x140040bf6
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x80]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xe0]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xe8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xf0]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x1b8]
mov qword [rax], rcx
jmp 0x140040891
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x1b0]
cmp qword [rax], rcx
jne 0x140040c2a
mov dword [rsp + 0x3c], 1
jmp 0x140040c32
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x25]
movzx eax, al
test eax, eax
je 0x140040d41
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rcx
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 8]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xf8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x1b8]
mov qword [rax], rcx
jmp 0x140040ef8
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x1b0], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov rax, qword [rax]
add rax, 0x10
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x1a8], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x198]
mov ecx, dword [rcx]
cmp dword [rax], ecx
jne 0x140040dd9
mov dword [rsp + 0x40], 1
jmp 0x140040de1
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x26]
movzx eax, al
test eax, eax
jne 0x140040e00
mov dword [rsp + 0x44], 1
jmp 0x140040e08
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x27]
movzx eax, al
test eax, eax
jne 0x140040ef3
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xd0]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xc8]
mov qword [rax + 8], rcx
jmp 0x140040ef8
jmp 0x140040c0e
jmp 0x140040891
mov qword [rsp + 0x1c8], 0
cmp qword [rsp + 0x1c8], 0
je 0x140040f22
mov rcx, qword [rsp + 0x1c8]
call fcn.140041bb0
nop
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.140054330
add rsp, 0x1e0
pop rdi
ret