Function at 0x140004e74
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 r15, rax
test rax, rax
jne 0x140004ef4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400050c4
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x140004f27
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400050ba
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x140004f0e
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov rdi, r14
mov r12d, eax
cmp byte [r12 + r14], r13b
je 0x140004fdf
lea edi, [rax + 1]
cmp edi, 0x400
ja 0x140004f95
mov esi, edi
mov ecx, edi
call fcn.140003f10
test al, al
je 0x140004f95
lea rax, [rdi + 0xf]
cmp rax, rsi
ja 0x140004f82
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000d4f0
sub rsp, rax
lea rdi, [rsp + 0x30]
jmp 0x140004fbe
mov esi, edi
lea rcx, [rdi + 0x10]
cmp rcx, rsi
jae 0x140004fa5
mov rdi, r13
jmp 0x140004fbe
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140004fa0
mov qword [rax], r13
mov rbx, rax
mov qword [rbp], rax
lea rdi, [rax + 0x10]
test rdi, rdi
jne 0x140004fcd
mov edi, 0x8007000e
jmp 0x1400050ba
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov byte [r12 + rdi], r13b
test rdi, rdi
je 0x14000508b
or r12, 0xffffffffffffffff
mov r14, r12
inc r14
cmp byte [rdi + r14], r13b
jne 0x140004fef
inc r14d
movsxd rsi, r14d
add rsi, rsi
cmp rsi, 0x400
ja 0x14000503c
mov rcx, rsi
call fcn.140003f10
test al, al
je 0x14000503c
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x140005029
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000d4f0
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x14000505e
lea rcx, [rsi + 0x10]
cmp rcx, rsi
jb 0x14000508b
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x14000508b
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp], rax
lea rsi, [rax + 0x10]
test rsi, rsi
je 0x14000508b
mov word [rsi], r13w
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
mov r9d, r12d
mov r8, rdi
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, rsi
jmp 0x14000508e
mov rdi, r13
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140004fc3
mov r9, rax
mov r8d, dword [rbp + 0x80]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.140004cf0
mov edi, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
jmp 0x1400050d2
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x1400050c6
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.14000c8f0
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