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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r9d, dword [rsp + 0xa0]
xor r15d, r15d
mov eax, r9d
mov dword [rsp + 0x98], r15d
not eax
mov dword [rsp + 0xb0], r15d
and eax, 1
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x3c], eax
lea ebx, [r15 + 1]
mov eax, 0x50
mov dword [rsp + 0x34], r15d
cmp dword [rcx + 4], eax
mov r12, r8
mov r14, rcx
mov dword [r11 + 0x28], 0x1000
cmovg eax, dword [rcx + 4]
mov esi, r15d
add eax, 7
mov qword [rdx], r15
and eax, 0xfffffff8
mov ebp, r15d
mov dword [rsp + 0x30], eax
mov r13d, r15d
test r9b, 2
je 0x18004a455
mov dword [rsp + 0x38], ebx
test r8, r8
je 0x18004a372
cmp byte [r8], sil
je 0x18004a455
or rdi, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [r8 + rdi + 1], sil
lea rdi, [rdi + 1]
jne 0x18004a320
lea rcx, [rdi + 1]
call fcn.180038990
mov rsi, rax
test rax, rax
je 0x18004a34b
lea r8, [rdi + 1]
mov rdx, r12
mov rcx, rax
call fcn.180150e10
test rsi, rsi
je 0x18004a925
or rbp, 0xffffffffffffffff
nop dword [rax + rax]
inc rbp
cmp byte [rsi + rbp], r13b
jne 0x18004a360
and ebp, 0x3fffffff
mov r12, r15
mov rax, qword [rsp + 0x80]
mov r14d, ebp
movsxd r15, ebx
mov eax, dword [rax + 4]
add eax, 7
lea rdi, [r14 + r14*2]
movsxd rdx, eax
mov eax, dword [rsp + 0x30]
and rdx, 0xfffffffffffffff8
add eax, eax
movsxd rcx, eax
add rcx, r15
add rcx, rdx
add rdi, rcx
lea rcx, [rdi + 0x1a6]
call fcn.180038990
mov rbx, rax
test rax, rax
je 0x18004a918
lea r8, [rdi + 0x1a6]
xor edx, edx
mov rcx, rax
call fcn.1801530a0
mov rax, qword [rsp + 0x80]
lea rdi, [rbx + 0x138]
mov qword [rbx + 0x120], rdi
add rdi, 0x50
mov qword [rbx + 0x48], rdi
mov eax, dword [rax + 4]
add eax, 7
cdqe
and rax, 0xfffffffffffffff8
add rdi, rax
movsxd rax, dword [rsp + 0x30]
mov qword [rbx + 0x58], rdi
add rdi, rax
mov qword [rbx + 0x50], rdi
add rdi, rax
mov qword [rdi], rbx
add rdi, 0xc
mov qword [rbx + 0xd8], rdi
test ebp, ebp
je 0x18004a5a8
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call fcn.180150e10
lea ecx, [rbp + 1]
add rdi, rcx
test r13, r13
je 0x18004a577
mov r8, r15
mov rdx, r13
mov rcx, rdi
call fcn.180150e10
add rdi, r15
jmp 0x18004a57a
test r12, r12
je 0x18004a372
cmp byte [r8], sil
je 0x18004a372
mov ebx, dword [rcx + 8]
inc ebx
lea eax, [rbx + rbx]
movsxd rcx, eax
call fcn.180038990
mov rsi, rax
test rax, rax
je 0x18004a925
mov r9, rax
mov byte [rax], bpl
mov r8d, ebx
mov rdx, r12
mov rcx, r14
call qword [r14 + 0x40]
mov dword [rsp + 0x98], eax
mov edi, eax
cmp eax, 0x200
jne 0x18004a4c3
mov eax, dword [rsp + 0xa8]
and eax, 0x1000000
neg eax
sbb edi, edi
and edi, 0x60e
mov dword [rsp + 0x98], edi
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], bpl
jne 0x18004a4c7
and eax, 0x3fffffff
mov ebp, eax
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [r12 + rax], r13b
jne 0x18004a4e0
and eax, 0x3fffffff
lea r13d, [rax + 1]
add r13, r12
mov rbx, r13
cmp byte [r13], r15b
je 0x18004a537
nop
or rax, 0xffffffffffffffff
cmp byte [rbx + rax + 1], r15b
lea rax, [rax + 1]
jne 0x18004a504
lea rcx, [rax + 1]
add rcx, rbx
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rcx + rax + 1], r15b
lea rax, [rax + 1]
jne 0x18004a520
lea rbx, [rax + 1]
add rbx, rcx
cmp byte [rbx], r15b
jne 0x18004a500
sub ebx, r13d
inc ebx
test edi, edi
jne 0x18004a568
lea eax, [rbp + 8]
cmp eax, dword [r14 + 8]
jle 0x18004a372
mov ecx, 0xee3a
call fcn.1800e98e0
mov dword [rsp + 0x98], eax
mov edi, eax
test eax, eax
je 0x18004a372
mov rcx, rsi
call fcn.180038ac0
mov eax, edi
jmp 0x18004a92a
inc rdi
mov r8, r14
mov qword [rbx + 0xe0], rdi
mov rdx, rsi
mov rcx, rdi
call fcn.180150e10
add rdi, r14
movabs rax, 0x6c616e72756f6a2d
mov qword [rdi], rax
add rdi, 9
xor r13d, r13d
jmp 0x18004a5b2
xor r13d, r13d
mov qword [rbx + 0xe0], r13
test ebp, ebp
je 0x18004a5d5
mov r8, r14
mov qword [rbx + 0x130], rdi
mov rdx, rsi
mov rcx, rdi
call fcn.180150e10
mov dword [r14 + rdi], 0x6c61772d
jmp 0x18004a5dc
mov qword [rbx + 0x130], r13
test ebp, ebp
je 0x18004a5ed
test rsi, rsi
je 0x18004a5ed
mov rcx, rsi
call fcn.180038ac0
mov rax, qword [rsp + 0x80]
mov r14d, dword [rsp + 0xa8]
mov qword [rbx], rax
mov dword [rbx + 0xb4], r14d
test r12, r12
je 0x18004a772
cmp byte [r12], 0
je 0x18004a772
mov r8, qword [rbx + 0x48]
lea rcx, [rsp + 0x80]
mov rdx, qword [rbx + 0xd8]
mov r9d, r14d
mov qword [rsp + 0x20], rcx
and r9d, 0x1087f7f
mov rcx, rax
mov dword [rsp + 0x80], r13d
call qword [rax + 0x28]
mov edi, dword [rsp + 0x80]
mov r15d, edi
shr r15d, 7
mov esi, eax
and r15d, 1
mov dword [rsp + 0x98], eax
and edi, 1
mov byte [rbx + 0x14], r15b
test eax, eax
jne 0x18004a796
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx]
test rax, rax
jne 0x18004a686
mov esi, r13d
jmp 0x18004a68b
call qword [rax + 0x60]
mov esi, eax
mov ebp, 0x2000
test edi, edi
jne 0x18004a6b6
mov rcx, rbx
call fcn.1800489c0
mov ecx, dword [rbx + 0xb8]
cmp ecx, 0x1000
jbe 0x18004a6b6
cmp ecx, ebp
cmova ecx, ebp
mov dword [rsp + 0xa0], ecx
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x18004a709
cmp byte [rcx - 1], 0
jne 0x18004a6da
cmp byte [rcx - 2], 0
jne 0x18004a6da
cmp byte [rcx - 3], 0
jne 0x18004a6da
cmp byte [rcx - 4], 0
je 0x18004a6df
dec rcx
jmp 0x18004a6c2
lea rdx, str.nolock
call fcn.1800e8dd0
test rax, rax
je 0x18004a709
xor r8d, r8d
mov rcx, rax
lea edx, [r8 + 1]
call fcn.1800a8450
test al, al
mov ecx, r13d
setne cl
jmp 0x18004a70c
mov ecx, r13d
mov byte [rbx + 0x11], cl
test ebp, esi
jne 0x18004a76c
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x18004a7c6
cmp byte [rcx - 1], 0
jne 0x18004a73b
cmp byte [rcx - 2], 0
jne 0x18004a73b
cmp byte [rcx - 3], 0
jne 0x18004a73b
cmp byte [rcx - 4], 0
je 0x18004a740
dec rcx
jmp 0x18004a723
lea rdx, str.immutable
call fcn.1800e8dd0
test rax, rax
je 0x18004a7c6
xor r8d, r8d
mov rcx, rax
lea edx, [r8 + 1]
call fcn.1800a8450
test al, al
mov ecx, r13d
setne cl
test ecx, ecx
je 0x18004a7c6
or r14d, 1
jmp 0x18004a777
mov r15d, dword [rsp + 0x34]
mov esi, dword [rsp + 0x98]
mov ebp, 1
mov edi, r14d
mov word [rbx + 0x15], 0x401
and edi, ebp
mov byte [rbx + 0x11], bpl
test esi, esi
je 0x18004a7cd
mov rdi, qword [rbx + 0x48]
mov rax, qword [rdi]
test rax, rax
je 0x18004a7ab
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rdi], r13
mov rcx, qword [rbx + 0x118]
call fcn.180045e20
mov rcx, rbx
call fcn.180038ac0
mov eax, esi
jmp 0x18004a92a
mov ebp, dword [rsp + 0xb0]
or r8d, 0xffffffff
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.180049740
mov esi, eax
test eax, eax
jne 0x18004a796
mov r14d, dword [rsp + 0x38]
lea rax, [fcn.18004a0c0]
mov ecx, dword [rsp + 0xa0]
test r14d, r14d
mov r8d, r13d
mov r9, r13
cmove r9, rax
mov r12d, 0x88
mov rax, qword [rbx + 0x120]
sete r8b
mov qword [rsp + 0x28], rax
mov edx, r12d
mov qword [rsp + 0x20], rbx
call fcn.180045210
mov esi, eax
test eax, eax
jne 0x18004a796
mov esi, dword [rsp + 0x3c]
mov byte [rbx + 0xa], sil
mov dword [rbx + 0xbc], 0x3fffffff
mov byte [rbx + 0x10], bpl
mov byte [rbx + 8], bpl
mov byte [rbx + 0x17], bpl
mov byte [rbx + 0x13], r14b
mov byte [rbx + 0x12], dil
mov byte [rbx + 0xd], al
test bpl, bpl
je 0x18004a86a
mov word [rbx + 0xb], 1
jmp 0x18004a870
mov word [rbx + 0xb], 0x100
cmp byte [rbx + 0xb], 0
je 0x18004a87c
mov byte [rbx + 0xe], 0
jmp 0x18004a880
mov byte [rbx + 0xe], 2
movzx ecx, byte [rbx + 0xe]
movzx eax, cl
shl al, 2
cmp byte [rbx + 0xc], 0
mov byte [rbx + 0xf], al
je 0x18004a898
or al, cl
mov byte [rbx + 0xf], al
and byte [rbx + 0x19], 0xfe
mov rcx, rbx
mov word [rbx + 0xb0], r12w
mov qword [rbx + 0xd0], 0xffffffffffffffff
call fcn.1800489c0
test esi, esi
jne 0x18004a8c1
mov byte [rbx + 9], 2
jmp 0x18004a8cf
test r14d, r14d
jne 0x18004a8cb
test r15d, r15d
je 0x18004a8cf
mov byte [rbx + 9], 4
cmp dword [rbx + 0x30], 0
lea rax, [0x180052110]
mov qword [rbx + 0x108], rax
je 0x18004a8ec
lea rax, [0x18004b200]
jmp 0x18004a902
cmp byte [rbx + 0x1b], 0
lea rax, [fcn.18004ae40]
lea rcx, [0x18004b050]
cmovne rax, rcx
mov qword [rbx + 0x110], rax
mov rax, qword [rsp + 0x88]
mov qword [rax], rbx
xor eax, eax
jmp 0x18004a92a
test rsi, rsi
je 0x18004a925
mov rcx, rsi
call fcn.180038ac0
mov eax, 7
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret