Function at 0x3014d455
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
call fcn.3014cde0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
xor ebx, ebx
cmp edx, ebx
je 0x3014d6e1
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jl 0x3014d6e1
cmp edi, dword [0x3027f650]
jge 0x3014d6e1
cmp byte [ebp + 0x10], bl
mov eax, dword [0x3027f648]
mov byte [ebp + 0xb], bl
jne 0x3014d4ba
mov ecx, edi
imul ecx, ecx, 0x14
mov esi, dword [ecx + eax + 4]
cmp esi, ebx
je 0x3014d4ba
mov ecx, dword [ebp + 0x18]
mov cl, byte [esi + ecx*2]
cmp cl, bl
je 0x3014d4ba
movzx ecx, cl
lea ecx, [edx + ecx*4 - 4]
mov byte [ebp + 0xb], 1
jmp 0x3014d4bd
lea ecx, [edx + edi*4]
cmp dword [ecx], ebx
mov dword [ebp - 4], ecx
jne 0x3014d82b
mov ecx, dword [0x3027f678]
cmp ecx, 1
jne 0x3014d4d6
mov byte [ebp + 0x10], cl
mov edx, edi
imul edx, edx, 0x14
add eax, edx
cmp byte [ebp + 0x10], bl
mov edi, dword [eax]
mov dword [ebp - 0xc], edx
mov esi, edi
je 0x3014d4f1
lea esi, [edi + 0x174]
jmp 0x3014d4ff
cmp ecx, ebx
je 0x3014d4ff
mov esi, ecx
imul esi, esi, 0x174
add esi, edi
cmp byte [ebp + 0xb], bl
je 0x3014d522
cmp ecx, ebx
mov edx, dword [ebp + 0x18]
mov eax, dword [eax + 4]
movzx eax, byte [eax + edx*2]
mov edx, dword [0x3027f658]
mov edi, dword [edx + eax*8 - 8]
lea esi, [ecx + edi - 1]
jne 0x3014d522
mov esi, edi
cmp byte [ebp + 0x10], bl
je 0x3014d5cb
push 0x2000
push ebx
push ebx
movzx eax, si
push ebx
push eax
call fcn.301f25c2
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x3014d6e1
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call esi
mov dword [ebp + 0x18], eax
call fcn.3014d306
push eax
push 0x20
push ebx
push edi
call dword [sym.imp.GDI32.dll_SetDIBColorTable]
push dword [ebp + 0x18]
push edi
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp byte [ebp + 0x14], bl
je 0x3014d812
mov eax, dword [0x3027f648]
mov ecx, dword [ebp - 0xc]
test byte [ecx + eax + 0x12], 0x20
je 0x3014d812
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 0x14], ebx
call fcn.30145441
cmp dword [ebp + 0x14], ebx
je 0x3014d812
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
jmp 0x3014d812
push 0x2c
lea eax, [ebp - 0x48]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
movzx eax, si
push 0x3e6
push eax
mov dword [ebp - 0x48], 0x28
mov word [ebp - 0x3c], 1
mov dword [ebp - 0x38], ebx
call fcn.301f25c2
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x3014d62e
cmp esi, edi
je 0x3014d6e1
movzx eax, di
push 0x3e6
push eax
call fcn.301f25c2
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x3014d6e1
push dword [ebp - 8]
call fcn.301f25c2
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x3014d6e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x3014d6e1
movzx ecx, word [esi + 4]
cmp cx, 0x20
je 0x3014d666
cmp cx, 0x18
jne 0x3014d6e1
movzx eax, word [esi]
movzx ecx, cx
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
and eax, 0xfffffffc
push eax
call fcn.3014d11c
push eax
movzx eax, word [esi + 2]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.3014d43c
push dword [eax]
call fcn.3014d106
movzx ecx, word [esi]
mov edi, eax
movzx eax, word [esi + 4]
push ebx
mov dword [ebp - 0x44], ecx
movzx ecx, word [esi + 2]
push ebx
mov word [ebp - 0x3a], ax
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x3014d6e1
cmp dword [ebp + 0xc], ebx
je 0x3014d6e1
cmp dword [ebp - 0x34], edi
jae 0x3014d6ea
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
push edi
push dword [ebp - 8]
call fcn.301f25c2
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub eax, 6
push eax
push dword [ebp + 0xc]
add esi, 6
push esi
call fcn.301162ad
cmp byte [ebp + 0x14], bl
je 0x3014d812
cmp byte [ebp + 0xb], bl
je 0x3014d7e1
cmp dword [0x3027f650], ebx
mov dword [ebp + 8], ebx
jle 0x3014d812
mov eax, dword [0x3027f648]
xor esi, esi
cmp dword [esi + eax + 4], ebx
je 0x3014d7ca
test byte [esi + eax + 0x12], 0x20
je 0x3014d7ca
cmp byte [esi + eax + 0xc], bl
mov dword [ebp + 0x14], ebx
jbe 0x3014d7ca
mov edi, dword [ebp + 0x14]
mov edx, dword [esi + eax + 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + edi*2]
mov ecx, dword [ecx + eax + 4]
mov edi, dword [ebp + 0x18]
cmp dl, byte [ecx + edi*2]
jne 0x3014d7bd
mov ecx, dword [esi + eax + 4]
mov edx, dword [ebp + 0x14]
mov edi, dword [0x3027f658]
lea ecx, [ecx + edx*2]
movzx edx, byte [ecx]
movzx ecx, byte [ecx + 1]
mov edx, dword [edi + edx*8 - 4]
movzx edi, word [esi + eax + 8]
movzx eax, byte [esi + eax + 0xd]
lea ecx, [edx + ecx*4]
movzx edx, word [ecx]
movzx ecx, word [ecx + 2]
add eax, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
add edi, edx
push eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
call fcn.3014cca4
mov eax, dword [0x3027f648]
movzx ecx, byte [esi + eax + 0xc]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], ecx
jl 0x3014d750
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
add esi, 0x14
cmp ecx, dword [0x3027f650]
jl 0x3014d732
jmp 0x3014d812
mov eax, dword [0x3027f648]
mov ecx, dword [ebp - 0xc]
test byte [ecx + eax + 0x12], 0x20
je 0x3014d812
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.3014cca4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x3014d82b
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
jmp 0x3014d6e3