Function at 0x100005ddc
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 [0x10000b170]
xor rax, rbp
mov qword [rbp + 0x20], rax
mov rdi, r9
mov rsi, r8
mov rax, rdx
xor r15d, r15d
mov rbx, r15
mov qword [rbp], rbx
mov qword [rbp + 0x10], rcx
mov qword [rbp + 8], r15
xor edx, edx
lea r8d, [r15 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r14, rax
cmp rax, r15
jne 0x100005e5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
jmp 0x100006064
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, r15
jne 0x100005e8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
jmp 0x10000605a
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
cmp rax, r15
jne 0x100005ebc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r15d
cmovle edi, eax
jmp 0x10000605a
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rsi, r13
mov r15d, eax
movabs r12, 0xffffffffffffff0
cmp byte [r15 + r13], 0
je 0x100005f7f
lea edi, [rax + 1]
cmp edi, 0x400
ja 0x100005f22
mov r12d, edi
mov ecx, edi
call fcn.100004b58
test al, al
je 0x100005f22
lea rax, [rdi + 0xf]
cmp rax, r12
ja 0x100005f0f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1000082f0
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x100005f50
mov r12d, edi
lea rcx, [rdi + 0x10]
cmp rcx, r12
jae 0x100005f32
xor esi, esi
jmp 0x100005f50
call qword [sym.imp.msvcrt.dll_malloc]
test rax, rax
jne 0x100005f41
xor esi, esi
jmp 0x100005f50
and qword [rax], 0
mov rbx, rax
mov qword [rbp], rax
lea rsi, [rax + 0x10]
test rsi, rsi
jne 0x100005f62
mov edi, 0x8007000e
xor r15d, r15d
jmp 0x10000605a
mov r8, r12
mov rdx, r13
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov byte [r15 + rsi], 0
movabs r12, 0xffffffffffffff0
xor r15d, r15d
cmp rsi, r15
jne 0x100005f8f
mov rdi, r15
jmp 0x10000602b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r13d, [rax + 1]
movsxd rdi, r13d
add rdi, rdi
cmp rdi, 0x400
ja 0x100005fd7
mov rcx, rdi
call fcn.100004b58
cmp al, r15b
je 0x100005fd7
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x100005fc4
mov rax, r12
and rax, 0xfffffffffffffff0
call fcn.1000082f0
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x100005ff9
lea rcx, [rdi + 0x10]
cmp rcx, rdi
jb 0x100006028
call qword [sym.imp.msvcrt.dll_malloc]
cmp rax, r15
je 0x100006028
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp], rax
lea r12, [rax + 0x10]
cmp r12, r15
je 0x100006028
mov word [r12], r15w
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdi, rdi
and rdi, r12
jmp 0x10000602b
mov rdi, r15
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
cmp rax, r15
jne 0x100006042
mov edi, 0x8007000e
jmp 0x10000605a
mov r9, rax
mov r8d, dword [rbp + 0x80]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.100005c4c
mov edi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
cmp rbx, r15
je 0x10000607a
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
cmp rbx, r15
jne 0x100006069
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.100007a20
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