Function at 0x40f420
Capabilities:
Capture screenshot
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [0x82f304]
sub esp, 0x4c
lea eax, [esp + 0xc]
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x82f350]
mov esi, dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x40f12b
lea edx, [esp + 0x38]
push edx
push 0x18
push eax
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jg 0x40f12b
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
cmp ecx, eax
jle 0x40f258
mov edx, dword [0x82f304]
push ebx
push ebp
push edi
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [0x82f3fc]
mov ebp, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], ebp
push eax
push 0x18
push ecx
call esi
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
call esi
mov edi, eax
mov eax, dword [0x82f3f8]
test eax, eax
jne 0x40f16d
push ebp
call esi
mov dword [0x82f3f8], eax
mov eax, dword [0x82f350]
test eax, eax
je 0x40f17d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [0x82f3fc]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push edi
call esi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [0x82f3f8]
push eax
push edx
mov dword [0x82f350], eax
call esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
jle 0x40f214
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
xor esi, esi
test ecx, ecx
jle 0x40f1fc
push 0xcc0020
mov ecx, dword [0x82f3f8]
push 0
push 0
push edi
push eax
mov eax, dword [esp + 0x44]
push eax
push esi
push ebx
push ecx
call ebp
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
add esi, eax
cmp esi, ecx
jl 0x40f1d3
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
add ebx, esi
cmp ebx, edx
jl 0x40f1cd
mov ebp, dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x14]
push edx
push edi
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [0x82f3f8]
push eax
push ecx
call esi
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [0x82f304]
push ebp
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x426e94]
mov ecx, dword [0x82f350]
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop ebp
mov dword [0x82f354], eax
pop ebx
pop esi
add esp, 0x4c
ret
mov ecx, dword [0x82f304]
sub esp, 0x40
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x82f350]
test eax, eax
je 0x40f2a8
lea edx, [esp + 0x28]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jg 0x40f2a8
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
cmp ecx, eax
jle 0x40f415
mov edx, dword [0x82f304]
push ebx
push ebp
push esi
push edi
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov eax, dword [0x82f3f8]
test eax, eax
mov dword [esp + 0x18], esi
jne 0x40f2d4
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [0x82f3f8], eax
mov eax, dword [0x82f350]
test eax, eax
je 0x40f2e4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x82f3fc]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [0x82f350], eax
push eax
mov eax, dword [0x82f3f8]
push eax
call edi
mov ecx, dword [0x82f400]
mov dword [esp + 0x24], eax
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax]
mov edi, eax
push 0
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 8]
lea eax, [eax + edx + 0x400]
mov edx, dword [0x82f404]
mov dword [esp + 0x18], eax
mov eax, dword [0x82f3f8]
push edx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [0x82f3f8]
mov dword [esp + 0x1c], eax
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [esp + 0x30]
xor ebp, ebp
test eax, eax
jle 0x40f3bd
mov eax, dword [esp + 0x34]
xor esi, esi
test eax, eax
jle 0x40f3ab
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x10]
push 0
push edi
push edx
mov edx, dword [0x82f3f8]
push eax
push 0
push 0
push 0
push ebx
push ecx
push esi
push ebp
push edx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov eax, dword [esp + 0x34]
add esi, ebx
cmp esi, eax
jl 0x40f37a
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add ebp, edx
cmp ebp, ecx
jl 0x40f374
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x82f3f8]
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push esi
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [0x82f3f8]
push eax
push ecx
call edi
mov edx, dword [0x82f304]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x426e94]
mov ecx, dword [0x82f350]
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
pop ebp
mov dword [0x82f354], eax
pop ebx
add esp, 0x40
ret
mov eax, dword [0x426e94]
test eax, eax
jne 0x40f434
mov dword [0x82f354], 0
ret
cmp dword [0x82f408], 0x100
jne 0x40f445
jmp 0x40f260
jmp 0x40f0e0