Function at 0x3009731e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x3e7
push eax
push dword [0x3017d62c]
xor edi, edi
cmp dword [0x3017dbf4], edi
jne 0x3009739a
call fcn.30019d87
cmp eax, edi
je 0x30097391
push eax
push dword [0x3017d62c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x1c], ebx
je 0x3009738a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x3009738a
cmp byte [esi], 0x57
jne 0x300975e0
movzx eax, word [esi + 6]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x300973a2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_FindResourceW]
jmp 0x30097346
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0x28
mov ebx, eax
push ebx
push edi
call fcn.30001448
mov dword [ebx], 0x28
movzx eax, word [esi + 2]
push 1
mov dword [ebx + 4], eax
movzx eax, word [esi + 4]
pop edi
mov dword [ebx + 8], eax
mov word [ebx + 0xc], di
movzx ax, byte [esi + 1]
mov word [ebx + 0xe], ax
mov cl, byte [esi + 1]
shl edi, cl
cmp edi, 0x10
jne 0x300974d7
push 0x40
lea eax, [ebx + 0x28]
push eax
push 0x30172b70
call fcn.30001000
movzx eax, word [esi + 2]
push 8
add eax, 7
pop ecx
cdq
idiv ecx
shl eax, 2
mov dword [ebp - 8], eax
lea ecx, [ebx + edi*4 + 0x28]
mov dword [ebp - 4], ecx
movzx ecx, word [esi + 4]
mov edx, ecx
dec ecx
test edx, edx
lea edi, [esi + 8]
mov dword [ebp - 0x10], ecx
je 0x30097463
movzx edx, byte [edi]
inc edi
test dl, 0x80
mov dword [ebp - 0x18], edx
mov dword [ebp + 8], edi
je 0x30097507
and edx, 0x7f
inc edx
imul edx, eax
mov edi, dword [ebp - 4]
mov esi, edi
mov ecx, eax
sub esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
dec dword [ebp - 0x10]
test ecx, ecx
jne 0x300974ff
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x30097480
cmp word [ebx + 0xe], 4
jne 0x30097480
mov eax, dword [ebx]
push 0x40
add eax, ebx
push eax
push dword [ebp + 0xc]
call fcn.30001000
push ebx
call fcn.30162438
mov ecx, dword [ebx]
push edi
lea esi, [ecx + eax*4]
add esi, ebx
call dword [sym.imp.USER32.dll_GetDC]
push edi
push ebx
push esi
push 4
push ebx
mov dword [ebp + 8], eax
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push dword [ebp + 8]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 0xc], edi
je 0x300974d0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
jmp 0x30097393
push 8
lea eax, [ebx + 0x28]
push eax
push 0x30172bb0
call fcn.30001000
movzx eax, word [esi + 2]
push 0x20
add eax, 0x1f
pop ecx
cdq
idiv ecx
shl eax, 2
mov dword [ebp - 8], eax
jmp 0x30097409
mov edi, dword [ebp + 8]
jmp 0x30097421
test edx, edx
jne 0x30097528
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add dword [ebp + 8], eax
rep movsb byte es:[edi], byte [esi]
jmp 0x30097452
mov eax, dword [ebp - 4]
cmp edx, 3
je 0x300975aa
mov esi, dword [ebp - 8]
lea ecx, [edx - 1]
sar esi, cl
mov ecx, eax
lea edi, [esi + ecx]
cmp ecx, edi
jae 0x3009756a
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov cl, byte [ecx]
movzx esi, cl
mov ecx, esi
shr ecx, 4
and esi, 0xf
mov cl, byte [ecx + 0x30172bb8]
mov byte [eax], cl
mov cl, byte [esi + 0x30172bb8]
inc eax
mov byte [eax], cl
inc eax
cmp eax, edi
jb 0x30097541
cmp edx, 1
je 0x300975d8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
add edx, ecx
cmp eax, edx
jae 0x300975d8
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov cl, byte [ecx]
movzx ecx, cl
mov esi, ecx
shr esi, 4
and ecx, 0xf
mov si, word [esi*2 + 0x30172bc8]
mov word [eax], si
mov cx, word [ecx*2 + 0x30172bc8]
inc eax
inc eax
mov word [eax], cx
inc eax
inc eax
jmp 0x30097577
mov eax, dword [ebp - 8]
cdq
mov edi, dword [ebp - 4]
sub eax, edx
mov ecx, eax
sar ecx, 1
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
lea eax, [edi + ecx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add dword [ebp + 8], ecx
mov edx, dword [ebp - 0x18]
jmp 0x3009756a
mov eax, dword [ebp - 8]
jmp 0x30097452
mov dword [ebp - 0xc], edi
lea ebx, [esi + 0xe]
jmp 0x30097465