Function at 0x401280
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x654
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0xffffffffffffffff
mov dword [esp + 0x1c], esi
call sub.IMM32.dll_ImmDisableIME
push str._maketheme
push edi
mov dword [0x4fb768], esi
call fcn.0046ff94
add esp, 8
test eax, eax
jne 0x4012d0
call fcn.00401030
jmp 0x401741
push str._extracttheme
push edi
call fcn.0046ff94
add esp, 8
test eax, eax
jne 0x4012ec
call fcn.004011e0
jmp 0x401741
xor bl, bl
mov byte [esp + 0xf], bl
test edi, edi
je 0x401311
push str._silent
push edi
call fcn.00470338
add esp, 8
test eax, eax
je 0x401311
mov byte [esp + 0xf], 1
mov bl, byte [esp + 0xf]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov byte [esp + 0x14], 0
mov dword [esp + 0x10], 0
call fcn.00419890
mov dword [eax + 0x96c], 4
call fcn.00419890
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00415b60
test al, al
jne 0x401380
test bl, bl
jne 0x401357
lea edi, [esp + 0x10]
call fcn.0041a680
lea ecx, [esp + 0x10]
call fcn.0041a420
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x650]
xor ecx, esp
call fcn.0046fdae
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x10]
call fcn.004152b0
test al, al
je 0x40134a
mov ecx, esi
call fcn.0041a180
test al, al
je 0x40134a
push 0xffffffffffffffff
mov edx, esi
push 0
push edx
call fcn.0046cf90
mov ecx, eax
call fcn.0046cd70
test al, al
je 0x40134a
mov eax, esi
push eax
call fcn.0046b900
mov ecx, eax
call fcn.0046a8e0
test al, al
je 0x40134a
mov ecx, esi
push ecx
push ecx
call fcn.00401760
add esp, 4
mov ecx, eax
call fcn.00456740
test al, al
je 0x40134a
call fcn.0040c040
push 1
call fcn.004706a8
add esp, 4
test eax, eax
je 0x4013fd
mov ebx, eax
call fcn.0040dd30
mov bl, byte [esp + 0xf]
jmp 0x4013ff
xor eax, eax
mov dword [0x4fb76c], eax
call fcn.00401ba0
call fcn.00407050
mov ecx, edi
call fcn.00403200
cmp byte [0x4fe130], 0
je 0x4016c1
xor al, al
mov ecx, str.9DD475D3_18A9_4b30_A1D3_E6E4622DC538
lea edx, [esp + 0x38]
call fcn.0041ac50
cmp byte [esp + 0x3c], 0
je 0x401468
push 0x4cb058
push str.CherryWindowClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x4016b8
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4016b8
push 0
call fcn.004070d0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x252]
push eax
mov word [esp + 0x254], dx
call fcn.00476c30
add esp, 0xc
push 0x104
lea ecx, [esp + 0x24c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x248]
push 0x5c
push edx
call fcn.0047030c
add esp, 8
test eax, eax
je 0x4014bf
xor ecx, ecx
mov word [eax], cx
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x45a]
push eax
mov word [esp + 0x45c], dx
call fcn.00476c30
add esp, 0xc
lea ecx, [esp + 0x248]
push ecx
push str._sThemeDefault.cupf
lea edx, [esp + 0x458]
push 0x104
push edx
call fcn.0046fdbd
add esp, 0x10
call fcn.00437c30
mov eax, dword [eax]
lea ecx, [esp + 0x450]
mov edx, eax
call fcn.00436a50
test eax, eax
je 0x4016a0
push str.Theme.xml
mov ebx, eax
call fcn.004331f0
mov ebx, eax
test ebx, ebx
je 0x401570
mov eax, dword [ebx + 8]
inc eax
push eax
call fcn.0046fd28
mov ecx, dword [ebx + 4]
mov esi, eax
mov eax, dword [ebx + 8]
add esp, 4
push eax
push ecx
inc eax
push eax
push esi
call fcn.004703a4
mov edx, dword [ebx + 8]
add esp, 0x10
mov byte [esi + edx], 0
call fcn.00432a30
mov eax, dword [eax]
push esi
push eax
call fcn.004301b0
push esi
call fcn.00470399
add esp, 4
mov esi, dword [esp + 0x18]
push 0x6b
push esi
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
push esi
call fcn.00434dc0
push 0x258
call fcn.004706a8
add esp, 0xc
test eax, eax
je 0x40159d
push eax
call fcn.0040f190
jmp 0x40159f
xor eax, eax
push esi
push 0
push 0x1f4
push 0x2a2
push 0xc8
push 0xc8
push 0x800a0000
push 0x4cb058
push 0x80000
mov ecx, eax
mov dword [0x4fb764], eax
call fcn.004339a0
mov esi, dword [0x4fb764]
mov bl, 1
call fcn.004345a0
mov ebx, dword [0x4fb764]
call fcn.00434600
mov eax, dword [0x4fe134]
mov ecx, dword [0x4fb764]
mov edx, dword [ecx + 0x124]
push 0
push eax
push 0x8007
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov dword [0x4fe45c], eax
mov eax, 1
add dword [0x4fe454], eax
mov byte [0x4fe450], al
xor eax, eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0
call esi
test eax, eax
je 0x40168a
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
cmp eax, 0xffffffff
je 0x40168a
lea ecx, [esp + 0x1c]
push ecx
call ebx
lea edx, [esp + 0x1c]
push edx
call edi
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
jne 0x401666
call fcn.00409280
mov ecx, 0x4fe158
call fcn.00407340
call fcn.0040be20
jmp 0x4016b8
test bl, bl
jne 0x4016b8
push 0
push str.error
push 0x4cb318
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x38]
call fcn.0041acc0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, eax
call edi
sub eax, esi
cmp eax, 0xffffffff
jae 0x4016f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
call fcn.004090e0
test al, al
je 0x4016f6
push 0x64
call ebx
call edi
sub eax, esi
cmp eax, 0xffffffff
jb 0x4016e0
call fcn.00401760
call fcn.0045f880
call fcn.00401760
mov ebx, eax
call fcn.004600d0
call fcn.00401760
mov eax, dword [0x4fb76c]
test eax, eax
je 0x40172d
push eax
mov dword [0x4fb76c], 0
call fcn.0046fda3
add esp, 4
call fcn.0040c530
lea ecx, [esp + 0x10]
call fcn.0041a420
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x65c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0046fdae
mov esp, ebp
pop ebp
ret 0x10