Function at 0x1800b9bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1801c1080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
lea rax, vtable.CSmartObjectImpl_class_IDBFile_.0
mov qword [rcx], rax
xor edi, edi
mov dword [rcx + 8], edi
lea rax, vtable.CDBSharedMem.0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x220], rdi
mov qword [rcx + 0x228], rdi
mov dword [rcx + 0x230], edi
mov qword [rcx + 0x238], rdi
add rcx, 0x18
xor edx, edx
mov r8d, 0x208
call fcn.1801099b0
nop
lea rax, vtable.CDBSharedMemFile.0
mov qword [rsi], rax
lea rax, vtable.CDBSharedMemFile.1.0
mov qword [rsi + 0x10], rax
lea rcx, [rsi + 0x240]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rsi + 0x270], rdi
lea rax, vtable.CSmartPtr_class_IDBParser_.0
mov qword [rsi + 0x268], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.1801099b0
lea rax, [rbx + 0x100]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [0x180179828]
lea r8, str._s_Skin__s__s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.180055230
mov eax, dword [rbx + 0x184]
test eax, eax
jne 0x1800b9dc9
lea rcx, [rbx + 0x190]
cmp word [rcx], ax
je 0x1800b9eed
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x30]
call fcn.18005d650
mov edi, eax
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rbx
test eax, eax
jle 0x1800b9dbc
test rbx, rbx
je 0x1800b9dbc
mov edx, eax
mov rcx, rbx
call fcn.1800b9040
cmp eax, 0xffffffff
je 0x1800b9dbc
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1800b9fe0
test eax, eax
jns 0x1800b9dbc
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rbx
lea rcx, [rsi + 0x10]
call fcn.1800bdd60
mov rax, qword [rsi + 0x228]
test rax, rax
je 0x1800b9dbc
cmp dword [rax], 0x50
jbe 0x1800b9dbc
lea rcx, [rsi + 0x10]
call fcn.1800be3e0
mov edx, dword [rax]
sub edx, 0x50
lea rcx, [rax + 0x50]
lea r8, [rsi + 0x270]
call fcn.1800bafa0
mov rcx, qword [rsi + 0x270]
test rcx, rcx
je 0x1800b9daf
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
jne 0x1800b9dbc
lea rcx, [rsi + 0x268]
call fcn.1800be410
nop
mov rcx, rbx
call fcn.180102804
jmp 0x1800b9eed
cmp eax, 1
jne 0x1800b9ed2
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x1800b9eed
lea r8, [rbx + 0x19c]
movzx edx, word [rbx + 0x198]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1800b9eed
mov rdx, rax
mov rcx, qword [rbx + 0x190]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rdx, rdi
mov rcx, qword [rbx + 0x190]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
mov qword [rsp + 0x50], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800b9ec7
mov edx, ebp
mov rcx, rax
call fcn.1800b9040
cmp eax, 0xffffffff
je 0x1800b9ec7
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1800b9fe0
test eax, eax
jns 0x1800b9ec7
lea r9, [rsp + 0x60]
mov r8d, ebp
mov rdx, rbx
lea rcx, [rsi + 0x10]
call fcn.1800bdd60
mov rax, qword [rsi + 0x228]
test rax, rax
je 0x1800b9ec7
cmp dword [rax], 0x50
jbe 0x1800b9ec7
lea rcx, [rsi + 0x10]
call fcn.1800be3e0
mov edx, dword [rax]
sub edx, 0x50
lea rcx, [rax + 0x50]
lea r8, [rsi + 0x270]
call fcn.1800bafa0
mov rcx, qword [rsi + 0x270]
test rcx, rcx
je 0x1800b9eba
mov rax, qword [rcx]
call qword [rax + 0x30]
test al, al
jne 0x1800b9ec7
lea rcx, [rsi + 0x268]
call fcn.1800be410
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1800b9eed
cmp eax, 2
jne 0x1800b9eed
lea rdx, [rbx + 0x190]
cmp word [rdx], 0
je 0x1800b9eed
mov rcx, rsi
call fcn.1800b9fe0
nop
mov rax, rsi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1801027e0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret