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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea ebx, [rcx + 0xc]
mov r15, r8
mov dword [rsp + 0x80], ebx
cmp ecx, ebx
movzx ebx, byte [rsp + 0x80]
mov rbp, rdx
mov r13d, ecx
jae case.0x180031abd.10
mov r14, qword [rsp + 0x38]
lea r12d, [rcx - 0xef]
mov rsi, qword [rsp + 0x38]
lea rdx, [0x180000000]
mov eax, dword [rsp + 0x80]
nop dword [rax + rax]
cmp r12d, 0x1c
ja case.default.0x180031abd
movzx eax, byte [rdx + r12 + 0x31d9c]
mov ecx, dword [rdx + rax*4 + 0x31d6c]
add rcx, rdx
jmp rcx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + rbp], 0
jne 0x180031ac6
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rcx, qword [rsp + 0x98]
xor bl, bl
mov rax, qword [rcx]
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], 0
jmp 0x180031cc6
mov ecx, dword [rsp + 0x38]
mov rax, qword [r15 + 8]
mov rdi, qword [rax + rcx*8]
test rdi, rdi
jne 0x180031b51
mov eax, dword [r15]
lea r8, [rsp + 0x20]
mov rdx, rbp
mov dword [rsp + 0x20], eax
mov ecx, 0x9e
call fcn.180012ef0
mov ecx, eax
mov edx, 0x20
lea rdi, [rcx*8]
lea ecx, [rdx - 0x1f]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rcx, qword [r15 + 8]
mov qword [rdi + rcx], rax
mov rax, qword [r15 + 8]
mov r14, qword [rdi + rax]
jmp 0x180031cc6
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x180031b94
nop word [rax + rax]
mov r8, rbp
mov rdi, rax
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180031b83
inc rax
test ecx, ecx
jne 0x180031b70
test edx, edx
jne 0x180031cfe
mov rax, qword [rdi + 0x18]
test rax, rax
jne 0x180031b60
mov edx, 0x20
lea ecx, [rdx - 0x1f]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r14, rax
mov qword [rdi + 0x18], rax
jmp 0x180031cc6
mov eax, dword [r15]
lea r8, [rsp + 0x20]
mov rdx, rbp
mov dword [rsp + 0x20], eax
mov ecx, 0x9e
call fcn.180012ef0
mov r8, r15
mov dword [rsp + 0x28], eax
mov edx, 0xb8
mov rcx, rbp
call fcn.180016370
mov rsi, rax
test rax, rax
jne 0x180031cc6
mov al, 1
jmp 0x180031ce6
mov r8, rbp
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180031c13
inc rax
test ecx, ecx
jne 0x180031c00
test edx, edx
jne 0x180031d11
mov rcx, qword [r15 + 8]
mov edx, dword [rsp + 0x28]
mov rax, qword [rsi + 0x18]
mov qword [rcx + rdx*8], rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180031cc6
mov eax, dword [r15 + 0xc]
sub dword [r15 + 0x28], eax
mov dword [r15 + 0xc], 0
mov dword [r15 + 0x3c], 0
jmp case.0x180031abd.11
mov eax, dword [r15 + 0x10]
movsxd rdx, dword [r15 + 0xc]
sub eax, edx
mov dword [r15 + 0x10], eax
je 0x180031cc6
mov rcx, qword [r15]
add rdx, rcx
movsxd r8, eax
call sub.VCRUNTIME140.dll_memmove
jmp 0x180031cc6
mov edx, 0xd1
mov rcx, r15
call fcn.18002e480
cmp ax, 0x3c
jle 0x180031cc6
mov r8, r15
mov edx, 0x21
xor ecx, ecx
call fcn.18001a9a0
cmp al, 1
je 0x180031be7
jmp 0x180031cc6
mov eax, dword [r15 + 0xc]
sub dword [r15 + 0x24], eax
jmp case.0x180031abd.11
mov eax, dword [r15]
lea r8, [rsp + 0x30]
mov rdx, rbp
mov dword [rsp + 0x30], eax
mov ecx, 0x9e
call fcn.180012ef0
mov dword [rsp + 0x38], eax
lea rdx, [0x180000000]
mov eax, dword [rsp + 0x80]
inc r13d
inc r12d
cmp r13d, eax
jb 0x180031aa0
movzx eax, bl
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov qword [rdi + 0x10], rax
xor al, al
jmp 0x180031ce6
cmp qword [rsi + 0x18], 0
je 0x180031d64
nop dword [rax + rax]
lea rbx, [rsi + 0x18]
mov r9, rbp
mov rsi, qword [rbx]
mov rax, rsi
sub r9, rsi
movzx r8d, byte [rax]
movzx edx, byte [rax + r9]
sub r8d, edx
jne 0x180031d45
inc rax
test edx, edx
jne 0x180031d30
test r8d, r8d
je 0x180031d5d
mov rax, qword [rsi + 0x18]
mov rcx, rsi
mov qword [rbx], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbx]
cmp qword [rsi + 0x18], 0
jne 0x180031d20
mov al, 2
jmp 0x180031ce6