Function at 0x51e450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push esi
mov eax, dword [0x75b014]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x51e46c
xor eax, eax
jmp 0x51e714
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
call fcn.005e95c0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [ebp - 8], eax
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov dword [ebp - 0x78], 0x190
mov dword [ebp - 0x10], 0x12c
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x14], eax
mov eax, 1
test eax, eax
je 0x51e5f2
push str.bmpi
mov ecx, dword [ebp - 0x78]
imul ecx, dword [ebp - 0x10]
add ecx, 0x42c
push ecx
call fcn.005ddd80
add esp, 8
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [edx], 0x28
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x78]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x20]
mov word [ecx + 0xc], 1
mov edx, dword [ebp - 0x20]
mov word [edx + 0xe], 8
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x78]
imul ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x18], 0x3e8
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x1c], 0x3e8
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x28
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], 0
jmp 0x51e595
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0x100
jge 0x51e5f0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dl, byte [esi + edx*4 + 6]
mov byte [ecx + eax*4 + 0x28], dl
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dl, byte [esi + edx*4 + 5]
mov byte [ecx + eax*4 + 0x29], dl
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dl, byte [esi + edx*4 + 4]
mov byte [ecx + eax*4 + 0x2a], dl
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov dl, byte [esi + edx*4 + 7]
mov byte [ecx + eax*4 + 0x2b], dl
jmp 0x51e58c
jmp 0x51e63a
push str.bmpi
mov eax, dword [ebp - 0x78]
imul eax, dword [ebp - 0x10]
add eax, 0x42c
push eax
call fcn.005ddd80
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], 0x428
push 1
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [0x7619d8]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
mov dword [ebp - 0x74], eax
push 2
push 0x1a90
mov eax, dword [0x761714]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov ecx, dword [0x761714]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
add edx, 0x428
mov dword [ebp - 0x70], edx
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
push 4
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0xc], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x78]
push edx
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_EndPaint]
cmp dword [ebp - 0x28], 0
je 0x51e6fd
mov eax, dword [ebp - 0x28]
push eax
call fcn.005ddfc0
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], 0
je 0x51e712
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005ddfc0
add esp, 4
mov dword [ebp - 0x20], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret