Function at 0x14006d468
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
lea r8, [0x14010e5a0]
lea rdx, str.OLEAUT32.DLL
lea rcx, str.OleLoadPicture
xor r9d, r9d
call fcn.1400519cc
xor r13d, r13d
cmp rbx, r13
je 0x14006d4ac
mov r12d, dword [rbx]
jmp 0x14006d4af
mov r12d, r13d
cmp rbp, r13
mov eax, 0x64
mov dword [rdi + 0x50], r13d
cmove rbp, rax
mov dword [rdi + 0x54], r13d
mov dword [rdi + 0x58], r13d
cmp rbp, 0x10000
mov dword [rdi + 0x5c], r13d
mov qword [rsp + 0xa8], rbp
jge 0x14006d52a
mov rbx, qword [0x14010dd78]
lea r8, str.IMAGE
movzx edx, bp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
cmp rax, r13
jne 0x14006d506
or eax, 0xffffffff
jmp 0x14006d7dc
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rdi], eax
cmp eax, 8
jb 0x14006d4fe
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x14006d601
cmp r12d, r13d
je 0x14006d53b
mov rax, qword [rbp]
mov dword [rdi], r12d
jmp 0x14006d601
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x80
lea rcx, [rsp + 0xb0]
mov r9d, 1
mov r8d, 0x80000000
mov rdx, rbp
mov dword [rsp + 0x28], 3
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0x20], r13
call fcn.140003568
mov rbx, qword [rsp + 0xb0]
cmp rbx, r13
je 0x14006d4fe
lea r9, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
mov r8d, 6
mov rcx, rbx
mov qword [rsp + 0x40], r13
mov dword [rsp + 0xa0], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rcx, [rsp + 0x40]
call fcn.140057980
cmp eax, r13d
jne 0x14006d5e0
cmp rbx, 0xffffffffffffffff
je 0x14006d5d6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffe
jmp 0x14006d7dc
cmp rbx, 0xffffffffffffffff
je 0x14006d5ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call fcn.140060cb8
mov qword [rdi + 0x48], rax
mov qword [rdi + 8], rax
mov rcx, rax
cmp rax, r13
je 0x14006d4fe
call fcn.140057980
cmp eax, r13d
je 0x14006d5d6
mov dword [rdi + 0x30], r13d
mov dword [rdi + 0x28], r13d
mov dword [rdi + 0x34], 0xffffff9c
mov dword [rdi + 0x2c], r13d
mov qword [rdi + 0x38], r13
mov word [rsp + 0xb0], r13w
mov esi, r13d
mov dword [rsp + 0xa0], r13d
cmp dword [rdi], r13d
jbe 0x14006d7a4
mov ebp, dword [rsp + 0xb0]
mov r9, qword [rdi + 8]
mov r14d, esi
mov al, byte [r14 + r9]
cmp al, 0x2c
jne 0x14006d730
lea eax, [rsi - 1]
cmp byte [rax + r9], r13b
jne 0x14006d78b
cmp dword [rdi + 0x28], r13d
jne 0x14006d67f
mov dword [rdi + 0x2c], esi
lea eax, [rsi + 1]
mov edx, 1
movzx r8d, byte [rax + r9 + 8]
mov ecx, r8d
shr r8d, 7
and ecx, 7
inc ecx
shl edx, cl
mov rcx, r9
imul edx, r8d
lea r8d, [rdx + rdx*2 + 0xb]
lea rdx, [rsp + 0xa0]
call fcn.140057958
mov ecx, 0x10
mov r15d, eax
call fcn.1400d4458
mov r13, rax
xor eax, eax
cmp r13, rax
je 0x14006d6d9
mov qword [r13], rax
mov dword [r13 + 8], eax
mov dword [r13 + 0xc], eax
jmp 0x14006d6dc
mov r13, rax
movsxd rcx, dword [rdi + 0x28]
lea rdx, [rdi + 0x10]
mov r9d, 8
lea r8, [rdx + 8]
call fcn.1400585ec
mov rcx, r15
mov qword [rax], r13
call fcn.1400d4458
mov r8, r15
mov qword [r13], rax
mov rcx, qword [rdi + 8]
lea rdx, [r14 + rcx]
mov rcx, rax
call fcn.14001aac4
movzx eax, bp
mov dword [r13 + 8], r15d
mov dword [r13 + 0xc], eax
xor r13d, r13d
inc dword [rdi + 0x28]
mov ebp, r13d
lea esi, [rsi + r15 - 1]
jmp 0x14006d78b
cmp al, 0x21
jne 0x14006d78b
lea eax, [rsi + 1]
mov al, byte [rax + r9]
cmp al, 0xf9
jne 0x14006d757
mov cx, word [r14 + r9 + 4]
movzx eax, cx
shl ax, 2
add cx, ax
add esi, 7
lea ebp, [rcx + rcx]
jmp 0x14006d78b
cmp al, 0xff
jne 0x14006d763
mov r8d, 0xe
jmp 0x14006d779
cmp al, 0xfe
jne 0x14006d76f
mov r8d, 2
jmp 0x14006d779
cmp al, 1
jne 0x14006d78b
mov r8d, 0x10
lea rdx, [rsp + 0xa0]
mov rcx, r9
call fcn.140057958
add esi, eax
inc esi
mov dword [rsp + 0xa0], esi
cmp esi, dword [rdi]
jb 0x14006d656
mov rbp, qword [rsp + 0xa8]
cmp dword [rdi + 0x28], 1
jle 0x14006d4fe
cmp r12d, r13d
je 0x14006d7bf
mov rax, qword [rdi + 8]
mov qword [rdi + 0x48], rax
mov qword [rbp], r13
mov edx, dword [rdi]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0xb8]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rdi + 0x28]
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret