Function at 0x100015020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
xor r13d, r13d
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x20], rdi
lea rcx, [0x1000a9318]
mov rax, qword [0x1000a9318]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
mov rbp, qword [0x1000a8958]
mov edx, 0x13b
lea r8d, [r13 + 6]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r12, rax
test rax, rax
je 0x100015269
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x100015269
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x100015269
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rsi
lea ecx, [r13 + 5]
cmp rsi, rdx
jae 0x100015269
movzx eax, word [rsi]
lea rsi, [rsi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x1000150e6
cmp rsi, rdx
jae 0x100015269
movzx eax, word [rsi]
test ax, ax
je 0x100015269
movzx ebp, ax
mov ecx, 1
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebp
or eax, ecx
jge 0x100015136
mov edx, ebp
lea rcx, [rsp + 0x20]
call fcn.1000140c0
mov rdi, qword [rsp + 0x20]
lea r12, [rbp + rbp]
lea rdx, [rsi + 2]
mov r8, r12
mov rcx, rdi
call sub.msvcrt.dll_memcpy
test ebp, ebp
js 0x1000152ac
cmp ebp, dword [rdi - 0xc]
jg 0x1000152ac
mov dword [rdi - 0x10], ebp
mov word [r12 + rdi], 0
mov rbp, qword [0x1000a8958]
mov edx, 0x13b
mov r8d, 6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r12, rax
test rax, rax
je 0x100015269
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x100015269
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x100015269
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
add rdx, rsi
mov ecx, 4
nop
cmp rsi, rdx
jae 0x100015269
movzx eax, word [rsi]
lea rsi, [rsi + rax*2 + 2]
add ecx, 0xffffffff
jne 0x1000151d0
cmp rsi, rdx
jae 0x100015269
movzx eax, word [rsi]
test ax, ax
je 0x100015269
movzx ebp, ax
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, ebp
or eax, ecx
jge 0x100015218
mov edx, ebp
lea rcx, [rsp + 0x28]
call fcn.1000140c0
mov rbx, qword [rsp + 0x28]
lea r12, [rbp + rbp]
lea rdx, [rsi + 2]
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memcpy
test ebp, ebp
js 0x10001525e
cmp ebp, dword [rbx - 0xc]
jg 0x10001525e
mov dword [rbx - 0x10], ebp
mov word [r12 + rbx], 0
mov r9d, 0x24
mov r8, rbx
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x100015269
lea r13d, [rax - 5]
jmp 0x100015269
mov ecx, 0x80070057
call fcn.100013860
nop
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100015289
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1000152a7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r13d
jmp 0x1000152b7
mov ecx, 0x80070057
call fcn.100013860
nop
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
add rsp, 0x58
ret