Function at 0x10097a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10196626
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101fe070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebp + 8], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], ecx
jne 0x10097ad6
xor al, al
jmp 0x10097d15
lea esi, [ebx + 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10097afa
mov eax, dword [esi]
test eax, eax
je 0x10097afa
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp eax, 1
jne 0x10097b34
cmp dword [ebx + 0x18], 0
je 0x10097bdf
push ecx
push edx
push dword [ebp + 8]
mov ecx, ebx
call fcn.10098350
mov bl, al
test bl, bl
jne 0x10097cf8
jmp 0x10097bdf
cmp eax, 2
jne 0x10097bdf
cmp dword [ebx + 0x28], 0
je 0x10097bdf
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10097b62
mov eax, dword [esi]
test eax, eax
je 0x10097b62
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10097b73
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push ecx
movzx eax, ax
push eax
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10097bc7
push eax
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10097bc7
push dword [ebp - 0x1c]
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10097bc7
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10097cb8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
test esi, esi
je 0x10097bdf
mov eax, dword [esi]
test eax, eax
je 0x10097bd8
push eax
call edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10097bfa
mov eax, dword [esi]
test eax, eax
je 0x10097bfa
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
mov eax, dword [0x102057a0]
test al, 1
jne 0x10097c33
or eax, 1
mov dword [0x102057a0], eax
mov byte [ebp - 4], 3
mov dword [0x102057a4], 0
call fcn.1007b430
push 0x101a9730
call fcn.1015c4be
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [0x102057a4]
mov ebx, 0x10000000
mov eax, dword [eax + 0x44]
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x10097c50
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10097c82
mov byte [ebp - 4], 0
test esi, esi
je 0x10097c7e
mov eax, dword [esi]
test eax, eax
je 0x10097c77
push eax
call edi
mov dword [ebp - 0x14], 0
xor bl, bl
jmp 0x10097cf8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10097c66
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10097c66
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10097cb8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x10097c66
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
call fcn.10090390
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [eax + 8]
call fcn.1015ddb0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [ebp - 4], 0
test esi, esi
je 0x10097cf6
mov eax, dword [esi]
test eax, eax
je 0x10097cef
push eax
call edi
mov dword [ebp - 0x14], 0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10097d13
mov eax, dword [esi]
test eax, eax
je 0x10097d0c
push eax
call edi
mov dword [ebp - 0x18], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015c023
mov esp, ebp
pop ebp
ret 0xc