Function at 0x14000370c
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
push rdi
sub rsp, 0x3f0
cmp dword [rsp + 0x410], 0x127
jne 0x1400037e9
mov rax, qword [rsp + 0x418]
and rax, 0xffff
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x418]
shr rax, 0x10
and rax, 0xffff
mov word [rsp + 0x2c], ax
mov rdx, qword [rsp + 0x408]
mov rcx, qword [rsp + 0x400]
call fcn.14000765c
mov dword [rsp + 0x28], eax
movzx eax, word [rsp + 0x24]
cmp eax, 3
jne 0x140003790
mov dword [rsp + 0x28], 7
jmp 0x1400037ca
movzx eax, word [rsp + 0x24]
cmp eax, 2
jne 0x1400037af
movzx eax, word [rsp + 0x2c]
not eax
mov ecx, dword [rsp + 0x28]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x1400037ca
movzx eax, word [rsp + 0x24]
cmp eax, 1
jne 0x1400037ca
movzx eax, word [rsp + 0x2c]
mov ecx, dword [rsp + 0x28]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x408]
mov rcx, qword [rsp + 0x400]
call fcn.1400076f0
jmp 0x14000404e
cmp dword [rsp + 0x410], 0x10
jne 0x14000380d
mov rdx, qword [rsp + 0x408]
mov rcx, qword [rsp + 0x400]
call fcn.140003544
jmp 0x14000404e
cmp dword [rsp + 0x410], 0x133
jne 0x1400038de
mov rax, qword [rsp + 0x418]
mov qword [rsp + 0xc8], rax
mov ecx, 5
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov qword [rsp + 0xd0], rax
mov r9, qword [rsp + 0x420]
mov r8, qword [rsp + 0x418]
mov edx, dword [rsp + 0x410]
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.COMCTL32.dll_DefSubclassProc]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rsp + 0x80], rax
jne 0x1400038cc
mov rax, qword [rsp + 0x400]
mov rax, qword [rax + 0x88]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x400]
mov edx, dword [rax + 0x28]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rax, qword [rsp + 0x400]
mov edx, dword [rax + 0x80]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.GDI32.dll_SetBkColor]
mov rax, qword [rsp + 0x80]
jmp 0x140004073
cmp dword [rsp + 0x410], 0x138
jne 0x1400039f6
mov rax, qword [rsp + 0x418]
mov qword [rsp + 0x60], rax
mov ecx, 0xf
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov qword [rsp + 0xd8], rax
mov ecx, 8
call qword [sym.imp.USER32.dll_GetSysColor]
mov dword [rsp + 0xa0], eax
mov ecx, 0xf
call qword [sym.imp.USER32.dll_GetSysColor]
mov dword [rsp + 0x74], eax
mov r9, qword [rsp + 0x420]
mov r8, qword [rsp + 0x418]
mov edx, dword [rsp + 0x410]
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.COMCTL32.dll_DefSubclassProc]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_GetTextColor]
mov dword [rsp + 0x70], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_GetBkColor]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0xd8]
cmp qword [rsp + 0x88], rax
jne 0x1400039a1
mov rax, qword [rsp + 0x400]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x70], eax
jne 0x1400039c4
mov rax, qword [rsp + 0x400]
mov edx, dword [rax + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0x78], eax
jne 0x1400039e4
mov rax, qword [rsp + 0x400]
mov edx, dword [rax + 0x2c]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SetBkColor]
mov rax, qword [rsp + 0x88]
jmp 0x140004073
cmp dword [rsp + 0x410], 0x14
jne 0x140003a75
lea rcx, [rsp + 0x130]
call fcn.14000d8e4
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rax, qword [rsp + 0x418]
mov qword [rsp + 0xe0], rax
mov rcx, qword [rsp + 0xe0]
call fcn.14002e0d4
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x400]
mov r8d, dword [rax + 0x2c]
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0xe8]
call fcn.14002f308
xor eax, eax
jmp 0x140004073
cmp dword [rsp + 0x410], 0x85
je 0x140003a93
cmp dword [rsp + 0x410], 0x86
jne 0x140003c5e
mov r9, qword [rsp + 0x420]
mov r8, qword [rsp + 0x418]
mov edx, dword [rsp + 0x410]
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.COMCTL32.dll_DefSubclassProc]
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x50]
call fcn.14000d8e4
lea rcx, [rsp + 0x110]
call fcn.14000d8e4
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_GetClientRect]
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r9d, 2
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [rsp + 0x114]
neg eax
mov ecx, dword [rsp + 0x110]
neg ecx
mov r8d, eax
mov edx, ecx
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x54]
sub eax, 3
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_GetWindowDC]
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [rsp + 0x408]
jne 0x140003b80
mov dword [rsp + 0x30], 1
jmp 0x140003b88
mov dword [rsp + 0x30], 0
mov al, byte [rsp + 0x30]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140003baf
mov rax, qword [rsp + 0x400]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xa8], rax
jmp 0x140003bc3
mov rax, qword [rsp + 0x400]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0xa8], rax
mov r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_FillRect]
mov eax, dword [rsp + 0x5c]
dec eax
mov dword [rsp + 0x54], eax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140003c07
mov rax, qword [rsp + 0x400]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0xb0], rax
jmp 0x140003c1b
mov rax, qword [rsp + 0x400]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xb0], rax
mov r8, qword [rsp + 0xb0]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_FillRect]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rax, qword [rsp + 0xf0]
jmp 0x140004073
cmp dword [rsp + 0x410], 0x15
jne 0x140003cb9
mov rcx, qword [rsp + 0x400]
call fcn.140002ac8
mov rcx, qword [rsp + 0x400]
call fcn.140002e94
mov r9d, 0x581
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_RedrawWindow]
mov r9d, 0x185
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x14000404e
cmp dword [rsp + 0x410], 0x91
jne 0x140003dff
mov rax, qword [rsp + 0x420]
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x1b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x1b0], 0x30
lea r9, [rsp + 0x1b0]
xor r8d, r8d
mov edx, 0xfffffffd
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_GetMenuBarInfo]
lea rdx, [rsp + 0x1b4]
lea rcx, [rsp + 0x140]
call fcn.14000c5e8
lea rcx, [rsp + 0x120]
call fcn.14000d8e4
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x124]
neg eax
mov ecx, dword [rsp + 0x120]
neg ecx
mov r8d, eax
mov edx, ecx
lea rcx, [rsp + 0x140]
call qword [sym.imp.USER32.dll_OffsetRect]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [rsp + 0x408]
jne 0x140003d8e
mov dword [rsp + 0x34], 1
jmp 0x140003d96
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x140003dbd
mov rax, qword [rsp + 0x400]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xb8], rax
jmp 0x140003dd1
mov rax, qword [rsp + 0x400]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0xb8], rax
mov r8, qword [rsp + 0xb8]
lea rdx, [rsp + 0x140]
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_FillRect]
xor eax, eax
jmp 0x140004073
cmp dword [rsp + 0x410], 0x92
jne 0x14000404e
mov rax, qword [rsp + 0x420]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x28
mov rdx, rax
lea rcx, [rsp + 0x150]
call fcn.14000c5e8
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x1e0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x50
rep stosb byte [rdi], al
mov dword [rsp + 0x160], 0x50
mov dword [rsp + 0x164], 0x40
mov dword [rsp + 0x168], 0
mov dword [rsp + 0x1a0], 0x104
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x198], rax
lea r9, [rsp + 0x160]
mov r8d, 1
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 0x58]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x98]
call fcn.14000c714
nop
mov rcx, qword [rsp + 0xc0]
call fcn.14002e0d4
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x7c], 0x29
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [rsp + 0x408]
jne 0x140003f36
mov dword [rsp + 0x38], 1
jmp 0x140003f3e
mov dword [rsp + 0x38], 0
mov al, byte [rsp + 0x38]
mov byte [rsp + 0x22], al
mov eax, dword [rsp + 0x44]
and eax, 0x41
test eax, eax
je 0x140003f62
mov rax, qword [rsp + 0x400]
mov eax, dword [rax + 0x64]
mov dword [rsp + 0x40], eax
jmp 0x140003f93
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140003f7c
mov rax, qword [rsp + 0x400]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x3c], eax
jmp 0x140003f8b
mov rax, qword [rsp + 0x400]
mov eax, dword [rax + 0x64]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x40], eax
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x68]
call fcn.14002f308
mov eax, dword [rsp + 0x44]
and eax, 0x100
test eax, eax
je 0x140003fd2
lea r8, [0x140248808]
lea rdx, [0x14024880c]
lea rcx, [rsp + 0x98]
call fcn.1400097e0
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x400]
mov edx, dword [rcx + 0x28]
mov rcx, qword [rsp + 0x68]
call qword [rax + 0x60]
mov r9d, dword [rsp + 0x7c]
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
call fcn.14000c57c
mov edx, 6
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.GDI32.dll_GetCurrentObject]
mov rcx, qword [rsp + 0x400]
mov qword [rcx + 0x78], rax
mov qword [rsp + 0x108], 0
lea rcx, [rsp + 0x98]
call fcn.14000d6d8
mov rax, qword [rsp + 0x108]
jmp 0x140004073
mov r9, qword [rsp + 0x420]
mov r8, qword [rsp + 0x418]
mov edx, dword [rsp + 0x410]
mov rcx, qword [rsp + 0x408]
call qword [sym.imp.COMCTL32.dll_DefSubclassProc]
add rsp, 0x3f0
pop rdi
ret