Function at 0x4025c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0
jne 0x4025e1
push 1
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [0x413b6c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [0x413b68]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x413b64], eax
mov eax, dword [0x413b64]
mov dword [0x413b70], eax
mov eax, dword [0x413b58]
shl eax, 2
movzx eax, ax
mov ecx, dword [0x413b64]
xor edx, edx
mov dx, word [ecx]
add eax, edx
add dword [0x413b70], eax
mov eax, dword [0x413b64]
xor ecx, ecx
mov cx, word [eax + 4]
mov eax, dword [ebp - 8]
and eax, 0xffff
cmp ecx, eax
jle 0x402697
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov eax, dword [0x413b64]
xor ecx, ecx
mov cx, word [eax + 4]
sub ecx, dword [ebp - 8]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x4026c6
mov eax, dword [ebp - 8]
mov ecx, dword [0x413b64]
xor edx, edx
mov dx, word [ecx + 4]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [0x413b64]
xor ecx, ecx
mov cx, word [eax + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], 0
mov eax, dword [0x413b64]
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp ecx, eax
jle 0x40271f
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x413b64]
xor ecx, ecx
mov cx, word [eax + 8]
sub ecx, dword [ebp - 4]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jg 0x40270e
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
jmp 0x40275c
mov eax, dword [ebp - 4]
mov ecx, dword [0x413b64]
xor edx, edx
mov dx, word [ecx + 8]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
mov eax, dword [0x413b64]
xor ecx, ecx
mov cx, word [eax + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], 0
mov eax, dword [0x413b64]
xor ecx, ecx
mov cx, word [eax + 8]
mov dword [ebp - 0x28], ecx
push 0xcc0020
push 0
mov eax, dword [0x413b64]
push eax
mov eax, dword [0x413b70]
push eax
mov eax, dword [0x413b64]
mov eax, dword [eax + 8]
push eax
mov eax, dword [0x413b64]
mov eax, dword [eax + 4]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov dword [ebp - 0x18], eax
mov eax, dword [0x413b68]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp + 0xc], 0
jne 0x4027d2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebx
leave
ret