Function at 0x180002238
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x180008098]
xor rax, rbp
mov qword [rbp + 0x10], rax
xor r13d, r13d
mov qword [rbp + 8], rcx
mov rax, rdx
mov qword [rbp], r13
xor edx, edx
mov rcx, rax
mov rdi, r9
mov ebx, r13d
lea r8d, [r13 + 2]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x1800022b5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1800024c8
xor r9d, r9d
mov rdx, rdi
mov rcx, r15
lea r8d, [r9 + 0x64]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1800022f5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1800024a0
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x1800022d6
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
nop dword [rax + rax]
mov r12d, eax
mov rsi, r14
cmp byte [r12 + r14], r13b
je 0x1800023b7
inc eax
mov edi, eax
cmp eax, 0x400
ja 0x18000236d
mov ecx, edi
call fcn.180001bac
test al, al
je 0x18000236d
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x18000235a
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.180005710
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x180002396
lea rcx, [rdi + 0x10]
cmp rcx, rdi
jae 0x18000237b
mov rsi, r13
jmp 0x180002396
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
je 0x180002376
mov qword [rax], r13
lea rsi, [rax + 0x10]
mov rbx, rax
test rsi, rsi
jne 0x1800023a5
mov edi, 0x8007000e
jmp 0x1800024a0
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov byte [r12 + rsi], r13b
test rsi, rsi
je 0x18000246e
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], r13b
jne 0x1800023c4
lea r12d, [rax + 1]
cdqe
lea rdi, [rax*2 + 2]
cmp rdi, 0x400
ja 0x180002416
mov rcx, rdi
call fcn.180001bac
test al, al
je 0x180002416
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x180002403
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.180005710
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x18000243a
lea rcx, [rdi + 0x10]
cmp rcx, rdi
jb 0x18000246e
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
je 0x18000246e
mov qword [rax], rbx
lea r14, [rax + 0x10]
mov rbx, rax
test r14, r14
je 0x18000246e
mov dword [rsp + 0x28], r12d
or r9d, 0xffffffff
mov r8, rsi
mov qword [rsp + 0x20], r14
xor edx, edx
mov word [r14], r13w
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
nop dword [rax + rax]
neg eax
sbb rdi, rdi
and rdi, r14
jmp 0x180002471
mov rdi, r13
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
je 0x18000239b
mov r8d, dword [rbp + 0x70]
lea rcx, [rbp]
mov r9, rax
mov rdx, rdi
call fcn.1800032ac
mov edi, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
jmp 0x1800024c3
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x1800024b1
mov eax, edi
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.1800051b0
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret