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

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
movsxd rdi, dword [rcx + 0x3c]
mov r12, qword [rcx + 0x180]
mov ebp, dword [rcx + 0x18]
xor r14d, r14d
mov rbx, rcx
mov esi, r14d
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov r15, r14
mov qword [rax + 0x20], r14
cmp edi, r14d
jne 0x140006798
mov dword [rcx + 0x138], r14d
xor eax, eax
jmp 0x140006bca
cmp edi, 0x1fffffff
ja 0x1400067b0
mov ecx, edi
shl ecx, 2
call qword [sym.imp.msvcrt.dll_malloc]
mov r13, rax
jmp 0x1400067b3
mov r13, r14
mov qword [rsp + 0x80], r13
cmp r13, r14
jne 0x1400067ce
mov r14d, 0x8007000e
mov esi, r14d
jmp 0x140006a4c
cmp ebp, r14d
mov r10, r13
jle 0x140006827
lea rcx, [r12 + 4]
dec ebp
mov r8d, 0x10000
lea r9, [rcx + 0x34]
lea rdx, [rbx + 0x64]
mov r11d, 2
cmp dword [rdx], r14d
je 0x140006805
test dword [rcx], r8d
je 0x140006805
mov eax, dword [r9]
mov dword [r10], eax
add r10, 4
add r8d, r8d
add rdx, 4
add r9, 4
sub r11, 1
jne 0x1400067f1
add rcx, 0x58
cmp ebp, r14d
jg 0x1400067db
mov r13, qword [rsp + 0x80]
lea r9, [0x140004bb4]
mov rdx, rdi
mov r8d, 4
mov rcx, r13
call qword [sym.imp.msvcrt.dll_qsort]
test edi, edi
jg 0x140006848
xor edi, edi
jmp 0x140006870
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x88]
lea r8, [0x140004bb4]
mov edx, edi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400076a0
mov edi, eax
mov dword [rbx + 0x138], edi
cmp edi, 0x1fffffff
ja 0x14000688e
mov ecx, edi
shl ecx, 2
call qword [sym.imp.msvcrt.dll_malloc]
mov rbp, rax
jmp 0x140006890
xor ebp, ebp
mov r14d, 0x8007000e
test rbp, rbp
je 0x1400068c2
mov qword [rbx + 0x140], rbp
cmp edi, 0x1fffffff
ja 0x1400068ba
mov ecx, edi
shl ecx, 2
call qword [sym.imp.msvcrt.dll_malloc]
mov r12, rax
jmp 0x1400068bd
xor r12d, r12d
test r12, r12
jne 0x1400068d2
mov rbp, qword [rsp + 0x88]
mov esi, r14d
jmp 0x140006a47
xor edx, edx
mov qword [rbx + 0x148], r12
movsxd r13, edi
test edi, edi
jle 0x140006919
mov r8, qword [rsp + 0x90]
mov r11, qword [rsp + 0x80]
mov r9, r12
sub r8, rbp
sub r9, rbp
mov r10, r13
movsxd rax, dword [r8 + rbp]
mov ecx, dword [r11 + rax*4]
mov dword [rbp], ecx
mov dword [r9 + rbp], edx
inc edx
add rbp, 4
sub r10, 1
jne 0x1400068fe
mov rbp, qword [rsp + 0x88]
lea r9, [0x140006730]
mov r8d, 4
mov rdx, r13
mov rcx, r12
mov qword [0x140009968], rbp
call qword [sym.imp.msvcrt.dll_qsort]
lea r9, [0x1400061a8]
mov r8d, 4
mov rdx, r13
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_qsort]
cmp edi, 0x1fffffff
ja 0x140006972
mov ecx, edi
shl ecx, 2
call qword [sym.imp.msvcrt.dll_malloc]
mov r11, rax
jmp 0x140006975
xor r11d, r11d
test r11, r11
jne 0x140006982
mov esi, r14d
jmp 0x140006a3f
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x150], r11
test edi, edi
jle 0x1400069a3
movsxd rax, dword [r12 + rcx*4]
inc rcx
mov dword [r11 + rax*4], edx
inc edx
cmp rcx, r13
jl 0x140006991
cmp edi, 1
jl 0x1400069c4
lea r8, [rsp + 0x98]
mov rdx, rbp
mov ecx, edi
call fcn.1400077bc
mov r15, qword [rsp + 0x98]
jmp 0x1400069c6
xor eax, eax
xor r8d, r8d
xor edx, edx
mov dword [rbx + 0x13c], eax
xor ecx, ecx
mov qword [rbx + 0x158], r15
mov r9, rbp
jmp 0x1400069ff
dec edi
jmp 0x1400069ec
mov ecx, dword [r15]
add r15, 4
inc edx
test ecx, ecx
je 0x1400069e3
mov eax, edx
imul eax, dword [r9]
add r9, 4
add r8d, eax
dec ecx
test edi, edi
jne 0x1400069df
cmp dword [rbx + 0x14], 1
mov dword [rbx + 0x160], r8d
jle 0x140006a3f
mov eax, dword [rbx + 0x18]
mov rcx, qword [rbx + 0x180]
xor edx, edx
test eax, eax
je 0x140006a35
add rcx, 4
dec eax
test byte [rcx], 8
je 0x140006a2d
inc edx
add rcx, 0x58
test eax, eax
jne 0x140006a24
lea eax, [rdx + r8]
mov dword [rbx + 0x160], eax
mov r13, qword [rsp + 0x80]
test rbp, rbp
jne 0x140006a54
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
cmp qword [rsp + 0x90], 0
jne 0x140006a67
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
test r13, r13
jne 0x140006a74
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
test esi, esi
js 0x140006bc8
mov edx, dword [rbx + 0x160]
lea r15, [rbx + 0x168]
mov r8d, 1
mov rcx, r15
call fcn.140007ae0
test eax, eax
jne 0x140006aa3
mov esi, r14d
jmp 0x140006bc8
mov ebp, dword [rbx + 0x18]
mov rsi, qword [rbx + 0x180]
mov r12, qword [rbx + 0x70]
mov rdi, qword [r15]
test ebp, ebp
je 0x140006bb0
add r12, 8
add rsi, 4
dec ebp
test byte [rsi], 8
je 0x140006b99
cmp dword [rbx + 0x14], 1
jle 0x140006ae5
mov al, byte [rsi + 2]
mov byte [rdi], al
inc rdi
mov dword [r12], 1
mov eax, 2
mov r14d, 0x10000
lea r15, [rsi + 0x34]
mov qword [rsp + 0x88], rax
lea r13, [rbx + 0x64]
cmp dword [r13], 0
je 0x140006b7c
test dword [rsi], r14d
je 0x140006b7c
mov eax, dword [r15]
movsxd r8, dword [rbx + 0x138]
mov rdx, qword [rbx + 0x140]
mov dword [rsp + 0x80], eax
lea rax, [0x140004bb4]
lea rcx, [rsp + 0x80]
mov r9d, 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_bsearch]
mov rdx, qword [rbx + 0x158]
mov r8, rdi
sub rax, qword [rbx + 0x140]
sar rax, 2
movsxd rcx, eax
mov rax, qword [rbx + 0x150]
mov ecx, dword [rax + rcx*4]
call fcn.140007a94
add dword [r12], eax
cdqe
add rdi, rax
mov rax, qword [rsp + 0x88]
add r14d, r14d
add r13, 4
add r15, 4
sub rax, 1
mov qword [rsp + 0x88], rax
jne 0x140006b00
add rsi, 0x58
add r12, 0x30
test ebp, ebp
jne 0x140006ac4
lea r15, [rbx + 0x168]
sub rdi, qword [r15]
movsxd rax, dword [rbx + 0x160]
sub rdi, rax
neg rdi
sbb esi, esi
and esi, 0x80004005
mov eax, esi
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret