Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov esi, dword [ebp + 8]
call dword [sym.imp.comctl32.dll_InitCommonControls]
mov dword [0x40505c], 0
mov dword [0x40506c], 1
mov dword [0x405078], 1
cmp dword [ebp + 0xc], 0
jne 0x40108d
mov dword [ebp - 0x34], 0xb
mov dword [ebp - 0x30], dbg._CLOCK_WndProc@16
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], esi
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconW]
mov dword [ebp - 0x20], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], str.CLClass
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.user32.dll_RegisterClassW]
test ax, ax
je 0x401290
mov dword [0x405084], 0xc8
mov dword [0x405080], 0xc8
sub esp, 0x30
mov dword [esp + 0x28], esi
movaps xmm0, xmmword [section..rdata]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0xc8
mov dword [esp + 8], 0x4030d0
mov dword [esp + 4], str.CLClass
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [0x405064], eax
push 1
push eax
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
je 0x401263
mov esi, dword [ebp + 0x14]
push 0x100
push 0
call dword [sym.imp.user32.dll_LoadMenuW]
mov dword [0x405068], eax
push eax
push dword [0x405064]
call dword [sym.imp.user32.dll_SetMenu]
call dbg.CLOCK_UpdateMenuCheckmarks
xor edi, edi
cmp dword [0x40507c], 0
je 0x4011c0
sub esp, 0x18
lea eax, [ebp - 0x234]
mov dword [esp + 0x10], eax
movaps xmm0, xmmword [0x403010]
movups xmmword [esp], xmm0
mov dword [esp + 0x14], 0xff
call dword [sym.imp.kernel32.dll_GetDateFormatW]
test eax, eax
je 0x4011c0
mov edi, eax
add edi, 2
movsd xmm0, qword [0x403020]
movsd qword [ebp + eax*2 - 0x236], xmm0
lea eax, [edi*2 - 0x234]
add eax, ebp
mov ecx, 0xff
sub ecx, edi
push ecx
push eax
push 0x10c
push 0
call dword [sym.imp.user32.dll_LoadStringW]
lea edi, [ebp - 0x234]
push edi
push dword [0x405064]
call dword [sym.imp.user32.dll_SetWindowTextW]
push esi
push dword [0x405064]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405064]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push edi
call dword [sym.imp.user32.dll_GetMessageW]
test eax, eax
je 0x401247
mov ebx, dword [sym.imp.user32.dll_DispatchMessageW]
mov esi, dword [sym.imp.user32.dll_GetMessageW]
nop dword [eax + eax]
push edi
call dword [sym.imp.user32.dll_TranslateMessage]
push edi
call ebx
push 0
push 0
push 0
push edi
call esi
test eax, eax
jne 0x401230
push 1
push dword [0x405064]
call dword [sym.imp.user32.dll_KillTimer]
push dword [0x40505c]
call dword [sym.imp.gdi32.dll_DeleteObject]
jmp 0x401290
lea esi, [ebp - 0x234]
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]
xor eax, eax
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret 0x10