Function at 0x180079d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbx, rcx
cmp dword [rcx + 0x58], 0
jle 0x180079d88
mov eax, 1
jmp 0x18007a013
xor ebp, ebp
mov r15d, ebp
cmp qword [rcx + 0x28], rbp
je 0x180079fe5
cmp qword [rcx + 0x38], rbp
jne 0x180079deb
lea rcx, [rsp + 0x28]
call fcn.180085c80
nop
lea r8, [rsp + 0x28]
mov rdx, qword [rbx + 0x28]
mov rcx, rbx
call fcn.180079ae0
cmp dword [rsp + 0x30], ebp
je 0x180079ddc
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.180079610
nop
lea rcx, [rsp + 0x28]
call fcn.180085c90
jmp 0x180079deb
lea rcx, [rsp + 0x28]
call fcn.180085c90
jmp 0x180079ff0
mov edi, 0xffff
cmp word [rbx + 0x48], di
jne 0x180079ebb
lea rcx, [rsp + 0x28]
call fcn.1800860f0
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.180079d40
mov r11d, dword [rsp + 0x30]
test r11d, r11d
je 0x180079eac
mov r10, qword [rsp + 0x28]
jle 0x180079e92
mov r8, r10
mov r9d, r11d
mov r11d, 0x3ff
nop word [rax + rax]
movzx ecx, word [r8]
movzx eax, cx
and ax, r11w
cmp ax, 9
jne 0x180079e64
movzx edx, word [rbx + 0x48]
movzx eax, dx
and ax, r11w
cmp ax, 9
jne 0x180079e85
jmp 0x180079e80
cmp ax, 4
jne 0x180079e89
movzx edx, word [rbx + 0x48]
movzx eax, dx
and ax, r11w
cmp ax, 9
je 0x180079e89
cmp dx, di
je 0x180079e85
cmp dx, cx
jae 0x180079e89
mov word [rbx + 0x48], cx
add r8, 2
dec r9
jne 0x180079e40
cmp word [rbx + 0x48], di
jne 0x180079ea0
movzx eax, word [r10]
mov word [rbx + 0x48], ax
lea rcx, [rsp + 0x28]
call fcn.180086100
jmp 0x180079ebb
lea rcx, [rsp + 0x28]
call fcn.180086100
jmp 0x180079ff0
mov rcx, rbx
call fcn.180079650
mov r13, rax
test rax, rax
je 0x180079ff0
movzx r9d, word [rbx + 0x48]
mov r8, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
mov rsi, rax
test rax, rax
je 0x180079ff0
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x180079ff0
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
je 0x180079ff0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x180079ff0
mov r12d, ebp
nop word [rax + rax]
or r8d, 0xffffffff
mov edx, edi
lea rcx, [rbx + 0x50]
call fcn.180085850
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x50]
call fcn.180079430
test eax, eax
jne 0x180079fdf
cmp r12d, 1
je 0x180079ff0
mov rbp, r13
and rbp, 0xfffffffffffffffe
mov qword [rsp + 0x28], 0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea r8d, [rax + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180079ff0
cmp rsi, rbp
jb 0x180079ff0
mov rdx, qword [rsp + 0x40]
lea rcx, [rdx + rbp]
cmp rsi, rcx
ja 0x180079ff0
mov eax, edi
add rax, rsi
cmp rax, rcx
jb 0x180079ff0
mov edi, ebp
sub edi, esi
add edi, edx
inc r12d
cmp r12d, 2
jge 0x180079ff0
jmp 0x180079f40
mov qword [rbx + 0x20], r15
jmp 0x18007a007
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
test r15, r15
je 0x18007a007
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [rbx + 0x58], 0
mov eax, 0
setg al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret