Function at 0x1400194a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x58]
sub rsp, 0x148
mov rax, qword [rcx + 0xba0]
mov rdi, rcx
test rax, rax
je 0x140019a33
cmp word [rax], 0
je 0x140019a33
xor eax, eax
mov qword [r11 + 8], rbx
mov rbx, qword [0x140101fd0]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], r12
lea r12, str.AutoHotkey
mov qword [rsp + 0x74], rax
mov qword [rsp + 0x7c], rax
mov qword [rbp - 0x7c], rax
mov qword [rbp - 0x74], rax
mov qword [rbp - 0x54], rax
mov qword [rbp - 0x4c], rax
mov qword [r11 + 0x20], r14
mov qword [r11 - 0x18], r15
xor r15d, r15d
mov qword [rbp - 0x6c], rax
mov qword [rbp - 0x64], rax
mov qword [rbp - 0x5c], rax
mov dword [rbp - 0x44], eax
lea rax, [0x140044850]
mov dword [rsp + 0x70], 0x50
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x78], rbx
mov qword [rsp + 0x78], rax
test rbx, rbx
je 0x14001966d
lea rax, [0x1401043f0]
cmp rax, 0x9f
je 0x14001966d
mov edx, 0x9f
lea r8d, [r15 + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001966d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001966d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14001966d
lea ecx, [r15 + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r10d, eax
lea rcx, [rsi + 6]
movzx eax, word [rsi + 4]
cmp eax, 1
jbe 0x1400195f9
lea r8, [rcx + 0xe]
dec eax
mov r9, r8
mov r11d, eax
movzx eax, byte [r8]
movzx edx, byte [rcx]
cmp al, dl
jbe 0x1400195d9
movzx eax, dl
mov edx, r15d
cmp eax, r10d
setl dl
jmp 0x1400195e5
movzx eax, al
mov edx, r15d
cmp eax, r10d
setge dl
test edx, edx
cmovne rcx, r9
add r9, 0xe
add r8, 0xe
sub r11, 1
jne 0x1400195c0
movzx edx, word [rcx + 0xc]
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14001966d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001966d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14001966d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], r15d
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], r15d
mov r8d, 1
mov dword [rsp + 0x20], r15d
mov rcx, r14
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test rax, rax
jne 0x14001967d
xor edx, edx
xor ecx, ecx
mov r8d, 0xffffff61
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov ecx, gethostbyname
mov qword [0x140102140], rax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov r8d, eax
mov edx, 0xffffff61
xor ecx, ecx
call fcn.14008b0b0
mov rcx, rax
mov qword [0x140102148], rax
mov rax, qword [0x140102140]
mov edx, 0x7f00
mov qword [rbp - 0x48], rcx
xor ecx, ecx
mov qword [rbp - 0x70], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
movdqa xmm0, xmmword [reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rsp + 0x70]
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x68], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov r14, qword [rsp + 0x178]
test ax, ax
je 0x140019714
lea rax, str.AutoHotkey2
mov qword [rbp - 0x58], r15
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x50], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x14001975c
mov qword [rsp + 0x20], r15
lea rcx, str.RegClass
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
call fcn.14008e7c0
xor eax, eax
mov r12, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x160]
mov r15, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbp
ret
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x140019797
mov r8d, 0x40
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x140019792
lea rdx, str.Shell_TrayWnd
lea rcx, [rbp - 0x40]
call fcn.1400a8ee0
test eax, eax
je 0x140019797
xor sil, sil
jmp 0x14001979a
mov sil, 1
mov r8, qword [rdi + 0xba0]
movzx eax, sil
mov qword [rsp + 0x58], r15
neg al
mov rax, qword [0x140101fd0]
mov r9d, 0xcf0000
mov qword [rsp + 0x50], rax
sbb ecx, ecx
mov qword [rsp + 0x48], r15
and ecx, 0x80
mov qword [rsp + 0x40], r15
mov rdx, r12
mov dword [rsp + 0x38], 0x80000000
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x140101f68], rax
test rax, rax
je 0x140019895
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMenu]
mov edx, 0xff79
mov r8d, 3
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov r8d, 3
mov rdx, rbx
call fcn.140019b30
mov rax, qword [0x140101fd0]
lea rdx, str.edit
mov qword [rsp + 0x58], r15
mov r9d, 0x50a00804
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov rax, qword [0x140101f68]
xor ecx, ecx
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x140101f38], rax
test rax, rax
jne 0x1400198b1
mov qword [rsp + 0x20], r15
lea rcx, str.CreateWindow
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
jmp 0x14001972b
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
cmp byte [0x1401052d3], r15b
mov edx, 0x5a
mov rbx, rax
mov rcx, rax
jne 0x1400198ee
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, 0xa
mov edx, eax
lea r8d, [rcx + 0x3e]
call qword [sym.imp.KERNEL32.dll_MulDiv]
lea rcx, str.Lucida_Console
jmp 0x14001990c
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, 0xa
mov edx, eax
lea r8d, [rcx + 0x3e]
call qword [sym.imp.KERNEL32.dll_MulDiv]
lea rcx, str.Consolas
mov qword [rsp + 0x68], rcx
neg eax
mov dword [rsp + 0x60], r15d
xor r9d, r9d
mov dword [rsp + 0x58], r15d
xor r8d, r8d
mov dword [rsp + 0x50], r15d
xor edx, edx
mov dword [rsp + 0x48], r15d
mov ecx, eax
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.GDI32.dll_CreateFontW]
mov rcx, qword [0x140101f38]
mov rdx, rbx
mov qword [0x140102e48], rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r8, qword [0x140102e48]
xor r9d, r9d
mov rcx, qword [0x140101f38]
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140101f38]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc5
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140101f68]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140101f68]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
test sil, sil
je 0x1400199e3
mov rcx, qword [0x140101f68]
mov edx, 6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140101f68]
xor r8d, r8d
lea edx, [r8 - 0x14]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x140101fd0]
mov edx, 0xd4
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp byte [0x140102d09], r15b
mov qword [0x140101d28], rax
je 0x140019a0e
mov qword [rdi + 0x2d8], r15
jmp 0x140019a16
mov rcx, rdi
call fcn.140019b90
cmp qword [rdi + 0xb20], r15
je 0x140019a29
mov dl, 1
mov rcx, rdi
call fcn.140019a40
mov eax, 1
jmp 0x140019732
xor eax, eax
add rsp, 0x148
pop rdi
pop rbp
ret