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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, r8
mov rbx, rcx
mov rsi, qword [rcx + 0x10]
mov byte [r8], 1
cmp dword [r8 + 0x38], 0
mov qword [rsp + 0x30], rsi
jle 0x14006531f
mov dword [rsp + 0x3c], edx
mov r12, qword [r15 + 0x30]
xor r13d, r13d
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x40], r15
mov rax, qword [r12]
mov r14, qword [rax + 0x20]
mov edi, 0
mov esi, 0
test r14, r14
je 0x140065186
mov edi, dword [r14]
mov rcx, rbx
mov edx, edi
call fcn.140058a67
mov byte [rsp + 0x20], 1
mov rcx, rbx
mov rdx, r14
mov esi, eax
mov r8d, eax
xor r9d, r9d
call fcn.140058ab2
cmp dword [r12 + 0x14], 0
js 0x1400651b7
mov r8d, dword [rbx + 0x44]
dec r8d
mov dword [rbx + 0x44], r8d
mov edx, dword [r12 + 0x14]
mov dword [rsp + 0x20], esi
mov rcx, rbx
mov dword [rsp + 0x2c], r8d
mov r9d, 1
call fcn.14006b3ce
jmp 0x1400651bf
mov dword [rsp + 0x2c], 0
mov rax, qword [r12 + 8]
test byte [rax + 4], 0x20
jne 0x1400651d6
mov ebp, esi
mov rsi, qword [rsp + 0x30]
jmp 0x140065270
test edi, edi
jle 0x140065208
add r14, 8
mov ebp, 1
mov rdx, qword [r14]
mov rcx, rbx
call fcn.140058902
mov r15, rax
test rax, rax
jne 0x140065203
add r14, 0x28
lea eax, [rbp + 1]
cmp ebp, edi
mov ebp, eax
jl 0x1400651e3
test r15, r15
jne 0x14006520f
mov rax, qword [rbx]
mov r15, qword [rax + 0x10]
mov r8d, dword [rsp + 0x28]
test r8d, r8d
mov ebp, esi
mov rsi, qword [rsp + 0x30]
jne 0x14006523b
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x2c], 0
je 0x140065238
mov r8d, dword [rbx + 0x38]
inc r8d
mov dword [rbx + 0x38], r8d
jmp 0x14006523b
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 0x52
mov dword [rsp + 0x28], r8d
xor r9d, r9d
call fcn.1400571db
mov rcx, rsi
mov edx, eax
mov r8, r15
mov r9d, 0xfffffffe
call fcn.140059198
mov r15, qword [rsp + 0x40]
mov eax, dword [r12 + 0x10]
mov dword [rsp + 0x20], eax
mov rcx, rsi
mov edx, Ordinal_157
xor r8d, r8d
mov r9d, ebp
call fcn.1400571db
mov rdx, qword [r12 + 8]
mov rcx, rsi
mov r8d, 0xfffffff8
call fcn.140058624
mov eax, dword [rsi + 0x90]
test eax, eax
jle 0x1400652bf
movzx ecx, dil
mov rdx, qword [rsi + 0x88]
dec eax
lea rax, [rax + rax*2]
mov word [rdx + rax*8 + 2], cx
cmp edi, 1
jne 0x1400652e5
test ebp, ebp
mov edx, dword [rsp + 0x2c]
je 0x1400652f4
movzx eax, byte [rbx + 0x1f]
cmp rax, 7
ja 0x1400652f4
lea ecx, [rax + 1]
mov byte [rbx + 0x1f], cl
mov dword [rbx + rax*4 + 0xb4], ebp
jmp 0x1400652f4
cmp dword [rbx + 0x28], edi
mov edx, dword [rsp + 0x2c]
jge 0x1400652f4
mov dword [rbx + 0x28], edi
mov dword [rbx + 0x2c], ebp
test edx, edx
je 0x140065300
mov rcx, rsi
call fcn.1400588d8
inc r13d
add r12, 0x18
cmp r13d, dword [r15 + 0x38]
jl 0x14006514a
mov r8d, dword [rsp + 0x28]
test r8d, r8d
mov edx, dword [rsp + 0x3c]
jne 0x140065331
mov eax, dword [r15 + 0x2c]
xor r14d, r14d
test edx, edx
je 0x140065350
mov r8d, edx
test eax, eax
je 0x140065350
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 0x13
xor r9d, r9d
call fcn.1400571db
mov r14d, eax
mov eax, dword [r15 + 0x2c]
test eax, eax
jle 0x140065379
mov rdi, qword [r15 + 0x20]
add rdi, 0x18
xor ebp, ebp
mov r8d, dword [rdi - 4]
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.140057176
inc ebp
add rdi, 0x20
cmp ebp, dword [r15 + 0x2c]
jl 0x14006535e
mov byte [r15], 0
test r14d, r14d
je 0x1400653be
mov rdx, qword [rsp + 0x30]
mov eax, dword [rdx + 0x90]
mov rcx, qword [rdx]
cmp byte [rcx + 0x61], 0
je 0x14006539f
lea rcx, [0x140177e98]
jmp 0x1400653bb
lea ecx, [rax - 1]
test r14d, r14d
cmovns ecx, r14d
movsxd rcx, ecx
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, qword [rdx + 0x88]
mov dword [rcx + 8], eax
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret