Function at 0x14001a550
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 + 0xba8]
mov rdi, rcx
test rax, rax
je 0x14001aae3
cmp word [rax], 0
je 0x14001aae3
xor eax, eax
mov qword [r11 + 8], rbx
mov rbx, qword [0x140105e30]
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, [0x140046fa0]
mov dword [rsp + 0x70], 0x50
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x78], rbx
mov qword [rsp + 0x78], rax
test rbx, rbx
je 0x14001a71d
lea rax, [0x140108264]
cmp rax, 0x9f
je 0x14001a71d
mov edx, 0x9f
lea r8d, [r15 + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001a71d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001a71d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14001a71d
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 0x14001a6a9
lea r8, [rcx + 0xe]
dec eax
mov r9, r8
mov r11d, eax
movzx eax, byte [r8]
movzx edx, byte [rcx]
cmp al, dl
jbe 0x14001a689
movzx eax, dl
mov edx, r15d
cmp eax, r10d
setl dl
jmp 0x14001a695
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 0x14001a670
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 0x14001a71d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001a71d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14001a71d
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 0x14001a72d
xor edx, edx
xor ecx, ecx
mov r8d, 0xffffff61
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov ecx, gethostbyname
mov qword [0x140105fa0], 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.14008dd70
mov rcx, rax
mov qword [0x140105fa8], rax
mov rax, qword [0x140105fa0]
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 0x14001a7c4
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 0x14001a80c
mov qword [rsp + 0x20], r15
lea rcx, str.RegClass
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
call fcn.140091650
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 0x14001a847
mov r8d, 0x40
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x14001a842
lea rdx, str.Shell_TrayWnd
lea rcx, [rbp - 0x40]
call fcn.1400abda0
test eax, eax
je 0x14001a847
xor sil, sil
jmp 0x14001a84a
mov sil, 1
mov r8, qword [rdi + 0xba8]
movzx eax, sil
mov qword [rsp + 0x58], r15
neg al
mov rax, qword [0x140105e30]
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 [0x140105dd0], rax
test rax, rax
je 0x14001a945
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.14001abe0
mov rax, qword [0x140105e30]
lea rdx, str.edit
mov qword [rsp + 0x58], r15
mov r9d, 0x50a00804
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov rax, qword [0x140105dd0]
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 [0x140105d90], rax
test rax, rax
jne 0x14001a961
mov qword [rsp + 0x20], r15
lea rcx, str.CreateWindow
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
jmp 0x14001a7db
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
cmp byte [0x1401090f3], r15b
mov edx, 0x5a
mov rbx, rax
mov rcx, rax
jne 0x14001a99e
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 0x14001a9bc
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 [0x140105d90]
mov rdx, rbx
mov qword [0x140106cd0], rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r8, qword [0x140106cd0]
xor r9d, r9d
mov rcx, qword [0x140105d90]
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140105d90]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc5
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140105dd0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140105dd0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
test sil, sil
je 0x14001aa93
mov rcx, qword [0x140105dd0]
mov edx, 6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140105dd0]
xor r8d, r8d
lea edx, [r8 - 0x14]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x140105e30]
mov edx, 0xd4
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp byte [0x140106b8d], r15b
mov qword [0x140105d88], rax
je 0x14001aabe
mov qword [rdi + 0x2e0], r15
jmp 0x14001aac6
mov rcx, rdi
call fcn.14001ac40
cmp qword [rdi + 0xb28], r15
je 0x14001aad9
mov dl, 1
mov rcx, rdi
call fcn.14001aaf0
mov eax, 1
jmp 0x14001a7e2
xor eax, eax
add rsp, 0x148
pop rdi
pop rbp
ret