Function at 0x4012a0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
cmp edx, 0xa2
jg 0x4013da
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
cmp edx, 0xe
jg 0x40149f
cmp edx, 2
je 0x4014f2
cmp edx, 5
jne 0x4015a7
movzx edi, ax
mov dword [0x405080], edi
shr eax, 0x10
mov dword [0x405084], eax
cmp dword [0x40506c], 0
je 0x401382
cmp dword [0x405074], 0
je 0x401382
cmp edi, eax
mov ecx, eax
cmovl ecx, edi
lea edx, [ecx + edi]
sub edi, ecx
mov esi, edi
shr esi, 0x1f
add esi, edi
mov dword [ebp - 0x10], ebx
mov ebx, eax
sub ebx, ecx
mov edi, ebx
shr edi, 0x1f
add edi, ebx
add ecx, eax
sar esi, 1
sar edi, 1
shr edx, 1
shr ecx, 1
push ecx
push edx
push edi
push esi
call dword [sym.imp.gdi32.dll_CreateEllipticRgn]
mov esi, eax
lea edi, [ebp - 0x218]
push edi
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.user32.dll_GetWindowRect]
push 2
push edi
push ebx
push 0
call dword [sym.imp.user32.dll_MapWindowPoints]
xor eax, eax
xor ecx, ecx
sub ecx, dword [ebp - 0x218]
sub eax, dword [ebp - 0x214]
push eax
push ecx
push esi
call dword [sym.imp.gdi32.dll_OffsetRgn]
push 1
push esi
push dword [0x405064]
call dword [sym.imp.user32.dll_SetWindowRgn]
push dword [0x405064]
call dword [sym.imp.user32.dll_GetDC]
mov esi, eax
push section..data
push dword [0x405078]
push dword [0x405084]
push dword [0x405080]
push eax
call dbg.SizeFont
add esp, 0x14
test eax, eax
je 0x4013c8
mov edi, eax
push dword [0x40505c]
call dword [sym.imp.gdi32.dll_DeleteObject]
mov dword [0x40505c], edi
push esi
push dword [0x405064]
call dword [sym.imp.user32.dll_ReleaseDC]
jmp case.0x40140d.263
cmp edx, 0x112
jg 0x4014d0
cmp edx, 0xa3
je case.0x40140d.260
cmp edx, 0x111
jne 0x4015a7
add ecx, 0xfffffeff
cmp ecx, 0x12
ja case.0x40140d.263
jmp dword [ecx*4 + 0x403050]
mov dword [0x40506c], 1
call dbg.CLOCK_UpdateMenuCheckmarks
push 1
push dword [0x405064]
call dword [sym.imp.user32.dll_KillTimer]
cmp dword [0x40506c], 0
mov eax, 0x1f4
mov ecx, 0x32
cmove ecx, eax
cmp dword [0x405078], 0
mov eax, 0x3e8
cmovne eax, ecx
push 0
push eax
push 1
push dword [0x405064]
call dword [sym.imp.user32.dll_SetTimer]
test eax, eax
jne 0x4019db
lea esi, [ebp - 0x218]
push 0xff
push esi
push 0x10c
push dword [0x405060]
call dword [sym.imp.user32.dll_LoadStringW]
push 0x30
push esi
push str.No_available_timers
push 0
call dword [sym.imp.user32.dll_MessageBoxW]
jmp 0x4019db
cmp edx, 0xf
je 0x4014ff
cmp edx, 0x84
jne 0x4015a7
push eax
push ecx
push 0x84
push ebx
call dword [sym.imp.user32.dll_DefWindowProcW]
mov ecx, eax
cmp eax, 1
mov eax, 2
cmovne eax, ecx
jmp 0x4019ed
cmp edx, 0x113
je 0x4019db
cmp edx, 0x203
jne 0x4015a7
call dbg.CLOCK_ToggleTitle
jmp case.0x40140d.263
push 0
call dword [sym.imp.user32.dll_PostQuitMessage]
jmp case.0x40140d.263
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.user32.dll_BeginPaint]
mov edi, eax
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 0x204]
sub eax, dword [ebp - 0x210]
sub ecx, dword [ebp - 0x20c]
push ecx
push eax
mov dword [ebp - 0x10], edi
push edi
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x18], eax
push eax
push esi
call dword [sym.imp.gdi32.dll_SelectObject]
mov dword [ebp - 0x14], eax
xor eax, eax
xor ecx, ecx
sub ecx, dword [ebp - 0x210]
sub eax, dword [ebp - 0x20c]
push 0
push eax
push ecx
push esi
call dword [sym.imp.gdi32.dll_SetViewportOrgEx]
push 0xf
call dword [sym.imp.user32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.user32.dll_FillRect]
cmp dword [0x40506c], 0
mov eax, dword [0x405080]
mov ecx, dword [0x405084]
mov edx, dword [0x405078]
je 0x4015b7
push dword [0x405074]
push edx
push ecx
push eax
push esi
call dbg.AnalogClock
jmp 0x4015c6
add esp, 0x40c
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.user32.dll_DefWindowProcW]
push dword [0x40505c]
push edx
push ecx
push eax
push esi
call dbg.DigitalClock
add esp, 0x14
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x20c]
mov edx, dword [ebp - 0x208]
sub edx, eax
mov edi, dword [ebp - 0x204]
sub edi, ecx
push 0xcc0020
push ecx
push eax
push esi
push edi
push edx
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.gdi32.dll_BitBlt]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.gdi32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.gdi32.dll_DeleteObject]
push esi
call dword [sym.imp.gdi32.dll_DeleteDC]
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.user32.dll_EndPaint]
jmp case.0x40140d.263
xor eax, eax
cmp dword [0x40507c], 0
sete al
mov dword [0x40507c], eax
call dbg.CLOCK_UpdateMenuCheckmarks
xor esi, esi
cmp dword [0x40507c], 0
je 0x401688
sub esp, 0x18
lea eax, [ebp - 0x218]
mov dword [esp + 0x10], eax
movaps xmm0, xmmword [0x403030]
movups xmmword [esp], xmm0
mov dword [esp + 0x14], 0xff
call dword [sym.imp.kernel32.dll_GetDateFormatW]
test eax, eax
je 0x401688
mov esi, eax
add esi, 2
movsd xmm0, qword [0x403040]
movsd qword [ebp + eax*2 - 0x21a], xmm0
lea eax, [esi*2 - 0x218]
add eax, ebp
mov ecx, 0xff
sub ecx, esi
push ecx
push eax
push 0x10c
push 0
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x218]
push eax
push dword [0x405064]
call dword [sym.imp.user32.dll_SetWindowTextW]
jmp case.0x40140d.263
mov dword [0x40506c], 0
call dbg.CLOCK_UpdateMenuCheckmarks
push 1
push dword [0x405064]
call dword [sym.imp.user32.dll_KillTimer]
cmp dword [0x40506c], 0
mov eax, 0x1f4
mov ecx, 0x32
cmove ecx, eax
cmp dword [0x405078], 0
mov eax, 0x3e8
cmovne eax, ecx
push 0
push eax
push 1
push dword [0x405064]
call dword [sym.imp.user32.dll_SetTimer]
test eax, eax
jne 0x401988
lea esi, [ebp - 0x218]
push 0xff
push esi
push 0x10c
push dword [0x405060]
call dword [sym.imp.user32.dll_LoadStringW]
push 0x30
push esi
push str.No_available_timers
push 0
call dword [sym.imp.user32.dll_MessageBoxW]
jmp 0x401988
lea esi, [ebp - 0x218]
push 0xff
push esi
push 0x10c
push dword [0x405060]
call dword [sym.imp.user32.dll_LoadStringW]
xor eax, eax
nop dword [eax]
movzx ecx, word [ebp + eax - 0x218]
mov word [ebp + eax - 0x418], cx
add eax, 2
test cx, cx
jne 0x401770
lea eax, [ebp - 0x418]
push 0
push eax
push esi
push dword [0x405064]
call dword [sym.imp.shell32.dll_ShellAboutW]
jmp case.0x40140d.263
xor eax, eax
cmp dword [0x405070], 0
sete al
mov dword [0x405070], eax
mov ecx, dword [0x405064]
or eax, 0xfffffffe
sub esp, 0x1c
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0x18], 3
call dword [sym.imp.user32.dll_SetWindowPos]
call dbg.CLOCK_UpdateMenuCheckmarks
jmp case.0x40140d.263
xorps xmm0, xmm0
movups xmmword [ebp - 0x3f0], xmm0
movups xmmword [ebp - 0x400], xmm0
movups xmmword [ebp - 0x410], xmm0
mov dword [ebp - 0x3e0], 0
movups xmm0, xmmword [section..data]
movups xmmword [ebp - 0x218], xmm0
movups xmm0, xmmword [0x405010]
movups xmmword [ebp - 0x208], xmm0
movups xmm0, xmmword [0x405020]
movups xmmword [ebp - 0x1f8], xmm0
movups xmm0, xmmword [0x405030]
movups xmmword [ebp - 0x1e8], xmm0
movups xmm0, xmmword [0x405040]
movups xmmword [ebp - 0x1d8], xmm0
movups xmm0, xmmword [0x40504c]
movups xmmword [ebp - 0x1cc], xmm0
mov dword [ebp - 0x418], 0x3c
mov eax, dword [0x405064]
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x404], 0x1000041
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.comdlg32.dll_ChooseFontW]
test eax, eax
je case.0x40140d.263
movups xmm0, xmmword [ebp - 0x1cc]
movups xmmword [0x40504c], xmm0
movups xmm0, xmmword [ebp - 0x1d8]
movups xmmword [0x405040], xmm0
movups xmm0, xmmword [ebp - 0x1e8]
movups xmmword [0x405030], xmm0
movups xmm0, xmmword [ebp - 0x1f8]
movups xmmword [0x405020], xmm0
movups xmm0, xmmword [ebp - 0x218]
movups xmm1, xmmword [ebp - 0x208]
movups xmmword [0x405010], xmm1
movups xmmword [section..data], xmm0
jmp 0x401382
xor eax, eax
cmp dword [0x405078], 0
sete al
mov dword [0x405078], eax
call dbg.CLOCK_UpdateMenuCheckmarks
push 1
push dword [0x405064]
call dword [sym.imp.user32.dll_KillTimer]
cmp dword [0x40506c], 0
mov eax, 0x1f4
mov ecx, 0x32
cmove ecx, eax
cmp dword [0x405078], 0
mov eax, 0x3e8
cmovne eax, ecx
push 0
push eax
push 1
push dword [0x405064]
call dword [sym.imp.user32.dll_SetTimer]
test eax, eax
jne 0x40197f
lea esi, [ebp - 0x218]
push 0xff
push esi
push 0x10c
push dword [0x405060]
call dword [sym.imp.user32.dll_LoadStringW]
push 0x30
push esi
push str.No_available_timers
push 0
call dword [sym.imp.user32.dll_MessageBoxW]
cmp dword [0x40506c], 0
jne 0x4019db
push dword [0x405064]
call dword [sym.imp.user32.dll_GetDC]
mov esi, eax
push section..data
push dword [0x405078]
push dword [0x405084]
push dword [0x405080]
push eax
call dbg.SizeFont
add esp, 0x14
test eax, eax
je 0x4019ce
mov edi, eax
push dword [0x40505c]
call dword [sym.imp.gdi32.dll_DeleteObject]
mov dword [0x40505c], edi
push esi
push dword [0x405064]
call dword [sym.imp.user32.dll_ReleaseDC]
push 0
push 0
push dword [0x405064]
call dword [sym.imp.user32.dll_InvalidateRect]
xor eax, eax
add esp, 0x40c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10