Function at 0x14002bb00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x150
mov rax, qword [rcx + 0xbd8]
mov rsi, rcx
test rax, rax
je 0x14002c16b
cmp word [rax], 0
je 0x14002c16b
mov rax, qword [str.AutoHotkey]
mov qword [r11 + 8], rbx
mov qword [rsp + 0x70], 0x50
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rdi
mov rdi, qword [0x14014a480]
mov qword [r11 - 0xa8], rax
lea rax, [0x140060a10]
mov qword [r11 - 0x18], r15
xor r15d, r15d
mov qword [r11 - 0xd8], r15
mov qword [r11 - 0xd0], rdi
mov qword [rsp + 0x78], rax
test rdi, rdi
je 0x14002bcea
lea rax, [0x14014feb8]
cmp rax, 0x9f
je 0x14002bcea
mov edx, 0x9f
lea r8d, [r15 + 0xe]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14002bcea
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002bcea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14002bcea
lea ecx, [r15 + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea r9, [rbp + 6]
mov r8d, r15d
mov ebx, eax
mov edx, r15d
movzx eax, word [rbp + 4]
cmp r15w, ax
jae 0x14002bcea
mov qword [rsp + 0x178], r12
mov r11, r9
mov qword [rsp + 0x148], r14
mov r12d, 0x100
mov r10d, eax
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r9]
mov r14d, edx
test eax, eax
mov rbp, r8
mov ecx, r15d
cmove eax, r12d
cmp eax, edx
jle 0x14002bc3e
cmp edx, ebx
setl cl
jmp 0x14002bc43
cmp eax, ebx
setge cl
test ecx, ecx
mov r8, r11
mov edx, eax
cmove r8, rbp
add r11, 0xe
add r9, 0xe
test ecx, ecx
cmove edx, r14d
sub r10, 1
jne 0x14002bc20
mov r14, qword [rsp + 0x148]
mov r12, qword [rsp + 0x178]
test r8, r8
je 0x14002bcea
movzx edx, word [r8 + 0xc]
mov rcx, rdi
lea r8d, [r10 + 3]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14002bcea
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002bcea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14002bcea
mov rdx, rbx
mov rcx, rdi
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, rbp
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test rax, rax
jne 0x14002bcfa
xor edx, edx
xor ecx, ecx
mov r8d, 0xffffff61
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov ecx, gethostbyname
mov qword [0x14014a648], 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.1400c3790
mov rcx, rax
mov qword [0x14014a650], rax
mov rax, qword [0x14014a648]
mov edx, 0x7f00
mov qword [rsp + 0xb8], rcx
xor ecx, ecx
mov qword [rsp + 0x90], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
movdqa xmm0, xmmword [reloc.OLEAUT32.dll_SafeArrayGetDim]
lea rcx, [rsp + 0x70]
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0x98], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov word [0x14014b37c], ax
test ax, ax
je 0x14002c152
lea rax, str.AutoHotkey2
mov qword [rsp + 0xa8], r15
lea rcx, [rsp + 0x70]
mov qword [rsp + 0xb0], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov word [0x14014b378], ax
test ax, ax
je 0x14002c152
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14002bdfa
mov r8d, 0x40
lea rdx, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x14002bdf5
lea rdx, str.Shell_TrayWnd
lea rcx, [rsp + 0xc0]
call fcn.1400e5cc0
test eax, eax
je 0x14002bdfa
xor bpl, bpl
jmp 0x14002bdfd
mov bpl, 1
mov rax, qword [0x14014a480]
mov r9d, 0xcf0000
mov r8, qword [rsi + 0xbd8]
mov rdx, qword [str.AutoHotkey]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 0x80000000
movzx ecx, bpl
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], 0x80000000
shl ecx, 7
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x14014a3e0], rax
test rax, rax
je 0x14002c10b
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 edx, 0xff81
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0xff7e
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0xff7f
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0xff80
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rax, qword [0x14014a480]
lea rdx, str.edit
mov qword [rsp + 0x58], r15
mov r9d, 0x50a00804
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov rax, qword [0x14014a3e0]
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 [0x14014a3a0], rax
test rax, rax
je 0x14002c10b
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
cmp byte [0x14014e6f3], 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 [0x14014a3a0]
mov rdx, rdi
mov qword [0x14014b370], rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r8, qword [0x14014b370]
xor r9d, r9d
mov rcx, qword [0x14014a3a0]
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x14014a3a0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc5
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x14014a3e0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14014a3e0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
test bpl, bpl
je 0x14002c056
mov rcx, qword [0x14014a3e0]
mov edx, 6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14014a3e0]
xor r8d, r8d
lea edx, [r8 - 0x14]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x14014a480]
mov edx, 0xd4
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp byte [0x14014a4eb], r15b
mov qword [0x14014a398], rax
je 0x14002c081
mov qword [rsi + 0x2a0], r15
jmp 0x14002c089
mov rcx, rsi
call fcn.14002c180
cmp qword [rsi + 0xb58], r15
je 0x14002c104
cmp byte [0x14014fee5], 1
je 0x14002c104
mov rax, qword [0x14014e730]
test rax, rax
je 0x14002c0e9
cmp qword [0x14014e728], r15
je 0x14002c0e9
mov rcx, qword [0x14014a3e0]
call rax
cmp byte [rsi + 0xbe0], r15b
jne 0x14002c0fd
mov rcx, qword [0x14014a3e0]
xor r9d, r9d
mov edx, 0x415
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
mov byte [0x14014fee5], 1
jmp 0x14002c129
mov rcx, qword [0x14014a3e0]
call qword [sym.imp.USER32.dll_SetClipboardViewer]
mov qword [rsi + 0xb68], rax
mov byte [0x14014fee5], 1
mov eax, 1
jmp 0x14002c129
mov qword [rsp + 0x20], r15
lea rcx, str.CreateWindow
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
call fcn.1400c8ff0
xor eax, eax
mov rdi, qword [rsp + 0x170]
mov rbp, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x160]
mov r15, qword [rsp + 0x140]
add rsp, 0x150
pop rsi
ret
mov qword [rsp + 0x20], r15
lea rcx, str.RegClass
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
jmp 0x14002c122
xor eax, eax
add rsp, 0x150
pop rsi
ret