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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x138
mov qword [rsp + 0x88], 0xfffffffffffffffe
cmp qword [rsp + 0x148], 0
je 0x140003b1d
cmp dword [rsp + 0x150], 0x10
jl 0x140003b1d
mov eax, dword [rsp + 0x150]
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
test eax, eax
jne 0x140003b1d
cmp qword [rsp + 0x158], 0
jne 0x140003b24
xor al, al
jmp 0x140003e87
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax]
test eax, eax
je 0x140003ce1
mov rax, qword [rsp + 0x140]
add rax, 0x2c8
mov r9d, 8
mov r8, qword [rsp + 0x148]
mov edx, SafeArrayLock
mov rcx, rax
call fcn.1401b5e68
mov eax, dword [rsp + 0x24]
add eax, 8
mov dword [rsp + 0x24], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.140004a10
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.140003540
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x140]
add rax, 0x2c8
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0xd0]
call fcn.140003590
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
call fcn.140002fd0
mov byte [rsp + 0x28], al
lea rcx, [rsp + 0xd0]
call fcn.140003740
nop
lea rcx, [rsp + 0xf0]
call fcn.140003740
nop
lea rcx, [rsp + 0xb0]
call fcn.140003780
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x140003c2e
xor al, al
jmp 0x140003e87
mov rax, qword [rsp + 0x148]
add rax, 8
mov rcx, qword [rsp + 0x140]
add rcx, 0x2c8
mov r9d, 8
mov r8, rax
mov edx, SafeArrayLock
call fcn.1401b5e68
mov eax, dword [rsp + 0x24]
add eax, 8
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x140]
add rax, 0x2c8
mov r8d, 8
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140003590
nop
lea rax, [rsp + 0x110]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
call fcn.1400034d0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x140]
add rax, 0xa0
mov r8, qword [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x140]
call fcn.140006140
nop
lea rcx, [rsp + 0x90]
call fcn.140003740
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x150]
cmp dword [rsp + 0x24], eax
jge 0x140003e77
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x148]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x140]
add rcx, 0x2c8
mov r9d, SafeArrayLock
mov r8, rax
mov edx, SafeArrayLock
call fcn.1401b5e68
mov eax, dword [rsp + 0x24]
add eax, 0x10
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x140]
add rax, 0x1d4
mov rcx, qword [rsp + 0x140]
add rcx, 0x2d8
mov rdx, qword [rsp + 0x140]
add rdx, 0x2c8
mov qword [rsp + 0x48], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x48]
mov rcx, rax
call fcn.140001540
mov dword [rsp + 0x3c], SafeArrayLock
mov eax, dword [rsp + 0x150]
cmp dword [rsp + 0x24], eax
jne 0x140003e23
mov eax, 1
imul rax, rax, 0xf
mov rcx, qword [rsp + 0x140]
movsx eax, byte [rcx + rax + 0x2d8]
mov dword [rsp + 0x34], eax
mov byte [rsp + 0x20], 1
mov dword [rsp + 0x30], SafeArrayLock
mov dword [rsp + 0x38], 0
jmp 0x140003dd5
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jge 0x140003e0d
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x140]
movsx eax, byte [rcx + rax + 0x2d8]
cmp eax, dword [rsp + 0x34]
je 0x140003e0b
mov byte [rsp + 0x20], 0
jmp 0x140003e0d
jmp 0x140003dcb
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140003e23
mov eax, SafeArrayLock
sub eax, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x140]
add rcx, 0x2d8
movsxd rdx, dword [rsp + 0x2c]
mov r8, qword [rsp + 0x158]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x50], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x50]
mov rcx, rax
call fcn.1401b5900
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
jmp 0x140003ce9
mov rax, qword [rsp + 0x160]
mov ecx, dword [rsp + 0x2c]
mov dword [rax], ecx
mov al, 1
add rsp, 0x138
ret