Function at 0x402fd0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
mov eax, dword [0x41d214]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
mov al, byte [0x41bfe0]
mov dword [esp + 0x20], ebp
cmp al, 1
jne 0x402fff
push 0xff00
jmp 0x403004
push 0xff
call esi
push 0
mov dword [esp + 0x18], eax
call esi
mov edx, dword [0x41d214]
lea ecx, [esp + 0x2c]
mov ebx, eax
push ecx
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x34]
mov esi, eax
mov eax, dword [esp + 0x38]
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [esp + 0x2c], eax
call edi
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
lea edx, [esp + 0x2c]
push eax
push edx
push esi
call dword [sym.imp.USER32.dll_FillRect]
push ebx
push esi
call edi
mov ecx, dword [0x423ee0]
mov dword [esp + 0x28], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov ebx, 0x219c
mov edx, dword [ebx + ecx - 0x50]
test edx, edx
je 0x4031ec
mov cl, byte [eax + 0x423ed8]
mov ebp, dword [esp + 0x14]
cmp cl, 1
jne 0x4030be
cmp byte [eax + 0x41c0c0], 1
jne 0x4030b3
mov ebp, dword [esp + 0x1c]
mov byte [eax + 0x41c0c0], 0
jmp 0x4030be
mov ebp, dword [esp + 0x14]
mov byte [eax + 0x41c0c0], 1
mov ecx, dword [0x41d214]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
test edi, edi
jne 0x4030e1
add eax, 5
mov dword [esp + 0x30], eax
jmp 0x4030ec
lea edx, [edi + edi*8]
lea ecx, [eax + edx*2 + 5]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x41bff8]
add edx, 0xfffffffc
push 0
push edx
push eax
push esi
push edi
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add eax, 0x10
lea edi, [edx + 0xa]
mov dword [esp + 0x2c], eax
lea ecx, [eax + 0x64]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ecx
inc edi
add ecx, 2
push edi
dec edx
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x2c], edx
mov edx, dword [0x423ee0]
fild dword [esp + 0x2c]
fadd dword [ebx + edx]
call fcn.0040a758
test eax, eax
mov dword [esp + 0x34], eax
jle 0x40316d
cmp eax, dword [esp + 0x2c]
jle 0x40316d
lea eax, [esp + 0x2c]
push ebp
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov edi, 0xa
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 0
push ecx
lea eax, [edi + edx + 1]
push eax
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add ecx, 0xb
lea eax, [edi + edx + 1]
push ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_LineTo]
add edi, 0xa
cmp edi, 0x64
jl 0x403172
fild dword [0x4223c8]
mov ecx, dword [0x423ee0]
fcomp dword [ebx + ecx]
fnstsw ax
and eax, 0x4100
jne 0x4031ce
mov edx, dword [esp + 0x10]
mov byte [edx + 0x423ed8], 1
jmp 0x4031d9
mov eax, dword [esp + 0x10]
mov byte [eax + 0x423ed8], 0
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
inc eax
mov dword [esp + 0x18], eax
mov edi, eax
mov eax, dword [esp + 0x10]
add ebx, 4
inc eax
cmp ebx, 0x21ac
mov dword [esp + 0x10], eax
jl 0x403082
mov edx, dword [0x41d214]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
mov edx, dword [esp + 0x28]
push edx
call edi
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
mov eax, dword [0x41d214]
push ebp
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret