Function at 0x140008560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x1400d8538]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
lea rax, [0x1400d9bc0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xc8], rax
movzx eax, word [rsp + 0x3e8]
mov r8d, 0xf1
mov edx, eax
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
jne 0x1400085e8
xor eax, eax
jmp 0x140008e1a
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
jne 0x140008618
xor eax, eax
jmp 0x140008e1a
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140008640
xor eax, eax
jmp 0x140008e1a
mov rax, qword [rsp + 0x80]
add rax, 8
mov qword [rsp + 0xe0], rax
cmp dword [rsp + 0x3f0], 0
je 0x14000866b
mov dword [rsp + 0xa0], 1
jmp 0x140008676
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 6]
add eax, dword [rsp + 0xa0]
mov dword [rsp + 0xb0], eax
mov qword [rsp + 0x1b0], 0
movsxd rax, dword [rsp + 0xb0]
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.140005f00
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400086f9
mov qword [rsp + 0x100], 0
lea rax, [rsp + 0x1b8]
cmp qword [rsp + 0x1b0], rax
je 0x1400086ec
lea rcx, [rsp + 0x1b0]
call fcn.14000dee0
mov rax, qword [rsp + 0x100]
jmp 0x140008e1a
mov dword [rsp + 0xf0], 8
cmp dword [rsp + 0x3f0], 0
je 0x14000878d
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
mov dword [rcx + rax], 4
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
mov dword [rcx + rax + 4], 0
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax + 8], 0
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax + 9], 1
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rax + 0x10], 0
mov eax, 0x20
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rax + 0x18], 0
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x7c], 0
cmp dword [rsp + 0x3f0], 0
je 0x1400087b7
mov dword [rsp + 0xa4], 1
jmp 0x1400087c2
mov dword [rsp + 0xa4], 0
mov eax, dword [rsp + 0xa4]
mov dword [rsp + 0x60], eax
jmp 0x1400087e3
mov eax, dword [rsp + 0x7c]
inc eax
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x7c], eax
jge 0x140008937
movsxd rax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0xe0]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x1400088b3
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x88]
mov dword [rcx + rax], edx
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
movsxd rax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0xe0]
movzx eax, word [rcx + rax*2]
movsxd rcx, dword [rsp + 0x60]
imul rcx, rcx, 0x20
mov rdx, qword [rsp + 0x68]
mov dword [rdx + rcx + 4], eax
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax + 8], 4
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax + 9], 0
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rax + 0x10], 0
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rax + 0x18], 0
jmp 0x140008932
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov dword [rcx + rax], 8
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov dword [rcx + rax + 4], 0
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax + 8], 0
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov byte [rcx + rax + 9], 1
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rax + 0x10], 0
movsxd rax, dword [rsp + 0x60]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rax + 0x18], 0
jmp 0x1400087cf
lea rax, [0x1400d9bc0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x108], rax
movsxd rax, dword [rsp + 0x400]
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x3e0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x64
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x3f8]
xor r8d, r8d
lea rdx, str.ToolbarWindow32
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x1400089ff
mov qword [rsp + 0x110], 0
lea rax, [rsp + 0x1b8]
cmp qword [rsp + 0x1b0], rax
je 0x1400089f2
lea rcx, [rsp + 0x1b0]
call fcn.14000dee0
mov rax, qword [rsp + 0x110]
jmp 0x140008e1a
xor r9d, r9d
mov r8d, 0x20
mov edx, 0x41e
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_SendMessageA]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x31
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_SendMessageA]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x140008a64
mov dword [rsp + 0xa8], 1
jmp 0x140008a6f
mov dword [rsp + 0xa8], 0
movzx eax, byte [rsp + 0xa8]
test eax, eax
je 0x140008ab2
mov ecx, 0x11
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0x120], rax
xor eax, eax
test eax, eax
je 0x140008aa2
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x168]
mov rdi, rax
xor eax, eax
mov ecx, 0x3c
rep stosb byte [rdi], al
lea r8, [rsp + 0x168]
mov edx, 0x3c
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.GDI32.dll_GetObjectA]
cdqe
cmp rax, 0x3c
jne 0x140008af6
mov dword [rsp + 0xb4], 1
jmp 0x140008b01
mov dword [rsp + 0xb4], 0
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0xb8], eax
mov ecx, dword [rsp + 0xb8]
call fcn.1400368f4
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x160]
mov qword [rsp + 0xe8], rax
movzx eax, word [rsp + 0x3e8]
mov rcx, qword [rsp + 0xe8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
mov qword [rsp + 0x128], rax
lea rax, [0x1400d9bc0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x130]
call fcn.140006510
mov word [rsp + 0x74], ax
movzx eax, word [rsp + 0x74]
cmp eax, 4
jle 0x140008c34
mov dword [rsp + 0xac], 0xff000000
movzx eax, word [rsp + 0x74]
cmp eax, 0x20
jne 0x140008bb1
mov dword [rsp + 0xac], 0xffffffff
lea rax, [0x1400d9bc0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 2]
movzx ecx, word [rsp + 0x3e8]
mov dword [rsp + 0x30], 0x2040
mov dword [rsp + 0x28], 0
mov edx, dword [rsp + 0xac]
mov dword [rsp + 0x20], edx
mov r9d, 1
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.COMCTL32.dll_ImageList_LoadImageA]
mov qword [rsp + 0x140], rax
mov r9, qword [rsp + 0x140]
xor r8d, r8d
mov edx, 0x430
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x140008c8d
lea rax, [rsp + 0x150]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x150], rax
mov eax, dword [rsp + 0x3e8]
mov qword [rsp + 0x158], rax
movsxd rax, dword [rsp + 0x88]
lea r9, [rsp + 0x150]
mov r8, rax
mov edx, 0x413
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_SendMessageA]
movsxd rax, dword [rsp + 0xb0]
mov r9, qword [rsp + 0x68]
mov r8, rax
mov edx, 0x414
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 4]
movzx ecx, word [rsp + 0x70]
cmp eax, ecx
jle 0x140008cd8
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 4]
mov word [rsp + 0x78], ax
jmp 0x140008ce2
movzx eax, word [rsp + 0x70]
mov word [rsp + 0x78], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 2]
and rax, 0xffff
movzx eax, ax
movzx ecx, word [rsp + 0x78]
and rcx, 0xffff
movzx ecx, cx
shl ecx, 0x10
or eax, ecx
cdqe
mov r9, rax
xor r8d, r8d
mov edx, 0x420
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [rsp + 0xf4], 7
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 4]
movzx ecx, word [rsp + 0x70]
cmp eax, ecx
jle 0x140008d59
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 4]
mov word [rsp + 0x7a], ax
jmp 0x140008d63
movzx eax, word [rsp + 0x70]
mov word [rsp + 0x7a], ax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax + 2]
add eax, 7
cdqe
and rax, 0xffff
movzx eax, ax
movzx ecx, word [rsp + 0x7a]
add ecx, 7
movsxd rcx, ecx
and rcx, 0xffff
movzx ecx, cx
shl ecx, 0x10
or eax, ecx
cdqe
mov r9, rax
xor r8d, r8d
mov edx, 0x41f
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x148], rax
xor eax, eax
test eax, eax
je 0x140008df3
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x140008df3
mov qword [rsp + 0x98], 0
lea rax, [rsp + 0x1b8]
cmp qword [rsp + 0x1b0], rax
je 0x140008e12
lea rcx, [rsp + 0x1b0]
call fcn.14000dee0
mov rax, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140022d70
add rsp, 0x3d0
pop rdi
ret