Function at 0x102de30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
xor cl, cl
push edi
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
cmp eax, ebx
je 0x102de53
cmp dword [eax + 4], ebx
jne 0x102de53
inc cl
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x102de63
cmp dword [eax + 4], ebx
jne 0x102de63
mov byte [ebp - 1], 1
mov esi, dword [ebp + 0x10]
cmp cl, bl
je 0x102dfdf
imul esi, esi, 0x5c
mov eax, dword [esi + 0x10bcbac]
movzx eax, ax
push 0x100451c
push eax
push dword [0x10c5690]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x102de9c
mov eax, 0x80004005
jmp 0x102e043
push edi
push dword [0x10c5690]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [0x10c5690]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x102df5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x102dee8
mov dword [ebp - 8], 0x8007000e
jmp 0x102df4d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
jne 0x102defa
mov dword [ebp - 8], 0x8007000e
cmp dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jl 0x102df3f
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x102df32
push dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
call fcn.0102ddd0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x102df3f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [ebp - 8], ebx
jl 0x102e040
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x20
jne 0x102df71
push eax
call fcn.0102cf4f
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jl 0x102e040
mov eax, dword [esi + 0x10bcbbc]
mov ecx, dword [eax + 0xc]
mov edx, dword [esi + 0x10bcbb4]
mov dword [esi + 0x10bcbd8], ecx
mov dword [ebp + 8], ebx
xor ecx, ecx
xor edi, edi
inc edi
shl edi, cl
test edx, edi
je 0x102dfa0
inc dword [ebp + 8]
inc ecx
cmp ecx, 0x20
jl 0x102df94
xor ebx, ebx
cmp dword [ebp + 8], ebx
jbe 0x102dfbd
mov eax, dword [eax + 0x10]
xor edx, edx
div dword [ebp + 8]
mov dword [esi + 0x10bcbdc], eax
jmp 0x102dfc4
mov dword [ebp - 8], 0x80004005
cmp dword [ebp - 8], ebx
jl 0x102e040
lea eax, [esi + 0x10bcbe4]
push eax
mov dword [esi + 0x10bcbe0], ebx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov esi, dword [ebp + 0x10]
imul esi, esi, 0x5c
lea edi, [esi + 0x10bcbb0]
cmp dword [edi], ebx
je 0x102e040
cmp byte [ebp - 1], bl
je 0x102e040
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 8
mov dword [ebp - 0x28], ebx
call esi
push 0x11
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0xffff
call esi
push 2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [edi]
push dword [0x10c5690]
call dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
cmp eax, ebx
jne 0x102e02f
mov dword [ebp - 8], 0x8007000e
cmp dword [ebp - 8], ebx
jl 0x102e040
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ecx + 4], eax
call fcn.0102ce2a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc