Function at 0x1400050d8
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 [0x1400153a0]
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 0x140005158
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 0x140005328
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x14000518b
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 0x14000531e
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x140005172
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 0x140005243
lea edi, [rax + 1]
cmp edi, 0x400
ja 0x1400051f9
mov esi, edi
mov ecx, edi
call fcn.140004150
test al, al
je 0x1400051f9
lea rax, [rdi + 0xf]
cmp rax, rsi
ja 0x1400051e6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000dde0
sub rsp, rax
lea rdi, [rsp + 0x30]
jmp 0x140005222
mov esi, edi
lea rcx, [rdi + 0x10]
cmp rcx, rsi
jae 0x140005209
mov rdi, r13
jmp 0x140005222
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140005204
mov qword [rax], r13
mov rbx, rax
mov qword [rbp], rax
lea rdi, [rax + 0x10]
test rdi, rdi
jne 0x140005231
mov edi, 0x8007000e
jmp 0x14000531e
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov byte [r12 + rdi], r13b
test rdi, rdi
je 0x1400052ef
or r12, 0xffffffffffffffff
mov r14, r12
inc r14
cmp byte [rdi + r14], r13b
jne 0x140005253
inc r14d
movsxd rsi, r14d
add rsi, rsi
cmp rsi, 0x400
ja 0x1400052a0
mov rcx, rsi
call fcn.140004150
test al, al
je 0x1400052a0
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x14000528d
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000dde0
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x1400052c2
lea rcx, [rsi + 0x10]
cmp rcx, rsi
jb 0x1400052ef
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x1400052ef
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp], rax
lea rsi, [rax + 0x10]
test rsi, rsi
je 0x1400052ef
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 0x1400052f2
mov rdi, r13
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140005227
mov r9, rax
mov r8d, dword [rbp + 0x80]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.140004f4c
mov edi, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
jmp 0x140005336
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x14000532a
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.14000cf30
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