Function at 0x140019350
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 + 0xb88]
mov rdi, rcx
test rax, rax
je 0x1400198e3
cmp word [rax], 0
je 0x1400198e3
xor eax, eax
mov qword [r11 + 8], rbx
mov rbx, qword [0x140101f58]
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, [0x140044790]
mov dword [rsp + 0x70], 0x50
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x78], rbx
mov qword [rsp + 0x78], rax
test rbx, rbx
je 0x14001951d
lea rax, [0x1401062b0]
cmp rax, 0x9f
je 0x14001951d
mov edx, 0x9f
lea r8d, [r15 + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001951d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001951d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14001951d
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 0x1400194a9
lea r8, [rcx + 0xe]
dec eax
mov r9, r8
mov r11d, eax
movzx eax, byte [r8]
movzx edx, byte [rcx]
cmp al, dl
jbe 0x140019489
movzx eax, dl
mov edx, r15d
cmp eax, r10d
setl dl
jmp 0x140019495
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 0x140019470
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 0x14001951d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001951d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14001951d
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 0x14001952d
xor edx, edx
xor ecx, ecx
mov r8d, 0xffffff61
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov ecx, gethostbyname
mov qword [0x1401020d0], 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.14008b180
mov rcx, rax
mov qword [0x1401020d8], rax
mov rax, qword [0x1401020d0]
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 0x1400195c4
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 0x14001960c
mov qword [rsp + 0x20], r15
lea rcx, str.RegClass
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
call fcn.14008e910
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 0x140019647
mov r8d, 0x40
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x140019642
lea rdx, str.Shell_TrayWnd
lea rcx, [rbp - 0x40]
call fcn.1400a9060
test eax, eax
je 0x140019647
xor sil, sil
jmp 0x14001964a
mov sil, 1
mov r8, qword [rdi + 0xb88]
movzx eax, sil
mov qword [rsp + 0x58], r15
neg al
mov rax, qword [0x140101f58]
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 [0x140101ef0], rax
test rax, rax
je 0x140019745
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.1400199e0
mov rax, qword [0x140101f58]
lea rdx, str.edit
mov qword [rsp + 0x58], r15
mov r9d, 0x50a00804
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov rax, qword [0x140101ef0]
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 [0x140101cb8], rax
test rax, rax
jne 0x140019761
mov qword [rsp + 0x20], r15
lea rcx, str.CreateWindow
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
jmp 0x1400195db
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
cmp byte [0x140107173], r15b
mov edx, 0x5a
mov rbx, rax
mov rcx, rax
jne 0x14001979e
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 0x1400197bc
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 [0x140101cb8]
mov rdx, rbx
mov qword [0x140102dd8], rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r8, qword [0x140102dd8]
xor r9d, r9d
mov rcx, qword [0x140101cb8]
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140101cb8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc5
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140101ef0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140101ef0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
test sil, sil
je 0x140019893
mov rcx, qword [0x140101ef0]
mov edx, 6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140101ef0]
xor r8d, r8d
lea edx, [r8 - 0x14]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x140101f58]
mov edx, 0xd4
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp byte [0x140102c99], r15b
mov qword [0x140101cb0], rax
je 0x1400198be
mov qword [rdi + 0x2d8], r15
jmp 0x1400198c6
mov rcx, rdi
call fcn.140019a40
cmp qword [rdi + 0xb08], r15
je 0x1400198d9
mov dl, 1
mov rcx, rdi
call fcn.1400198f0
mov eax, 1
jmp 0x1400195e2
xor eax, eax
add rsp, 0x148
pop rdi
pop rbp
ret