Function at 0x10009c97
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x90
mov eax, 0x10030e80
call fcn.10013510
mov dword [ebp - 0x88], ecx
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
movzx eax, word [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 4], ebx
push ecx
mov dword [ecx], eax
mov ecx, esp
mov eax, dword [ebp + 8]
mov dword [ecx], eax
lea ecx, [ebp - 0x7c]
call fcn.1000b28f
test al, al
je 0x10009f4a
push dword [ebp - 0x78]
push dword [0x1004789c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea esi, [eax + 1]
cmp esi, 0xf4240
jg 0x10009f4a
xor ecx, ecx
mov eax, esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
mov dword [ebp - 0x74], edi
pop ecx
test edi, edi
je 0x10009f4a
lea ecx, [esi + esi]
push ecx
push ebx
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esi - 1]
push ecx
push eax
push edi
call sub.msvcrt.dll_memcpy
mov ecx, 0xfeff
add esp, 0xc
mov eax, edi
cmp word [edi], cx
jne 0x10009d4e
lea eax, [edi + 2]
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
push 0x10032ff8
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
push ecx
push eax
call fcn.1000967a
xor eax, eax
mov dword [ebp - 0x30], ebx
add esp, 0xc
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x94]
sub eax, ecx
push 0x18
cdq
pop esi
idiv esi
mov byte [ebp - 4], 2
mov edx, eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], edx
test edx, edx
je 0x10009f1b
mov edi, dword [ebp - 0x88]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x10009dc4
mov eax, dword [ecx]
push eax
lea ecx, [ebp - 0x58]
call fcn.10007fa8
push ebx
push 0x10032ffc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.1000d1e4
push ebx
push 0x10033000
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.1000d1e4
push ebx
push 0x10033004
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x98], eax
call fcn.1000d1e4
mov dword [ebp - 0x9c], eax
test esi, esi
jne 0x10009e67
mov ecx, dword [ebp - 0x98]
cmp ecx, 0xffffffff
je 0x10009e67
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea eax, [ecx - 1]
push eax
push 1
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], 7
push eax
lea ecx, [ebp - 0x28]
call fcn.1000cf84
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.10008459
lea ecx, [ebp - 0x28]
call fcn.1000cdd6
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x10009e5a
mov eax, dword [ebp - 0x40]
push eax
mov ecx, edi
call fcn.10008853
jmp 0x10009ef6
cmp eax, 0xffffffff
je 0x10009ef6
push 7
pop esi
push eax
xor ecx, ecx
mov dword [ebp - 0x18], ebx
push ebx
lea eax, [ebp - 0x58]
mov word [ebp - 0x28], cx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], esi
call fcn.1000cf84
push dword [ebp - 0x48]
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x70], ax
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x9c]
inc eax
mov dword [ebp - 0x60], ebx
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x5c], esi
push eax
call fcn.1000cf84
cmp dword [ebp - 0x5c], 8
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 5
jb 0x10009ec4
mov edx, dword [ebp - 0x70]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x10009ed0
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x10009edc
mov eax, dword [ebp - 0x40]
push edx
push ecx
push eax
mov ecx, edi
call fcn.1000888e
lea ecx, [ebp - 0x70]
call fcn.1000cdd6
lea ecx, [ebp - 0x28]
call fcn.1000cdd6
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.1000cdd6
mov ecx, dword [ebp - 0x80]
add ecx, 0x18
sub dword [ebp - 0x84], 1
mov dword [ebp - 0x80], ecx
jne 0x10009dba
mov edi, dword [ebp - 0x74]
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x88]
pop ecx
lea ecx, [ebp - 0x40]
mov edi, dword [eax + 4]
mov esi, dword [eax]
call fcn.1000cdd6
lea ecx, [ebp - 0x94]
call fcn.1000cd82
sub edi, esi
sar edi, 2
test edi, edi
setne bl
cmp dword [ebp - 0x7c], 0
je 0x10009f59
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, bl
call fcn.10013490
ret 8