Function at 0x14001a4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
push rbp
push rsi
lea rbp, [r11 - 0x58]
sub rsp, 0x148
mov rax, qword [rcx + 0xba8]
mov rsi, rcx
test rax, rax
je 0x14001aa1c
cmp word [rax], 0
je 0x14001aa1c
xor eax, eax
mov qword [r11 + 8], rbx
mov rbx, qword [0x140105dd0]
mov qword [r11 + 0x10], rdi
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, [0x140046d40]
mov dword [rsp + 0x70], 0x50
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x78], rbx
mov qword [rsp + 0x78], rax
test rbx, rbx
je 0x14001a66d
lea rax, [0x140108204]
cmp rax, 0x9f
je 0x14001a66d
mov edx, 0x9f
lea r8d, [r15 + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001a66d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001a66d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14001a66d
lea ecx, [r15 + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r10d, eax
lea rcx, [rdi + 6]
movzx eax, word [rdi + 4]
cmp eax, 1
jbe 0x14001a5f9
lea r8, [rcx + 0xe]
dec eax
mov r9, r8
mov r11d, eax
movzx eax, byte [r8]
movzx edx, byte [rcx]
cmp al, dl
jbe 0x14001a5d9
movzx eax, dl
mov edx, r15d
cmp eax, r10d
setl dl
jmp 0x14001a5e5
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 0x14001a5c0
movzx edx, word [rcx + 0xc]
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14001a66d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001a66d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14001a66d
mov rdx, rdi
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 0x14001a67d
xor edx, edx
xor ecx, ecx
mov r8d, 0xffffff61
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov ecx, gethostbyname
mov qword [0x140105f40], 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.14008d5e0
mov rcx, rax
mov qword [0x140105f48], rax
mov rax, qword [0x140105f40]
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]
test ax, ax
je 0x14001a70c
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 0x14001a75c
mov qword [rsp + 0x20], r15
lea rcx, str.RegClass
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
call fcn.140090ee0
xor eax, eax
mov r14, qword [rsp + 0x178]
mov r12, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x160]
mov r15, qword [rsp + 0x140]
add rsp, 0x148
pop rsi
pop rbp
ret
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14001a797
mov r8d, 0x40
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x14001a792
lea rdx, str.Shell_TrayWnd
lea rcx, [rbp - 0x40]
call fcn.1400ab3f0
test eax, eax
je 0x14001a797
xor r14b, r14b
jmp 0x14001a79a
mov r14b, 1
mov r8, qword [rsi + 0xba8]
movzx eax, r14b
mov qword [rsp + 0x58], r15
neg al
mov rax, qword [0x140105dd0]
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 [0x140105d70], rax
test rax, rax
je 0x14001a895
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.14001ab20
mov rax, qword [0x140105dd0]
lea rdx, str.edit
mov qword [rsp + 0x58], r15
mov r9d, 0x50a00804
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov rax, qword [0x140105d70]
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 [0x140105d30], rax
test rax, rax
jne 0x14001a8b1
mov qword [rsp + 0x20], r15
lea rcx, str.CreateWindow
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
jmp 0x14001a723
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
cmp byte [0x140109093], r15b
lea rbx, str.Lucida_Console
mov rdi, rax
mov edx, 0x5a
lea rax, str.Consolas
mov rcx, rdi
cmovne rbx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, 0xa
mov edx, eax
lea r8d, [rcx + 0x3e]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov qword [rsp + 0x68], rbx
xor r9d, r9d
mov dword [rsp + 0x60], r15d
neg eax
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 [0x140105d30]
mov rdx, rdi
mov qword [0x140106c70], rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r8, qword [0x140106c70]
xor r9d, r9d
mov rcx, qword [0x140105d30]
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140105d30]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc5
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140105d70]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140105d70]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
test r14b, r14b
je 0x14001a9cc
mov rcx, qword [0x140105d70]
mov edx, 6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140105d70]
xor r8d, r8d
lea edx, [r8 - 0x14]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x140105dd0]
mov edx, 0xd4
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp byte [0x140106b2d], r15b
mov qword [0x140105d28], rax
je 0x14001a9f7
mov qword [rsi + 0x2e0], r15
jmp 0x14001a9ff
mov rcx, rsi
call fcn.14001ab80
cmp qword [rsi + 0xb28], r15
je 0x14001aa12
mov dl, 1
mov rcx, rsi
call fcn.14001aa30
mov eax, 1
jmp 0x14001a72a
xor eax, eax
add rsp, 0x148
pop rsi
pop rbp
ret