Function at 0x140045810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov r14, rcx
mov rax, qword [rcx + 0x780]
test rax, rax
je 0x140045de4
cmp word [rax], 0
je 0x140045de4
xor r15d, r15d
mov qword [r11 - 0xf8], 0x50
mov qword [r11 - 0xe8], r15
lea r13, [0x1400fcd00]
mov qword [r11 - 0xb8], r13
mov rbx, qword [0x140125ac0]
mov qword [r11 - 0xe0], rbx
lea rax, [0x140063510]
mov qword [r11 - 0xf0], rax
test rbx, rbx
je 0x1400459d8
lea rax, [0x140128044]
cmp rax, 0x9f
je 0x1400459d8
mov edx, 0x9f
lea r8d, [r15 + 0xe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400459d8
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400459d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400459d8
lea ecx, [r15 + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
lea r9, [rsi + 6]
mov r8d, r15d
mov edx, r15d
movzx eax, word [rsi + 4]
test eax, eax
je 0x1400459d8
mov r11, r9
mov r10d, eax
mov r12d, 0x100
nop word [rax + rax]
mov ebp, edx
mov rsi, r8
movzx eax, byte [r9]
test eax, eax
cmove eax, r12d
mov ecx, r15d
cmp eax, edx
jle 0x14004593d
cmp edx, edi
setl cl
jmp 0x140045942
cmp eax, edi
setge cl
mov r8, r11
test ecx, ecx
cmove r8, rsi
add r11, 0xe
add r9, 0xe
mov edx, eax
test ecx, ecx
cmove edx, ebp
sub r10, 1
jne 0x140045920
test r8, r8
je 0x1400459d8
movzx edx, word [r8 + 0xc]
lea r8d, [r10 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400459d8
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400459d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400459d8
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov r9d, 0x30000
mov r8d, 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test rax, rax
jne 0x1400459e8
xor edx, edx
xor ecx, ecx
mov r8d, 0xffffff61
call qword [sym.imp.SHELL32.dll_ExtractIconW]
mov qword [0x140125ba8], rax
mov ecx, gethostbyaddr
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r8d, eax
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov edx, 0xffffff61
xor ecx, ecx
call fcn.14009f900
mov rcx, rax
mov qword [0x140125bb0], rax
mov rax, qword [0x140125ba8]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xc8], rcx
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rsp + 0xa8], rax
movdqa xmm0, xmmword [reloc.WSOCK32.dll_recv]
movdqa xmmword [rsp + 0xb0], xmm0
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x140045a77
lea rcx, str.RegClass
jmp 0x140045dcf
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x140045aba
mov r8d, 0x40
lea rdx, [rsp + 0xd0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x140045ab5
lea rdx, str.Shell_TrayWnd
lea rcx, [rsp + 0xd0]
call fcn.1400c1404
test eax, eax
je 0x140045aba
xor dil, dil
jmp 0x140045abd
mov dil, 1
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [rsp + 0x78]
sub eax, dword [rsp + 0x70]
lea eax, [rax + rax*2]
cdq
and edx, 3
lea ecx, [rdx + rax]
sar ecx, 2
mov r9d, dword [rsp + 0x7c]
sub r9d, dword [rsp + 0x74]
lea eax, [r9 + r9*2]
cdq
and edx, 3
lea r8d, [rdx + rax]
sar r8d, 2
cmp ecx, r9d
cmovle r9d, ecx
movzx ecx, dil
shl ecx, 7
mov qword [rsp + 0x58], r15
mov rax, qword [0x140125ac0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xcf0000
mov r8, qword [r14 + 0x780]
mov rdx, r13
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x140125a70], rax
test rax, rax
je 0x140045dc8
mov ecx, 0x68
call fcn.1400bade4
mov qword [rsp + 0x180], rax
mov edx, 1
mov rcx, rax
call fcn.14008bd80
nop
mov qword [r14 + 0x828], rax
mov rcx, rax
call fcn.14008cff0
cmp dword [r14 + 0x788], 1
jne 0x140045c1e
mov rcx, qword [0x140125a70]
call qword [sym.imp.USER32.dll_GetMenu]
mov rbx, rax
mov edx, 0xff79
mov r8d, 3
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
cmp byte [0x14011f1a4], 0
jne 0x140045c1e
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 qword [rsp + 0x58], r15
mov rax, qword [0x140125ac0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 1
mov rax, qword [0x140125a70]
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
mov r9d, 0x50a00804
xor r8d, r8d
lea rdx, [0x1400fd7a0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x140125a48], rax
test rax, rax
je 0x140045dc8
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov edx, 0x5a
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, eax
mov ecx, 0xa
lea r8d, [rcx + 0x3e]
call qword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
lea rcx, str.Consolas
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x48], r15d
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
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.GDI32.dll_CreateFontW]
mov qword [0x140125e90], rax
mov rdx, rbx
mov rcx, qword [0x140125a48]
call qword [sym.imp.USER32.dll_ReleaseDC]
xor r9d, r9d
mov r8, qword [0x140125e90]
lea edx, [r9 + 0x30]
mov rcx, qword [0x140125a48]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc5
mov rcx, qword [0x140125a48]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, qword [0x140125a70]
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov rcx, qword [0x140125a70]
call qword [sym.imp.USER32.dll_ShowWindow]
test dil, dil
je 0x140045d89
mov edx, 6
mov rcx, qword [0x140125a70]
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
lea edx, [r8 - 0x14]
mov rcx, qword [0x140125a70]
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, 0xd4
mov rcx, qword [0x140125ac0]
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov qword [0x140125a40], rax
cmp byte [0x140125d68], 0
je 0x140045db9
mov qword [r14 + 0x2e8], r15
mov eax, 1
jmp 0x140045de6
mov rcx, r14
call fcn.140045e10
mov eax, 1
jmp 0x140045de6
lea rcx, str.CreateWindow
mov qword [rsp + 0x20], r15
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x10000
call fcn.1400a44b0
xor eax, eax
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret