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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rax, qword [rdx]
mov r15, rcx
movzx ebp, byte [rdx + 0x24]
mov rdi, rdx
mov rbx, qword [rcx + 0x10]
not ebp
mov r14d, dword [rsp + 0xd0]
xor ecx, ecx
mov r13d, dword [rax]
and ebp, 1
mov eax, dword [rdx + 8]
mov r12d, r13d
add r12d, ebp
mov dword [rsp + 0x30], ecx
add r12d, dword [rsp + 0xc8]
mov dword [rsp + 0x3c], r12d
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xa8], ecx
test r14d, r14d
je 0x1401406c2
mov esi, r9d
sub esi, r14d
jmp 0x1401406d0
mov eax, dword [r15 + 0x38]
lea esi, [rax + 1]
add eax, r12d
mov dword [r15 + 0x38], eax
mov eax, dword [r8 + 0xc]
test eax, eax
je 0x1401406dc
inc eax
jmp 0x1401406e0
mov eax, dword [r8 + 8]
mov r9d, dword [rsp + 0xc0]
mov ecx, 5
mov dword [rsp + 0xd0], eax
mov r8d, esi
mov eax, dword [r15 + 0x44]
dec eax
mov dword [r15 + 0x44], eax
test r9d, r9d
mov dword [rdx + 0x1c], eax
mov eax, 1
mov rdx, qword [rdx]
cmovne eax, ecx
mov rcx, r15
mov byte [rsp + 0x20], al
call fcn.14010d6a0
test ebp, ebp
je 0x140140780
movsxd rcx, dword [rbx + 0x90]
lea edx, [rsi + r13]
mov r8d, dword [rdi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x14014074f
xor eax, eax
mov r9d, edx
mov rcx, rbx
mov dword [rsp + 0x20], eax
lea edx, [rax + 0x7e]
call fcn.1400e9000
jmp 0x140140780
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x7e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
test r14d, r14d
jne 0x1401407a9
mov eax, dword [rsp + 0xc8]
test eax, eax
jle 0x1401407a9
mov edx, dword [rsp + 0xb8]
lea r8d, [rsi + r13]
add r8d, ebp
mov r9d, eax
mov rcx, r15
call fcn.14010b0e0
mov eax, dword [rsp + 0xa0]
test eax, eax
jle 0x140140a6d
mov r8, qword [rsp + 0xb0]
mov r9d, esi
mov rdx, rdi
mov dword [rsp + 0x20], r12d
mov rcx, r15
call fcn.140140590
mov edx, dword [r15 + 0x38]
lea r8d, [rsi + r13]
mov dword [rsp + 0x30], eax
mov eax, r13d
lea r14d, [rdx + 1]
add edx, dword [rdi + 8]
mov dword [r15 + 0x38], edx
sub eax, dword [rdi + 8]
add eax, ebp
mov dword [rsp + 0xc0], r14d
mov dword [rsp + 0x34], eax
test ebp, ebp
jne 0x140140806
mov r8d, dword [rdi + 0xc]
mov edx, 0x11
mov eax, 0x78
test ebp, ebp
mov rcx, rbx
cmove edx, eax
call fcn.1400e9170
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 8]
mov dword [rsp + 0x38], eax
cmp dword [rbx + 0x94], ecx
jg 0x140140853
mov dword [rsp + 0x20], edx
mov r9d, esi
mov edx, 0x5a
mov r8d, r14d
mov rcx, rbx
call fcn.1400e9000
lea r14, [rbx + 0x88]
jmp 0x14014088e
mov r8d, dword [rsp + 0xc0]
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
lea r14, [rbx + 0x88]
xor r9d, r9d
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x5a
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x1401408a0
lea rcx, [0x140971098]
jmp 0x1401408af
movsxd rax, dword [rdi + 0x18]
lea rcx, [rax + rax*2]
mov rax, qword [r14]
lea rcx, [rax + rcx*8]
mov rax, qword [r15]
mov qword [rsp + 0x40], rcx
cmp byte [rax + 0x67], 0
jne 0x140140c59
mov rbp, qword [rcx + 0x10]
xor edx, edx
mov eax, dword [rsp + 0x34]
add eax, dword [rsp + 0xc8]
mov dword [rcx + 8], eax
movzx r8d, word [rbp + 6]
mov rcx, qword [rbp + 0x18]
call fcn.1405f80d0
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x14014090a
cmp qword [rax + 0x2e8], 0
jne 0x140140942
add dword [rbp], 0xffffffff
jne 0x140140942
mov rcx, qword [rbp + 0x10]
mov rdx, rbp
call fcn.1400b9c90
jmp 0x140140942
movsxd rax, dword [rbx + 0x90]
lea rdx, [rax + rax*2]
mov rax, qword [r14]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], 0
lea rdx, [rax + rdx*8]
je 0x14014093a
mov r9d, 0xfffffff8
mov r8, rbp
mov rcx, rbx
call fcn.1400ea620
jmp 0x140140942
mov qword [rdx + 0x10], rbp
mov byte [rdx + 1], 0xf8
movzx r9d, word [rbp + 8]
mov rcx, r15
movzx eax, word [rbp + 6]
mov r8d, dword [rsp + 0xa0]
sub r9d, eax
mov rdx, qword [rdi]
dec r9d
call fcn.140141dc0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rcx + 0x10], rax
lea edx, [r9 + 0xe]
mov eax, dword [rbx + 0x90]
mov rcx, rbx
mov dword [rsp + 0xc8], eax
lea r8d, [rax + 1]
mov dword [rsp + 0x20], r8d
call fcn.1400e9250
dec dword [r15 + 0x44]
mov edx, 0xa
mov eax, dword [r15 + 0x44]
mov rcx, rbx
mov dword [rdi + 0x14], eax
inc dword [r15 + 0x38]
mov r8d, dword [r15 + 0x38]
mov r9d, dword [rdi + 0x14]
mov dword [rdi + 0x10], r8d
call fcn.1400e91e0
mov r8d, dword [rdi + 0xc]
mov edx, 0x92
mov rcx, rbx
call fcn.1400e9170
mov ebp, dword [rsp + 0xd0]
test ebp, ebp
je 0x1401409ea
mov r9d, dword [rdi + 0x1c]
mov r8d, ebp
mov edx, 0x11
mov rcx, rbx
call fcn.1400e91e0
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x140140a02
lea rax, [0x140971098]
jmp 0x140140a12
movsxd rax, dword [rsp + 0x38]
lea rcx, [rax + rax*2]
mov rax, qword [r14]
lea rax, [rax + rcx*8]
mov r8d, dword [rsp + 0xc0]
mov rcx, r15
mov dword [rax + 8], edx
mov edx, esi
mov r9d, dword [rdi + 8]
call fcn.14010b0e0
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x140140a4d
lea rax, [0x140971098]
mov dword [rax + 8], edx
mov eax, dword [rsp + 0xa0]
jmp 0x140140a7b
movsxd rax, dword [rsp + 0xc8]
lea rcx, [rax + rax*2]
mov rax, qword [r14]
mov dword [rax + rcx*8 + 8], edx
lea rax, [rax + rcx*8]
mov eax, dword [rsp + 0xa0]
jmp 0x140140a7b
mov ebp, dword [rsp + 0xd0]
lea r14, [rbx + 0x88]
test ebp, ebp
je 0x140140b88
mov r9d, dword [rbx + 0x90]
mov r8d, ebp
mov r12d, dword [rdi + 0xc]
add r9d, 4
mov edx, 0x3c
mov rcx, rbx
call fcn.1400e91e0
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x140140ad0
xor eax, eax
xor r9d, r9d
mov r8d, r12d
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea edx, [rax + 0x20]
call fcn.1400e9000
mov rdx, r14
xor r8d, r8d
jmp 0x140140b00
lea eax, [rcx + 1]
xor r8d, r8d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
lea rdx, [rbx + 0x88]
mov rax, qword [rdx]
mov dword [rax + rcx*8], 0x20
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], r8
mov qword [rax + rcx*8 + 0x10], r8
mov eax, dword [rsp + 0xa0]
sub r13d, eax
movsxd rcx, dword [rbx + 0x90]
mov dword [rsp + 0xa8], ecx
lea ebp, [rsi + rax]
cmp dword [rbx + 0x94], ecx
jg 0x140140b47
xor r9d, r9d
mov dword [rsp + 0x28], r13d
mov r8d, r12d
mov dword [rsp + 0x20], ebp
mov rcx, rbx
lea edx, [r9 + 0x28]
call fcn.1400e9060
mov dword [rsp + 0xa8], eax
jmp 0x140140b71
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdx]
mov dword [rax + rcx*8], 0xfd28
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov dword [rax + rcx*8 + 0x10], r13d
mov r8d, r12d
mov edx, 0x82
mov rcx, rbx
call fcn.1400e9170
mov r12d, dword [rsp + 0x3c]
jmp 0x140140b8b
lea ebp, [rsi + rax]
mov r9d, dword [rsp + 0x30]
test r9d, r9d
jne 0x140140bb3
mov r8, qword [rsp + 0xb0]
mov r9d, esi
mov rdx, rdi
mov dword [rsp + 0x20], r12d
mov rcx, r15
call fcn.140140590
mov r9d, eax
movzx edx, byte [rdi + 0x24]
sub r12d, dword [rsp + 0xa0]
and edx, 1
movsxd rcx, dword [rbx + 0x90]
add edx, 0x8a
mov r8d, dword [rdi + 0xc]
cmp dword [rbx + 0x94], ecx
jg 0x140140bee
mov dword [rsp + 0x28], r12d
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.1400e9060
jmp 0x140140c20
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
mov byte [rax + rcx*8], dl
xor edx, edx
mov word [rax + rcx*8 + 2], dx
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r9d
mov dword [rax + rcx*8 + 0xc], ebp
mov dword [rax + rcx*8 + 0x10], r12d
mov byte [rax + rcx*8 + 1], 0xfd
movsxd rcx, dword [rsp + 0xa8]
test ecx, ecx
je 0x140140c59
mov edx, dword [rdi + 0x20]
test edx, edx
jne 0x140140c39
mov edx, dword [rbx + 0x90]
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x140140c4b
lea rax, [0x140971098]
jmp 0x140140c56
mov rax, qword [r14]
lea rcx, [rcx + rcx*2]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret