Function at 0x1801412f0
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 + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbx, rcx
cmp dword [rcx + 0x58], 0
jle 0x180141328
mov eax, 1
jmp 0x180141605
xor r15d, r15d
mov ebp, r15d
mov r12d, 0xffff
movzx edi, r12w
cmp qword [rcx + 0x28], r15
je 0x1801415c9
cmp qword [rcx + 0x38], r15
jne 0x180141397
lea rcx, [rsp + 0x28]
call fcn.180187070
nop
lea r8, [rsp + 0x28]
mov rdx, qword [rbx + 0x28]
mov rcx, rbx
call fcn.1801408d0
cmp dword [rsp + 0x30], r15d
je 0x180141388
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.1801403e0
nop
lea rcx, [rsp + 0x28]
call fcn.180187080
jmp 0x180141397
lea rcx, [rsp + 0x28]
call fcn.180187080
jmp 0x1801415e3
cmp word [rbx + 0x48], r12w
jne 0x18014147d
lea rcx, [rsp + 0x28]
call fcn.1801874e0
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.180140cc0
mov r11d, dword [rsp + 0x30]
test r11d, r11d
je 0x18014146e
cmp r11d, 1
jne 0x1801413e0
mov rax, qword [rsp + 0x28]
movzx edi, word [rax]
mov word [rbx + 0x48], r15w
jmp 0x180141462
mov r10, qword [rsp + 0x28]
test r11d, r11d
jle 0x180141453
mov r8, r10
mov r9, r11
mov r11d, 0x3ff
nop word [rax + rax]
movzx ecx, word [r8]
movzx eax, cx
and ax, r11w
cmp ax, 9
jne 0x180141424
movzx edx, word [rbx + 0x48]
movzx eax, dx
and ax, r11w
cmp ax, 9
jne 0x180141446
jmp 0x180141441
cmp ax, 4
jne 0x18014144a
movzx edx, word [rbx + 0x48]
movzx eax, dx
and ax, r11w
cmp ax, 9
je 0x18014144a
cmp dx, r12w
je 0x180141446
cmp dx, cx
jae 0x18014144a
mov word [rbx + 0x48], cx
add r8, 2
dec r9
jne 0x180141400
cmp word [rbx + 0x48], r12w
jne 0x180141462
movzx eax, word [r10]
mov word [rbx + 0x48], ax
lea rcx, [rsp + 0x28]
call fcn.1801874f0
jmp 0x18014147d
lea rcx, [rsp + 0x28]
call fcn.1801874f0
jmp 0x1801415e3
mov rcx, rbx
call fcn.180140420
mov r13, rax
test rax, rax
je 0x1801415e3
movzx r9d, word [rbx + 0x48]
mov r8, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rsi, rax
test rax, rax
je 0x1801415e3
cmp word [rbx + 0x48], 0
jne 0x1801414ca
movzx eax, word [rbx + 0x48]
cmp di, r12w
cmovne ax, di
mov word [rbx + 0x48], ax
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x1801415e3
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x90], rax
test rax, rax
je 0x1801415e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1801415d6
mov r12d, r15d
nop word [rax + rax]
or r8d, 0xffffffff
mov edx, edi
lea rcx, [rbx + 0x50]
call fcn.180186c40
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x50]
call fcn.1801400f0
test eax, eax
jne 0x1801415bb
cmp r12d, 1
je 0x1801415d6
mov rbp, r13
and rbp, 0xfffffffffffffffe
mov qword [rsp + 0x28], r15
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 0x1801415d6
cmp rsi, rbp
jb 0x1801415d6
mov rdx, qword [rsp + 0x40]
lea rcx, [rdx + rbp]
cmp rsi, rcx
ja 0x1801415d6
mov eax, edi
add rax, rsi
cmp rax, rcx
jb 0x1801415d6
mov edi, ebp
sub edi, esi
add edi, edx
inc r12d
cmp r12d, 2
jge 0x1801415d6
jmp 0x180141520
mov rbp, qword [rsp + 0x90]
mov qword [rbx + 0x20], rbp
jmp 0x1801415fa
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1801415e3
mov rbp, qword [rsp + 0x90]
jmp 0x1801415e3
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
test rbp, rbp
je 0x1801415fa
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [rbx + 0x58], 0
setg r15b
mov eax, r15d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret