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

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r14, qword [rcx + 0x10]
xor eax, eax
mov ebp, eax
mov r10d, r9d
mov rbx, r8
mov rdi, rdx
mov r15, rcx
mov rsi, qword [r14 + 0x18]
movsxd r13, dword [rsi + 0x54]
lea eax, [r13 + 1]
mov dword [rsi + 0x54], eax
lea eax, [r13 - 1]
test r13d, eax
jne 0x1400817a8
mov rdx, qword [rsi + 0x58]
lea eax, [r13*2 + 1]
mov rcx, qword [rsi]
movsxd r8, eax
shl r8, 2
call fcn.1400356c0
mov r10d, dword [rsp + 0x98]
mov qword [rsi + 0x58], rax
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x1400817b9
mov dword [rcx + r13*4], 0xffffffff
movzx ecx, byte [rdi + 0x46]
not r13d
and cl, 0x20
mov dword [rsp + 0x80], r13d
mov r8d, 0x21
mov byte [rsp + 0x88], cl
cmp byte [rsp + 0xc8], bpl
jne 0x140081812
movsx eax, word [rsp + 0xb0]
test cl, cl
mov dword [rsp + 0x28], eax
mov edx, 0x1e
mov eax, dword [rsp + 0xa8]
cmove edx, r8d
mov r8d, r10d
mov dword [rsp + 0x20], eax
mov r9d, r13d
mov rcx, r14
call fcn.1400567a0
mov rax, qword [r15]
movzx r12d, byte [rsp + 0xc0]
test dword [rax + 0x2c], 0x80000
je 0x140081850
mov rcx, qword [rdi + 0x68]
lea r8, [rsp + 0x90]
mov rdx, qword [rdi]
add rcx, 0x50
call fcn.140039830
test rax, rax
je 0x14008184a
cmp qword [rax + 0x10], rbp
jne 0x140081859
cmp qword [rdi + 0x20], rbp
jne 0x140081859
test rbx, rbx
je 0x140081a29
xor eax, eax
mov rsi, rbx
test rbx, rbx
je 0x140081892
cmp byte [rsi + 0x10], 0x6d
jne 0x140081889
test byte [rsi + 0x11], 3
je 0x140081889
movzx r9d, r12b
mov r8, rdi
mov rdx, rsi
mov rcx, r15
call fcn.14009f1a0
test rax, rax
je 0x140081889
or ebp, dword [rax + 0x1c]
mov rsi, qword [rsi + 0x40]
test rsi, rsi
jne 0x140081863
mov rdx, rdi
mov rcx, r15
call fcn.140087520
mov edx, dword [r15 + 0x38]
mov r12d, eax
movsx ecx, word [rdi + 0x3e]
or r12d, ebp
inc ecx
lea ebp, [rdx + 1]
add edx, ecx
mov dword [r15 + 0x38], edx
mov rcx, qword [r14 + 0x18]
movsxd rdx, dword [r14 + 0xb8]
cmp dword [rcx + 0x3c], edx
jg 0x1400818e6
mov r8d, dword [rsp + 0xa8]
xor eax, eax
mov r9d, ebp
mov dword [rsp + 0x20], eax
mov rcx, r14
lea edx, [rax + 0x54]
call fcn.140056300
xor edx, edx
jmp 0x14008191d
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov edx, dword [rsp + 0xa8]
mov dword [r14 + 0xb8], eax
mov rax, qword [r14 + 0x68]
mov dword [rax + rcx*8 + 4], edx
xor edx, edx
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov word [rax + rcx*8], 0x54
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 8], ebp
mov esi, edx
cmp dx, word [rdi + 0x3e]
jge 0x14008196d
mov r13d, dword [rsp + 0x98]
nop dword [rax]
cmp r12d, 0xffffffff
je 0x140081941
cmp esi, 0x1f
jg 0x14008195b
bt r12d, esi
jae 0x14008195b
lea eax, [rbp + 1]
mov r9d, esi
add eax, esi
mov r8d, r13d
mov rdx, rdi
mov dword [rsp + 0x20], eax
mov rcx, r14
call fcn.140070950
movsx eax, word [rdi + 0x3e]
inc esi
cmp esi, eax
jl 0x140081930
mov r13d, dword [rsp + 0x80]
mov r12d, dword [r14 + 0xb8]
mov eax, r12d
mov rsi, rbx
test rbx, rbx
je 0x1400819be
nop
cmp byte [rsi + 0x10], 0x6d
jne 0x1400819ae
cmp byte [rsi + 0x11], 1
jne 0x1400819ae
movzx eax, byte [rsp + 0xc0]
mov r9d, ebp
mov dword [rsp + 0x28], r13d
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x20], eax
mov rcx, r15
call fcn.14009f1e0
mov rsi, qword [rsi + 0x40]
test rsi, rsi
jne 0x140081980
mov eax, dword [r14 + 0xb8]
cmp r12d, eax
jge 0x140081a04
movsx eax, word [rsp + 0xb0]
mov edx, 0x21
cmp byte [rsp + 0x88], 0
mov ecx, 0x1e
mov r8d, dword [rsp + 0x98]
mov r9d, r13d
cmove ecx, edx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa8]
mov edx, ecx
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.1400567a0
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov r8d, ebp
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov rcx, r15
call fcn.140086d20
movzx r12d, byte [rsp + 0xc0]
cmp qword [rdi + 0x18], 0
jne 0x140081ba6
mov esi, dword [rsp + 0xd0]
xor eax, eax
mov r9d, dword [rsp + 0xa0]
mov rdx, rdi
mov r8d, dword [rsp + 0x98]
mov rcx, r15
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call fcn.140081cc0
mov rax, qword [r14 + 0x18]
xor r9d, r9d
cmp byte [rsp + 0xb8], r9b
mov edx, r9d
movsxd rcx, dword [r14 + 0xb8]
mov r8d, dword [rsp + 0x98]
setne dl
cmp dword [rax + 0x3c], ecx
jg 0x140081aa1
mov dword [rsp + 0x20], r9d
mov rcx, r14
mov r9d, edx
mov edx, 0x75
call fcn.140056300
jmp 0x140081ad1
lea eax, [rcx + 1]
mov dword [r14 + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14 + 0x68]
mov word [rax + rcx*8], 0x75
mov byte [rax + rcx*8 + 3], r9b
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
mov rcx, qword [r14]
cmp byte [rcx + 0x55], 0
je 0x140081ae9
mov r8, rdi
mov edx, 0xffffffec
call fcn.140056e20
jmp 0x140081b22
movsxd rax, dword [r14 + 0xb8]
lea rdx, [rax + rax*2]
mov rax, qword [r14 + 0x68]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], 0
lea rdx, [rax + rdx*8]
je 0x140081b1a
mov r9d, 0xffffffec
mov r8, rdi
mov rcx, r14
call fcn.140057050
jmp 0x140081b22
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xec
movzx r8d, byte [rsp + 0xc8]
test r8b, r8b
je 0x140081b48
movsxd rax, dword [r14 + 0xb8]
test eax, eax
jle 0x140081b48
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 0x68]
mov byte [rax + rcx*8 - 0x15], 4
test esi, esi
js 0x140081b80
mov rax, qword [r14 + 0x18]
movsxd rcx, dword [r14 + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x140081c86
xor eax, eax
xor r9d, r9d
mov r8d, esi
mov dword [rsp + 0x20], eax
mov rcx, r14
lea edx, [rax + 0x75]
call fcn.140056300
movzx r8d, byte [rsp + 0xc8]
xor r9d, r9d
movsxd rax, dword [r14 + 0xb8]
test eax, eax
jle 0x140081ba6
mov edx, 2
lea rcx, [rax + rax*2]
mov rax, qword [r14 + 0x68]
cmp r8b, dl
cmovne edx, r9d
mov byte [rax + rcx*8 - 0x15], dl
mov rax, qword [r15]
test dword [rax + 0x2c], 0x80000
je 0x140081c20
mov rcx, qword [rdi + 0x68]
lea r8, [rsp + 0xc8]
mov rdx, qword [rdi]
add rcx, 0x50
call fcn.140039830
test rax, rax
je 0x140081c20
mov rsi, qword [rax + 0x10]
test rsi, rsi
je 0x140081c20
nop dword [rax + rax]
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call fcn.140087770
test rax, rax
je 0x140081c17
mov dword [rsp + 0x28], 0
mov r9d, ebp
mov r8, rdi
mov dword [rsp + 0x20], 2
mov rdx, rax
mov rcx, r15
call fcn.14009f1e0
mov rsi, qword [rsi + 0x18]
test rsi, rsi
jne 0x140081be0
test rbx, rbx
je 0x140081c58
cmp byte [rbx + 0x10], 0x6d
jne 0x140081c4f
cmp byte [rbx + 0x11], 2
jne 0x140081c4f
movzx eax, r12b
mov r9d, ebp
mov dword [rsp + 0x28], r13d
mov r8, rdi
mov rdx, rbx
mov dword [rsp + 0x20], eax
mov rcx, r15
call fcn.14009f1e0
mov rbx, qword [rbx + 0x40]
test rbx, rbx
jne 0x140081c25
mov rax, qword [r14 + 0x18]
mov rdx, qword [rax + 0x58]
test rdx, rdx
je 0x140081c75
mov eax, dword [r14 + 0xb8]
not r13d
movsxd rcx, r13d
mov dword [rdx + rcx*4], eax
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [r14 + 0xb8], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14 + 0x68]
mov word [rax + rcx*8], 0x75
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], esi
mov qword [rax + rcx*8 + 8], r9
mov qword [rax + rcx*8 + 0x10], r9
jmp 0x140081b83