Function at 0x140004cbc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], rdi
mov rax, qword [0x1400143a0]
xor rax, rbp
mov qword [rbp + 0x20], rax
mov rdi, r9
mov rsi, r8
mov rax, rdx
xor r13d, r13d
mov ebx, r13d
mov qword [rbp], rbx
mov qword [rbp + 0x10], rcx
mov qword [rbp + 8], r13
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov r12, rax
test rax, rax
jne 0x140004d3c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140004f06
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x140004d6f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140004efc
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x140004d56
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov rsi, r14
mov r15d, eax
cmp byte [r15 + r14], r13b
je 0x140004e23
inc eax
mov edi, eax
cmp eax, 0x400
ja 0x140004ddb
mov ecx, edi
call fcn.140003d68
test al, al
je 0x140004ddb
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x140004dc8
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000d230
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x140004e02
lea rcx, [rdi + 0x10]
cmp rcx, rdi
jae 0x140004de9
mov rsi, r13
jmp 0x140004e02
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140004de4
mov qword [rax], r13
mov rbx, rax
mov qword [rbp], rax
lea rsi, [rax + 0x10]
test rsi, rsi
jne 0x140004e11
mov edi, 0x8007000e
jmp 0x140004efc
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov byte [r15 + rsi], r13b
test rsi, rsi
je 0x140004ecd
or r15, 0xffffffffffffffff
inc r15
cmp byte [rsi + r15], r13b
jne 0x140004e30
inc r15d
movsxd rdi, r15d
add rdi, rdi
cmp rdi, 0x400
ja 0x140004e7d
mov rcx, rdi
call fcn.140003d68
test al, al
je 0x140004e7d
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x140004e6a
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000d230
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x140004e9f
lea rcx, [rdi + 0x10]
cmp rcx, rdi
jb 0x140004ecd
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140004ecd
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp], rax
lea r14, [rax + 0x10]
test r14, r14
je 0x140004ecd
mov word [r14], r13w
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r14
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
neg eax
sbb rdi, rdi
and rdi, r14
jmp 0x140004ed0
mov rdi, r13
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140004e07
mov r9, rax
mov r8d, dword [rbp + 0x80]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.140004b3c
mov edi, eax
mov rcx, r12
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
jmp 0x140004f14
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140004f08
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.14000c6d0
mov rbx, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x68]
mov rdi, qword [rbp + 0x70]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret