Function at 0x4031a0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
mov eax, dword [0x41dfd4]
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 [0x41c1a4]
mov dword [esp + 0x20], ebp
cmp al, 1
jne 0x4031cf
push 0xff00
jmp 0x4031d4
push 0xff
call esi
push 0
mov dword [esp + 0x18], eax
call esi
mov edx, dword [0x41dfd4]
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 [0x4250c0]
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 0x4033bc
mov cl, byte [eax + 0x4250b8]
mov ebp, dword [esp + 0x14]
cmp cl, 1
jne 0x40328e
cmp byte [eax + 0x41c280], 1
jne 0x403283
mov ebp, dword [esp + 0x1c]
mov byte [eax + 0x41c280], 0
jmp 0x40328e
mov ebp, dword [esp + 0x14]
mov byte [eax + 0x41c280], 1
mov ecx, dword [0x41dfd4]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
test edi, edi
jne 0x4032b1
add eax, 5
mov dword [esp + 0x30], eax
jmp 0x4032bc
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 [0x41c1b8]
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 [0x4250c0]
fild dword [esp + 0x2c]
fadd dword [ebx + edx]
call fcn.0040c150
test eax, eax
mov dword [esp + 0x34], eax
jle 0x40333d
cmp eax, dword [esp + 0x2c]
jle 0x40333d
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 0x403342
fild dword [0x4235a8]
mov ecx, dword [0x4250c0]
fcomp dword [ebx + ecx]
fnstsw ax
and eax, 0x4100
jne 0x40339e
mov edx, dword [esp + 0x10]
mov byte [edx + 0x4250b8], 1
jmp 0x4033a9
mov eax, dword [esp + 0x10]
mov byte [eax + 0x4250b8], 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 0x403252
mov edx, dword [0x41dfd4]
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 [0x41dfd4]
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