Function at 0x4ce550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4ce574
xor eax, eax
jmp 0x4ce85e
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4ce58e
xor eax, eax
jmp 0x4ce85e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x10
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xe]
cmp eax, 8
jg 0x4ce5b4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
add edx, 0x40
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
call fcn.0050994b
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4ce5d0
xor eax, eax
jmp 0x4ce85e
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00505560
add esp, 0xc
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0xe]
cmp edx, 8
jg 0x4ce711
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], 0
jmp 0x4ce618
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0x10
jge 0x4ce63d
push 1
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
push edx
call fcn.004ce870
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov dword [edx + ecx*4], eax
jmp 0x4ce60f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ce700
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
movzx ecx, word [edx + 0xe]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x38], edx
push 0xcc0020
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0x28]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x4ce845
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x40], edx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ce839
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
add eax, 0x28
mov dword [ebp - 0x50], eax
push 0xcc0020
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov dword [ebp - 0x54], 0
jmp 0x4ce7b7
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp + 0x10]
jge 0x4ce821
mov dword [ebp - 0x58], 0
jmp 0x4ce7d1
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp + 0x14]
jge 0x4ce81f
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov dword [ebp - 0x5c], eax
push 0
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004ce870
add esp, 8
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x60]
je 0x4ce81d
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_SetPixel]
jmp 0x4ce7c8
jmp 0x4ce7ae
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x44]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0050850d
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret