Function at 0x1800a1770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov rbx, rcx
cmp qword [rcx + 0xb0], 0
jne 0x1800a1a12
xor r14d, r14d
mov qword [rbp + 0x38], r14
mov eax, dword [rcx + 0x154]
cmp eax, 1
jne 0x1800a1879
mov qword [rbp + 0x40], r14
mov dword [rbp + 0x30], r14d
lea rax, [rbp + 0x40]
mov qword [rbp - 0x18], rax
mov rsi, qword [rcx + 0x78]
mov qword [rbp - 8], rsi
mov rcx, rsi
call sym.cloudinputx64.dll_protected:_void___cdecl_boost::serialization::singleton_class_boost::serialization::extended_type_info_typeid_struct_weasel::CandidateInfo__::constructor_void____ptr64
mov rdi, rax
test rax, rax
je 0x1800a17de
mov rax, qword [rax]
mov rcx, rdi
call qword [rax + 8]
lea rax, vtable.CSmartPtr_class_IDBFile_.0
mov qword [rbp - 0x10], rax
test rsi, rsi
je 0x1800a1814
lea rdx, [rbx + 0xd0]
cmp qword [rdx + 0x18], 8
jb 0x1800a17ff
mov rdx, qword [rdx]
mov rax, qword [rsi]
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x40]
mov rcx, rsi
call qword [rax + 0x20]
test eax, eax
js 0x1800a1856
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x1800a1856
mov r8d, dword [rbp + 0x30]
lea rcx, [rbp + 0x38]
call fcn.1800a4d80
test eax, eax
js 0x1800a184f
mov rsi, qword [rbp + 0x38]
test rsi, rsi
je 0x1800a184f
test rdi, rdi
je 0x1800a1846
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x40]
jmp 0x1800a1999
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test rdi, rdi
je 0x1800a1865
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x40]
call fcn.180102804
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp eax, 2
jne 0x1800a192a
lea r8, [rcx + 0x164]
movzx edx, word [rcx + 0x160]
mov rcx, qword [rcx + 0x158]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1800a1a0c
mov rdx, rax
mov rcx, qword [rbx + 0x158]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rdx, rdi
mov rcx, qword [rbx + 0x158]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
mov qword [rbp + 0x30], rax
test rax, rax
je 0x1800a190f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1800a190f
mov r8d, esi
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.1800a4d80
test eax, eax
js 0x1800a190f
mov rsi, qword [rbp + 0x38]
test rsi, rsi
je 0x1800a190f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1800a199e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp eax, 3
jne 0x1800a1a0c
mov qword [rbp + 0x30], r14
add rcx, 0x1e4
lea rdx, [rbp + 0x30]
call fcn.18005d650
mov rdi, qword [rbp + 0x30]
test rdi, rdi
je 0x1800a1a0c
test eax, eax
jle 0x1800a1a0c
mov qword [rbp + 0x30], rdi
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp + 0x38]
call fcn.1800a4d80
test eax, eax
js 0x1800a197c
mov rsi, qword [rbp + 0x38]
test rsi, rsi
jne 0x1800a1996
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rcx, rdi
call fcn.180102804
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, rdi
call fcn.180102804
mov qword [rbp + 0x48], r14
mov rax, qword [rsi]
lea rdx, [rbp + 0x48]
mov rcx, rsi
call qword [rax + 8]
mov eax, dword [rbp + 0x48]
mov dword [rbx + 0xa4], eax
mov eax, dword [rbp + 0x4c]
mov dword [rbx + 0xa8], eax
mov qword [rbx + 0xb0], rsi
mov rax, qword [rsi]
mov rdx, qword [rbx + 0x138]
mov rcx, rsi
call qword [rax + 0x38]
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x1800a1a12
mov rax, qword [rcx]
cmp byte [rbx + 0xb8], 0
je 0x1800a19fe
call qword [rax + 0x48]
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [rax + 0x50]
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret