Function at 0x140037a98
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 [0x14007c478]
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.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x140037b24
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140037d29
xor r9d, r9d
mov r8, rsi
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140037b63
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140037d19
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140037b44
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov rsi, r14
mov r12d, eax
cmp byte [r12 + r14], r13b
je 0x140037c29
inc eax
mov edi, eax
cmp eax, 0x400
ja 0x140037bdb
mov ecx, edi
call fcn.1400369e0
test al, al
je 0x140037bdb
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x140037bc8
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400445d0
sub rsp, rax
lea rsi, [rsp + 0x30]
jmp 0x140037c08
lea rcx, [rdi + 0x10]
cmp rcx, rdi
jae 0x140037be9
mov rsi, r13
jmp 0x140037c08
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
je 0x140037be4
mov qword [rax], r13
mov rbx, rax
mov qword [rbp], rax
lea rsi, [rax + 0x10]
test rsi, rsi
jne 0x140037c17
mov edi, 0x8007000e
jmp 0x140037d19
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov byte [r12 + rsi], r13b
test rsi, rsi
je 0x140037ce4
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], r13b
jne 0x140037c36
lea r12d, [rax + 1]
cdqe
lea rdi, [rax*2 + 2]
cmp rdi, 0x400
ja 0x140037c88
mov rcx, rdi
call fcn.1400369e0
test al, al
je 0x140037c88
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x140037c75
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400445d0
sub rsp, rax
lea r14, [rsp + 0x30]
jmp 0x140037cb0
lea rcx, [rdi + 0x10]
cmp rcx, rdi
jb 0x140037ce4
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
je 0x140037ce4
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp], rax
lea r14, [rax + 0x10]
test r14, r14
je 0x140037ce4
mov word [r14], r13w
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r14
or r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
neg eax
sbb rdi, rdi
and rdi, r14
jmp 0x140037ce7
mov rdi, r13
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
je 0x140037c0d
mov r9, rax
mov r8d, dword [rbp + 0x80]
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.1400378f4
mov edi, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
nop
jmp 0x140037d3d
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x140037d2b
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.1400438c0
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