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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
cmp qword [rsp + 0xa8], 0
je 0x140018195
mov rax, qword [rsp + 0xa8]
mov qword [rax], 0
cmp qword [rsp + 0xb0], 0
je 0x1400181af
mov rax, qword [rsp + 0xb0]
mov qword [rax], 0
cmp qword [rsp + 0xa8], 0
je 0x1400181db
cmp qword [rsp + 0xb0], 0
je 0x1400181db
cmp qword [rsp + 0xb8], 0
je 0x1400181db
cmp qword [rsp + 0xc0], 0
jne 0x1400181e5
mov eax, 0x80004003
jmp 0x140018520
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x78], 0
jne 0x1400181fe
mov dword [rsp + 0x68], 1
jmp 0x140018206
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x14001826d
lea rcx, [rsp + 0x28]
call fcn.14001c470
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x14001822d
mov eax, dword [rsp + 0x24]
jmp 0x140018520
mov rax, qword [rsp + 0xa0]
add rax, 0x78
mov rcx, qword [rsp + 0x28]
add rcx, 0x48
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 0x48]
mov qword [rsp + 0x70], rdx
mov r8, rax
lea rdx, [0x140302988]
mov rax, qword [rsp + 0x70]
call qword [rax]
xor eax, eax
test eax, eax
jne 0x140018261
xor eax, eax
test eax, eax
jne 0x140018261
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x80], 0
jne 0x140018289
mov dword [rsp + 0x78], 1
jmp 0x140018291
mov dword [rsp + 0x78], 0
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x140018300
lea rcx, [rsp + 0x30]
call fcn.14001c5e0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x1400182b8
mov eax, dword [rsp + 0x38]
jmp 0x140018520
mov rax, qword [rsp + 0xa0]
add rax, 0x80
mov rcx, qword [rsp + 0x30]
add rcx, 0x48
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x48]
mov qword [rsp + 0x80], rdx
mov r8, rax
lea rdx, reloc.OLEAUT32.dll_VarUI4FromDisp
mov rax, qword [rsp + 0x80]
call qword [rax]
xor eax, eax
test eax, eax
jne 0x1400182f4
xor eax, eax
test eax, eax
jne 0x1400182f4
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0xa0]
add rax, 0x78
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0xa8], 0
jne 0x14001832e
mov dword [rsp + 0x20], 0x80004003
jmp 0x14001836a
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x140018362
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jge 0x14001837a
mov eax, dword [rsp + 0x20]
jmp 0x140018520
mov rax, qword [rsp + 0xa0]
add rax, 0x80
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0xb0], 0
jne 0x1400183a2
mov dword [rsp + 0x20], 0x80004003
jmp 0x1400183de
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x1400183d6
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jge 0x1400183ee
mov eax, dword [rsp + 0x20]
jmp 0x140018520
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax - 0x50]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax - 0x50]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0xf0], 0
jne 0x140018466
mov byte [rsp + 0x3c], 0
xor eax, eax
mov word [rsp + 0x3e], ax
xor eax, eax
mov word [rsp + 0x40], ax
mov edx, 1
lea rcx, [rsp + 0x3c]
call qword [sym.imp.USER32.dll_CreateAcceleratorTableW]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx + 0xf0], rax
mov rax, qword [rsp + 0xc8]
mov dword [rax], 0x20
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0xc0]
shr eax, 2
and eax, 1
mov rcx, qword [rsp + 0xc8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax - 0x50]
call qword [sym.imp.USER32.dll_GetParent]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0xf0]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0xf0], 0
je 0x1400184ff
mov dword [rsp + 0x88], 1
jmp 0x14001850a
mov dword [rsp + 0x88], 0
mov rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x88]
mov dword [rax + 0x18], ecx
mov eax, dword [rsp + 0x20]
add rsp, 0x98
ret