Function at 0x468310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
sub rsp, 0x78
movzx eax, word [0x0050c120]
test ax, ax
jne 0x4686ac
mov rax, qword [0x00507908]
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r12
lea rcx, [0x00507908]
mov qword [r11 - 0x10], r13
call qword [rax + 0x18]
lea rcx, [0x0050cdc0]
xor r13d, r13d
lea rbx, [rax + 0x18]
xor edx, edx
mov rdi, r13
mov qword [rsp + 0x20], rbx
call fcn.0048e98c
lea r12d, [r13 + 1]
test rax, rax
mov rbp, rax
je 0x468457
nop
test rdi, rdi
jne 0x468457
lea edx, [rdi + 6]
lea r8d, [rdi + 0x11]
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rsi, rax
jne 0x4683a9
mov rdi, r13
jmp 0x468419
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x4683bf
mov rdi, r13
jmp 0x468414
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
jne 0x4683d5
mov rdi, r13
jmp 0x468414
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 7
mov r11d, eax
add r11, rdi
nop
cmp rdi, r11
jae 0x468411
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x4683f0
cmp rdi, r11
jae 0x468411
cmp word [rdi], r13w
cmove rdi, r13
jmp 0x468414
mov rdi, r13
test rdi, rdi
jne 0x46843a
lea rcx, [0x0050cdc0]
mov edx, r12d
call fcn.0048e98c
add r12d, 1
test rax, rax
mov rbp, rax
jne 0x468380
jmp 0x468457
test rbp, rbp
je 0x468457
lea rcx, [rsp + 0x20]
mov r8d, 0x107
mov rdx, rbp
call fcn.00415cf0
mov rbx, qword [rsp + 0x20]
cmp qword [0x0050c140], r13
jne 0x468465
call fcn.00468110
lea rdx, [0x0050c130]
lea rcx, [rsp + 0x40]
call fcn.00468020
mov r11, qword [rsp + 0x48]
mov r12d, 0xffffffff
mov rax, qword [r11]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
test rsi, rsi
mov rbp, r11
je 0x4684ba
lea rax, [rsp + 0x40]
cmp rsi, rax
je 0x4684c4
call fcn.00490fc0
mov r11, qword [rsp + 0x48]
cmp rdi, rbp
je 0x4685fa
test rsi, rsi
jne 0x4684d7
call fcn.00490fc0
cmp rdi, qword [rsi + 8]
jne 0x4684e2
call fcn.00490fc0
movzx r8d, word [rdi + 0x10]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov edx, 0x107
call fcn.004686c0
test rbx, rbx
je 0x4685ef
mov rax, qword [rax]
sub rbx, rax
nop
nop
movzx edx, word [rax]
movzx ecx, word [rax + rbx]
sub edx, ecx
jne 0x468523
add rax, 2
test ecx, ecx
jne 0x468510
test edx, edx
mov rdx, qword [rsp + 0x30]
mov eax, r12d
sete bl
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x468549
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
jne 0x46856a
cmp rdi, qword [rsi + 8]
jne 0x468558
call fcn.00490fc0
mov rdi, qword [rdi]
mov rbx, qword [rsp + 0x20]
mov r11, qword [rsp + 0x48]
jmp 0x4684a8
cmp rdi, qword [rsi + 8]
jne 0x468575
call fcn.00490fc0
mov rax, qword [rsp + 0x48]
movzx edi, word [rdi + 0x10]
mov rcx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x48]
mov word [0x0050c120], di
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x48]
cmp rcx, rax
mov qword [rsp + 0x50], r13
je 0x4685b8
mov rbx, qword [rcx]
call fcn.00490170
mov rax, qword [rsp + 0x48]
cmp rbx, rax
mov rcx, rbx
jne 0x4685a3
mov rcx, rax
call fcn.00490170
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], r13
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x4685e7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov ax, di
jmp 0x468682
mov ecx, 0x80004005
call fcn.00407f10
int3
mov rax, qword [0x0050c138]
mov rdi, qword [rax]
cmp rdi, rax
jne 0x468613
call fcn.00490fc0
mov r11, qword [rsp + 0x48]
movzx esi, word [rdi + 0x10]
mov rcx, qword [r11]
mov qword [r11], r11
mov rax, qword [rsp + 0x48]
mov word [0x0050c120], si
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], r13
cmp rcx, rax
je 0x468655
nop
mov rdi, qword [rcx]
call fcn.00490170
mov rax, qword [rsp + 0x48]
cmp rdi, rax
mov rcx, rdi
jne 0x468640
mov rcx, rax
call fcn.00490170
mov qword [rsp + 0x48], r13
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r12d
add r12d, 0xffffffff
test r12d, r12d
jg 0x46867f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov ax, si
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r13, qword [rsp + 0x68]
add rsp, 0x78
ret