Function at 0x14002b560
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 0x14002bbcc
cmp word [rax], 0
je 0x14002bbcc
mov rax, qword [str.AutoHotkey]
mov qword [r11 + 8], rbx
mov rbx, qword [0x140115790]
mov qword [rsp + 0x70], 0x50
mov qword [r11 + 0x10], rbp
mov qword [r11 - 0xa8], rax
lea rax, [0x14005bd60]
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x18], r15
xor r15d, r15d
mov qword [r11 - 0xd8], r15
mov qword [r11 - 0xd0], rbx
mov qword [rsp + 0x78], rax
test rbx, rbx
je 0x14002b74a
lea rax, [0x14011b1c8]
cmp rax, 0x9f
je 0x14002b74a
mov edx, 0x9f
lea r8d, [r15 + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14002b74a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002b74a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14002b74a
lea ecx, [r15 + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea r9, [rbp + 6]
mov r8d, r15d
mov edi, eax
mov edx, r15d
movzx eax, word [rbp + 4]
cmp r15w, ax
jae 0x14002b74a
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 0x14002b69e
cmp edx, edi
setl cl
jmp 0x14002b6a3
cmp eax, edi
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 0x14002b680
mov r14, qword [rsp + 0x148]
mov r12, qword [rsp + 0x178]
test r8, r8
je 0x14002b74a
movzx edx, word [r8 + 0xc]
mov rcx, rbx
lea r8d, [r10 + 3]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14002b74a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002b74a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14002b74a
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, rbp
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test rax, rax
jne 0x14002b75a
xor edx, edx
xor ecx, ecx
mov r8d, 0xffffff61
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov ecx, gethostbyname
mov qword [0x140115958], 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.1400c1420
mov rcx, rax
mov qword [0x140115960], rax
mov rax, qword [0x140115958]
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 [0x14011668c], ax
test ax, ax
je 0x14002bbb3
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 [0x140116688], ax
test ax, ax
je 0x14002bbb3
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14002b85b
mov r8d, 0x40
lea rdx, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x14002b856
lea rdx, str.Shell_TrayWnd
lea rcx, [rsp + 0xc0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14002b85b
xor bpl, bpl
jmp 0x14002b85e
mov bpl, 1
mov rax, qword [0x140115790]
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 [0x1401156f0], rax
test rax, rax
je 0x14002bb6c
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 [0x140115790]
lea rdx, str.edit
mov qword [rsp + 0x58], r15
mov r9d, 0x50a00804
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov rax, qword [0x1401156f0]
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 [0x1401156b0], rax
test rax, rax
je 0x14002bb6c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
cmp byte [0x140119a03], 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 [0x1401156b0]
mov rdx, rdi
mov qword [0x140116680], rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r8, qword [0x140116680]
xor r9d, r9d
mov rcx, qword [0x1401156b0]
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1401156b0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc5
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1401156f0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1401156f0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
test bpl, bpl
je 0x14002bab7
mov rcx, qword [0x1401156f0]
mov edx, 6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1401156f0]
xor r8d, r8d
lea edx, [r8 - 0x14]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x140115790]
mov edx, 0xd4
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp byte [0x1401157fb], r15b
mov qword [0x1401156a8], rax
je 0x14002bae2
mov qword [rsi + 0x2a0], r15
jmp 0x14002baea
mov rcx, rsi
call fcn.14002bbe0
cmp qword [rsi + 0xb58], r15
je 0x14002bb65
cmp byte [0x14011b1f5], 1
je 0x14002bb65
mov rax, qword [0x140119a40]
test rax, rax
je 0x14002bb4a
cmp qword [0x140119a38], r15
je 0x14002bb4a
mov rcx, qword [0x1401156f0]
call rax
cmp byte [rsi + 0xbe0], r15b
jne 0x14002bb5e
mov rcx, qword [0x1401156f0]
xor r9d, r9d
mov edx, 0x415
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
mov byte [0x14011b1f5], 1
jmp 0x14002bb8a
mov rcx, qword [0x1401156f0]
call qword [sym.imp.USER32.dll_SetClipboardViewer]
mov qword [rsi + 0xb68], rax
mov byte [0x14011b1f5], 1
mov eax, 1
jmp 0x14002bb8a
mov qword [rsp + 0x20], r15
lea rcx, str.CreateWindow
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
call fcn.1400c6790
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 0x14002bb83
xor eax, eax
add rsp, 0x150
pop rsi
ret