Function at 0x1400187c0
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 0x140018d53
cmp word [rax], 0
je 0x140018d53
xor eax, eax
mov qword [r11 + 8], rbx
mov rbx, qword [0x140100f08]
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, [0x140043be0]
mov dword [rsp + 0x70], 0x50
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x78], rbx
mov qword [rsp + 0x78], rax
test rbx, rbx
je 0x14001898d
lea rax, [0x14010523c]
cmp rax, 0x9f
je 0x14001898d
mov edx, 0x9f
lea r8d, [r15 + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14001898d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001898d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14001898d
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 0x140018919
lea r8, [rcx + 0xe]
dec eax
mov r9, r8
mov r11d, eax
movzx eax, byte [r8]
movzx edx, byte [rcx]
cmp al, dl
jbe 0x1400188f9
movzx eax, dl
mov edx, r15d
cmp eax, r10d
setl dl
jmp 0x140018905
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 0x1400188e0
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 0x14001898d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001898d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14001898d
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 0x14001899d
xor edx, edx
xor ecx, ecx
mov r8d, 0xffffff61
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov ecx, gethostbyname
mov qword [0x140101080], 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.14008a3d0
mov rcx, rax
mov qword [0x140101088], rax
mov rax, qword [0x140101080]
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 0x140018a34
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 0x140018a7c
mov qword [rsp + 0x20], r15
lea rcx, str.RegClass
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
call fcn.14008db60
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 0x140018ab7
mov r8d, 0x40
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x140018ab2
lea rdx, str.Shell_TrayWnd
lea rcx, [rbp - 0x40]
call fcn.1400a82b0
test eax, eax
je 0x140018ab7
xor sil, sil
jmp 0x140018aba
mov sil, 1
mov r8, qword [rdi + 0xb88]
movzx eax, sil
mov qword [rsp + 0x58], r15
neg al
mov rax, qword [0x140100f08]
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 [0x140100ea0], rax
test rax, rax
je 0x140018bb5
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.140018e50
mov rax, qword [0x140100f08]
lea rdx, str.edit
mov qword [rsp + 0x58], r15
mov r9d, 0x50a00804
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov rax, qword [0x140100ea0]
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 [0x140100c68], rax
test rax, rax
jne 0x140018bd1
mov qword [rsp + 0x20], r15
lea rcx, str.CreateWindow
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
jmp 0x140018a4b
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
cmp byte [0x140106113], r15b
mov edx, 0x5a
mov rbx, rax
mov rcx, rax
jne 0x140018c0e
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 0x140018c2c
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 [0x140100c68]
mov rdx, rbx
mov qword [0x140101d88], rax
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r8, qword [0x140101d88]
xor r9d, r9d
mov rcx, qword [0x140100c68]
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140100c68]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc5
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140100ea0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140100ea0]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
test sil, sil
je 0x140018d03
mov rcx, qword [0x140100ea0]
mov edx, 6
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140100ea0]
xor r8d, r8d
lea edx, [r8 - 0x14]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x140100f08]
mov edx, 0xd4
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp byte [0x140101c48], r15b
mov qword [0x140100c60], rax
je 0x140018d2e
mov qword [rdi + 0x2d8], r15
jmp 0x140018d36
mov rcx, rdi
call fcn.140018eb0
cmp qword [rdi + 0xb08], r15
je 0x140018d49
mov dl, 1
mov rcx, rdi
call fcn.140018d60
mov eax, 1
jmp 0x140018a52
xor eax, eax
add rsp, 0x148
pop rdi
pop rbp
ret