Function at 0x140009230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push r13
push r15
sub rsp, 0x330
mov rax, qword [0x1400975a0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r13, qword [0x14009a190]
mov r15, rcx
mov ecx, dword [rsp + 0x370]
mov eax, edx
mov esi, r8d
mov dword [rsp + 0x68], ecx
mov rcx, r13
movzx edx, dx
mov r8d, 0xf1
mov dword [rsp + 0x64], r9d
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x140009290
xor eax, eax
jmp 0x14000963a
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140009289
mov rcx, rax
mov qword [rsp + 0x308], r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140009632
mov qword [rsp + 0x328], rbx
xor r8d, r8d
mov qword [rsp + 0x320], rbp
lea rbx, [rax + 8]
movzx eax, word [rax + 6]
test esi, esi
mov ebp, r8d
setne bpl
mov qword [rsp + 0x318], rdi
add eax, ebp
mov qword [rsp + 0x310], r12
mov qword [rsp + 0xe0], r8
movsxd r12, eax
je 0x14000933e
xor edx, edx
or rax, 0xffffffffffffffff
div r12
cmp rax, 0x20
jb 0x140009657
mov rdx, r12
shl rdx, 5
cmp rdx, 0x200
jbe 0x14000933e
lea rcx, [rsp + 0xe0]
call fcn.1400070a0
mov rdi, qword [rsp + 0xe0]
xor r8d, r8d
jmp 0x14000934e
lea rdi, [rsp + 0xe8]
mov qword [rsp + 0xe0], rdi
test rdi, rdi
je 0x1400095f3
test esi, esi
je 0x140009370
mov qword [rdi], 4
mov word [rdi + 8], 0x100
mov qword [rdi + 0x10], r8
mov qword [rdi + 0x18], r8
mov esi, r8d
mov edx, r8d
cmp r8w, word [r14 + 6]
jae 0x1400093d0
movsxd rax, ebp
shl rax, 5
add rax, 8
add rax, rdi
nop dword [rax + rax]
cmp word [rbx], 0
je 0x1400093a8
mov dword [rax - 8], esi
movzx ecx, word [rbx]
inc esi
mov dword [rax - 4], ecx
mov word [rax], 4
jmp 0x1400093b5
mov qword [rax - 8], 8
mov word [rax], 0x100
mov qword [rax + 0x10], r8
mov qword [rax + 8], r8
movzx ecx, word [r14 + 6]
inc edx
add rbx, 2
add rax, 0x20
cmp edx, ecx
jl 0x140009390
movsxd rcx, dword [rsp + 0x68]
mov rax, qword [0x14009a188]
mov r9d, dword [rsp + 0x64]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r8d
lea rdx, str.ToolbarWindow32
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbp, rax
test rax, rax
je 0x1400095eb
xor r9d, r9d
mov edx, 0x41e
mov rcx, rax
lea r8d, [r9 + 0x20]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
test rax, rax
jne 0x140009469
lea ecx, [rax + 0x11]
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x84]
mov dword [rsp + 0x80], 0
lea r8d, [rdx + 0x58]
call fcn.14001d0b0
lea r8, [rsp + 0x80]
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [rsp + 0x80]
mov rbx, qword [0x14009a190]
cdq
mov r8d, 2
mov rcx, rbx
mov r15d, eax
mov eax, dword [rsp + 0x60]
xor r15d, edx
sub r15d, edx
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
movzx ecx, word [rax + 0xe]
cmp cx, 4
jbe 0x140009539
movzx r8d, word [r14 + 2]
or edx, 0xffffffff
cmp cx, 0x20
mov ecx, dword [rsp + 0x60]
mov eax, 0xff000000
mov dword [rsp + 0x30], 0x2040
cmove eax, edx
movzx edx, cx
mov rcx, qword [0x14009a190]
mov r9d, 1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call qword [sym.imp.COMCTL32.dll_ImageList_LoadImageW]
xor r8d, r8d
mov edx, 0x430
mov r9, rax
jmp 0x14000955b
xor eax, eax
mov qword [rsp + 0x70], r13
movsxd r8, esi
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x60]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov edx, 0x413
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, rdi
mov r8, r12
mov edx, 0x444
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
cmp word [r14 + 4], r15w
movzx eax, r15w
cmova ax, word [r14 + 4]
xor r8d, r8d
mov edx, 0x420
movzx ecx, ax
movzx eax, word [r14 + 2]
shl ecx, 0x10
or ecx, eax
movsxd r9, ecx
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageW]
cmp word [r14 + 4], r15w
movzx eax, word [r14 + 2]
cmova r15w, word [r14 + 4]
add ax, 7
xor r8d, r8d
movzx ecx, ax
add r15w, 7
movzx edx, r15w
shl edx, 0x10
or edx, ecx
mov rcx, rbp
movsxd r9, edx
mov edx, 0x41f
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, qword [rsp + 0xe0]
jmp 0x1400095f5
mov rdi, qword [rsp + 0xe0]
xor ebp, ebp
lea rax, [rsp + 0xe8]
cmp rdi, rax
je 0x14000960f
lea rcx, [rsp + 0xe0]
call fcn.14000c900
mov r12, qword [rsp + 0x310]
mov rdi, qword [rsp + 0x318]
mov rbx, qword [rsp + 0x328]
mov rax, rbp
mov rbp, qword [rsp + 0x320]
mov r14, qword [rsp + 0x308]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14001d080
add rsp, 0x330
pop r15
pop r13
pop rsi
ret
mov ecx, 0x80070216
call fcn.140007790
int3