Function at 0x180066890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x20], r9d
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
call fcn.180054050
mov qword [rsp + 0x50], rax
mov r8d, 0xf1
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1800668e2
xor eax, eax
jmp 0x180066c62
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180066906
xor eax, eax
jmp 0x180066c62
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180066925
xor eax, eax
jmp 0x180066c62
mov rcx, qword [rsp + 0x30]
call fcn.18007ca80
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x30]
movzx r8d, word [rax + 4]
mov rax, qword [rsp + 0x30]
movzx edx, word [rax + 2]
mov rcx, qword [rsp + 0xc0]
call fcn.1800667c0
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x80], 0
jne 0x1800669e5
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0xc8]
call fcn.180066d30
mov byte [rsp + 0xa8], al
movzx edx, byte [rsp + 0xa8]
and dl, 1
shl dl, 5
mov rax, qword [rsp + 0xc0]
movzx ecx, byte [rax + 0xf1]
and cl, 0xdf
or cl, dl
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0xf1], cl
mov rax, qword [rsp + 0x30]
movzx edx, word [rax + 6]
mov rcx, qword [rsp + 0x70]
call fcn.180071750
movzx eax, al
test eax, eax
jne 0x1800669e5
xor eax, eax
jmp 0x180066c62
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov dword [rsp + 0x60], eax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180066d80
movzx eax, byte [rsp + 0xd0]
test eax, eax
je 0x180066a5f
mov rcx, qword [rsp + 0xc8]
call fcn.180066c70
mov eax, eax
and rax, 0xffff
cwde
mov dword [rsp + 0x78], eax
movzx r8d, word [rsp + 0xd8]
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.18006e3c0
jmp 0x180066ae7
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0xf1]
shr al, 5
and al, 1
movzx eax, al
test eax, eax
je 0x180066ab5
call fcn.180054050
mov dword [rsp + 0x28], 0x2040
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc8]
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadImageW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180066dd0
jmp 0x180066ae7
lea rax, [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x90]
call fcn.180066d10
mov rdx, qword [rax]
lea rcx, [rsp + 0x40]
call fcn.18006e380
cmp qword [rsp + 0x40], 0
jne 0x180066b10
mov dword [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
call fcn.180066da0
mov eax, dword [rsp + 0x98]
jmp 0x180066c62
lea rcx, [rsp + 0x40]
call fcn.180066e00
mov rdx, rax
mov rax, qword [rsp + 0xc0]
mov r8d, dword [rax + 0x10c]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp eax, 0xffffffff
jne 0x180066b67
mov dword [rsp + 0x9c], 0
lea rcx, [rsp + 0x40]
call fcn.180066da0
mov eax, dword [rsp + 0x9c]
jmp 0x180066c62
mov dword [rsp + 0x7c], 0
jmp 0x180066b7c
mov eax, dword [rsp + 0x7c]
add eax, 1
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x7c], eax
jge 0x180066bbc
movsxd rcx, dword [rsp + 0x7c]
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + rcx*2]
test eax, eax
je 0x180066bba
movsxd rcx, dword [rsp + 0x7c]
mov rax, qword [rsp + 0x38]
lea rdx, [rax + rcx*2]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x88
call fcn.18005bb20
jmp 0x180066b71
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
mov dword [rsp + 0x58], eax
mov rcx, qword [rsp + 0xc0]
add rcx, 0x88
call fcn.180066d70
cmp dword [rsp + 0x58], eax
je 0x180066c0d
mov dword [rsp + 0xa0], 0
lea rcx, [rsp + 0x40]
call fcn.180066da0
mov eax, dword [rsp + 0xa0]
jmp 0x180066c62
call fcn.180066c80
movzx eax, al
test eax, eax
je 0x180066c46
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x58]
sub r8d, eax
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
call fcn.180071800
mov dword [rsp + 0xa4], 1
lea rcx, [rsp + 0x40]
call fcn.180066da0
mov eax, dword [rsp + 0xa4]
add rsp, 0xb8
ret