Function at 0x14000671c
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 [0x140013130]
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_1_1.dll_LoadLibraryExW]
mov r15, rax
test rax, rax
jne 0x14000679c
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 0x14000696d
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_1.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x1400067cf
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 0x140006963
mov rdx, rax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_1.dll_LoadResource]
mov r14, rax
test rax, rax
je 0x1400067b6
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_1.dll_SizeofResource]
mov rdi, r14
mov r12d, eax
cmp byte [r12 + r14], r13b
je 0x140006887
lea edi, [rax + 1]
cmp edi, 0x400
ja 0x14000683d
mov esi, edi
mov ecx, edi
call fcn.140005604
test al, al
je 0x14000683d
lea rax, [rdi + 0xf]
cmp rax, rsi
ja 0x14000682a
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000f140
sub rsp, rax
lea rdi, [rsp + 0x30]
jmp 0x140006866
mov esi, edi
lea rcx, [rdi + 0x10]
cmp rcx, rsi
jae 0x14000684d
mov rdi, r13
jmp 0x140006866
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140006848
mov qword [rax], r13
mov rbx, rax
mov qword [rbp], rax
lea rdi, [rax + 0x10]
test rdi, rdi
jne 0x140006875
mov edi, 0x8007000e
jmp 0x140006963
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov byte [r12 + rdi], r13b
test rdi, rdi
je 0x140006934
or r12, 0xffffffffffffffff
mov r14, r12
inc r14
cmp byte [rdi + r14], r13b
jne 0x140006897
inc r14d
movsxd rax, r14d
lea rsi, [rax + rax]
cmp rsi, 0x400
ja 0x1400068e5
mov rcx, rsi
call fcn.140005604
test al, al
je 0x1400068e5
lea rax, [rsi + 0xf]
cmp rax, rsi
ja 0x1400068d2
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000f140
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x140006907
lea rcx, [rsi + 0x10]
cmp rcx, rsi
jb 0x140006934
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x140006934
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp], rax
lea rsi, [rax + 0x10]
test rsi, rsi
je 0x140006934
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 0x140006937
mov rdi, r13
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
je 0x14000686b
mov r9, rax
mov r8d, dword [rbp + 0x80]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.140006594
mov edi, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_1.dll_FreeLibrary]
nop
jmp 0x14000697b
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x14000696f
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.14000e510
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