Function at 0x140051750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xa8
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov rsi, rcx
lea r14, [rcx + 0x1c0]
xor r12d, r12d
mov qword [r14], r12
mov rdi, qword [0x140111b18]
mov r13d, 0x80004002
test rdi, rdi
je 0x140051adf
lea edx, [r12 + 1]
mov rcx, rdi
call fcn.140061500
test eax, eax
je 0x140051adf
lea rcx, [rsi + 0x10]
lea rdx, str._0_9_
call fcn.14005c54c
test eax, eax
jne 0x140051adf
lea rcx, [rsi + 0x80]
lea rdx, str._a_zA_Z__
call fcn.14005c54c
test eax, eax
jne 0x140051adf
lea rcx, [rsi + 0xb8]
lea rdx, str.__n_r
call fcn.14005c54c
test eax, eax
jne 0x140051adf
lea rcx, [rsi + 0x48]
lea rdx, str._sxmlns:_a_zA_Z___s_s_____________s_a_zA_Z_:
call fcn.14005c54c
test eax, eax
jne 0x140051adf
lea rcx, [rsi + 0xf0]
lea rdx, str.___semantics____
call fcn.14005c54c
test eax, eax
jne 0x140051adf
lea r8, [0x1400f2f90]
mov edx, 0xc352
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140051adf
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140051adf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140051adf
mov rdx, rax
lea rcx, [rbp + 0x7f]
call fcn.14005cbc4
nop
lea rbx, [rsi + 0x128]
mov r8b, 1
mov edx, 0xbb8
mov rcx, rbx
call fcn.14001fc54
lea rax, [rbp + 0x77]
mov qword [rbp + 0x67], rax
mov rcx, qword [rbp + 0x7f]
add rcx, 0xffffffffffffffe8
call fcn.14005f0e4
add rax, 0x18
mov qword [rbp + 0x77], rax
mov r8, rbx
lea rdx, [rbp + 0x77]
mov rcx, rsi
call fcn.140052e80
nop
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400518e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140064bf9.0]
lea r8, [0x1400f2f90]
mov edx, 0xc351
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140051adf
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140051adf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x140051adf
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
lea r9, [0x140109e70]
mov rdx, r15
lea rcx, [rbp - 0x31]
call fcn.14005ef20
nop
lea rbx, [rsi + 0x170]
mov r8b, 1
mov edx, 0x64
mov rcx, rbx
call fcn.14001fc54
lea rax, [rbp - 0x59]
mov qword [rbp - 0x21], rax
mov rdi, qword [rbp - 0x31]
lea rcx, [rdi - 0x18]
call fcn.14005f0e4
add rax, 0x18
mov qword [rbp - 0x59], rax
mov r8, rbx
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.140052e80
nop
or eax, 0xffffffff
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x1400519c1
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140064bf9.0]
lea rbx, [rsi + 0x1b8]
mov qword [rsp + 0x20], rbx
lea r9, [0x1400f2828]
xor edx, edx
lea r8d, [rdx + 7]
lea rcx, [0x1400eebf8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x140051ae4
mov rcx, qword [rbx]
mov qword [rbp + 0x67], r12
test rcx, rcx
je 0x140051a15
mov rdx, qword [rcx]
mov rax, qword [rdx]
lea r8, [rbp + 0x67]
lea rdx, [0x1400f2838]
call qword [case.0x140064bf9.0]
nop
lea rcx, str.SelectionLanguage
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140051bb1
mov word [rbp - 0x49], r12w
lea rcx, [rbp - 0x49]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 8
mov word [rbp - 0x49], ax
lea rcx, str.XPath
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 0x41], rax
test rax, rax
je 0x140051b9a
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x140051a98
movups xmm0, xmmword [rbp - 0x49]
movaps xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbp - 0x39]
movsd qword [rbp + 7], xmm1
mov rax, qword [rcx]
lea r8, [rbp - 9]
mov rdx, rbx
mov rax, qword [rax + 0x280]
call qword [case.0x140064bf9.0]
mov edi, eax
lea rcx, [rbp - 0x49]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x140051ac4
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140064bf9.0]
nop
test edi, edi
js 0x140051ae4
mov rcx, r14
call fcn.14005e444
mov edi, eax
test eax, eax
js 0x140051ae4
cmp qword [r14], r12
cmove edi, r13d
jmp 0x140051ae4
mov edi, 0x80004005
mov qword [rbp + 0x6f], r12
test edi, edi
js 0x140051b66
mov rcx, qword [r14]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140064bf9.0]
mov rcx, qword [r14]
mov rax, qword [rcx]
lea r8, [rbp + 0x6f]
lea rdx, [0x1400f3b90]
mov rax, qword [rax]
call qword [case.0x140064bf9.0]
mov edi, eax
test eax, eax
js 0x140051b66
mov rdx, qword [rbp + 0x6f]
test rdx, rdx
cmove edi, r13d
test edi, edi
js 0x140051b66
lea rbx, [rsi + 0x1c8]
test rdx, rdx
je 0x140051b61
test rbx, rbx
je 0x140051b61
mov qword [rbp - 0x51], r12
lea r8, [rbp - 0x51]
call fcn.140062e14
mov edi, eax
test eax, eax
js 0x140051b66
mov rax, qword [rbp - 0x51]
add rax, 0xd8
mov qword [rbx], rax
mov edi, r12d
jmp 0x140051b66
mov edi, 0x80070057
mov dword [rsi + 0x1d0], r12d
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x140051b84
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140064bf9.0]
nop
mov eax, edi
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, 0xa
mov word [rbp - 0x49], ax
mov ecx, 0x8007000e
mov dword [rbp - 0x41], ecx
call fcn.140015968
nop
mov ecx, 0x8007000e
call fcn.140015968
int3