Function at 0x412f20
Capabilities:
Accept command line arguments
Check for time delay via gettickcount

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
cmp dword [edi + 0xec], 9
je 0x4130cb
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x412f74
cmp dword [esp + 0x20], 0x12
je 0x4130dd
lea esi, [esp + 0x1c]
call fcn.00412e50
jmp 0x4130be
mov eax, dword [edi + 0xec]
dec eax
cmp eax, 7
ja case.0x412f84.5
jmp dword [eax*4 + 0x413150]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [esp + 0x20], 0x12
je 0x4130f4
lea esi, [esp + 0x1c]
call fcn.00412e50
cmp dword [edi + 0xec], 3
je case.0x412f84.3
push 0xff
push 0x3e8
push 0
push 0
push 0
call ebx
jmp 0x4130be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004039f0
add esp, 4
mov dword [edi + 0xec], eax
cmp dword [0x43313c], 0xffffffff
jne 0x41304a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
push esi
call fcn.00403a30
add esp, 4
test eax, eax
je 0x413023
mov edx, dword [edi + 0xf8]
push 0xff
sub edx, esi
push edx
push 0
push 0
push 0
call ebx
jmp 0x4130be
mov eax, dword [0x434c08]
test byte [eax + 0x30c], 2
je 0x4130be
mov eax, dword [0x434c00]
test eax, eax
je 0x4130be
dec eax
mov dword [0x434c00], eax
jmp 0x4130be
call ebp
mov esi, eax
add esi, 5
push esi
call fcn.00403a30
add esp, 4
test eax, eax
je 0x413076
mov ecx, dword [edi + 0xf8]
push 0xff
sub ecx, esi
push ecx
push 0
push 0
push 0
call ebx
jmp 0x4130be
call ebp
cmp eax, dword [edi + 0xf8]
jge 0x413092
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
cmp eax, dword [edi + 0xf8]
jl 0x413080
mov edx, dword [0x434c08]
mov dword [edi + 0xfc], eax
mov dword [edi + 0xec], 0
test byte [edx + 0x30c], 2
jmp 0x41302f
mov dword [edi + 0xec], 3
cmp dword [edi + 0xec], 9
jne 0x412f44
mov dword [edi + 0xec], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x4316c0
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 0
call fcn.00420030
push 0x4316c0
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], 0
call fcn.00420030
push 0x4316c0
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0
call fcn.00420030
push 0x4316c0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0xa
call fcn.00420030
push 0x4316c0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x2a
call fcn.00420030
aad 0x2f
inc ecx
add dl, ch
das
inc ecx
add byte [eax + 0xb00412f], dl
xor dword [ecx], eax
aad 0x30
inc ecx
add byte [edx], ah
xor dword [ecx], eax
cmp dword [ecx], esi
inc ecx
add byte [eax + esi - 0x5e9bffbf], dh
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42bdae
push eax
mov dword fs:[0], esp
sub esp, 0x124
push edi
push 2
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x4131b6
mov eax, 1
pop edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
add esp, 0x130
ret
push edi
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x390
call fcn.0041fff1
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, edi
mov dword [esp + 0x130], edi
je 0x4131e8
mov ecx, eax
call fcn.00401a40
jmp 0x4131ea
xor eax, eax
mov ecx, dword [esp + 0x138]
mov dword [eax + 0x320], ecx
mov ecx, dword [esp + 0x13c]
cmp ecx, edi
mov dword [esp + 0x130], 0xffffffff
mov dword [0x434c18], eax
je 0x41321a
push ecx
mov ecx, eax
call fcn.00401a80
mov dl, byte [0x433114]
mov cl, byte [0x43310c]
push esi
sub dl, 0x30
xor esi, esi
xor eax, eax
cmp dl, cl
mov dword [0x434c14], 0x280
mov dword [0x434c10], 0x1e0
mov dword [0x434c0c], edi
mov dword [0x434c04], edi
jne 0x413257
mov eax, 1
mov cl, byte [0x433115]
mov dl, byte [0x43310d]
sub cl, 0x30
cmp cl, dl
jne 0x41326b
inc eax
mov dl, byte [0x433116]
mov cl, byte [0x43310e]
sub dl, 0x30
cmp dl, cl
jne 0x41327f
inc eax
mov cl, byte [0x433117]
mov dl, byte [0x43310f]
sub cl, 0x30
cmp cl, dl
jne 0x413293
inc eax
mov dl, byte [0x433118]
mov ecx, dword [0x433110]
sub dl, 0x30
cmp dl, cl
jne 0x4132a7
inc eax
mov dl, byte [0x433119]
sub dl, 0x30
cmp dl, ch
jne 0x4132b5
inc eax
mov dl, byte [0x43311a]
mov cx, word [0x433112]
sub dl, 0x30
cmp dl, cl
jne 0x4132ca
inc eax
mov dl, byte [0x43311b]
sub dl, 0x30
cmp dl, ch
jne 0x4132d8
inc eax
cmp eax, edi
jne 0x413343
push str.155648
call fcn.00420f5a
mov esi, eax
mov al, byte [0x433125]
add esp, 4
add esi, 0x10000
cmp al, 0x73
jne 0x413304
mov dword [0x434c04], 2
movsx eax, word [0x433128]
movsx ecx, word [0x43312b]
movsx edx, word [0x43312e]
mov dword [0x434c10], ecx
movzx ecx, word [0x433131]
mov dword [0x434c14], eax
mov eax, dword [0x433134]
push eax
push ecx
mov ecx, dword [0x434c18]
mov dword [0x434c0c], edx
call fcn.00401d50
test byte [0x434c0c], 2
jne 0x413379
push 0x104
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x24]
push 0x20
push eax
mov ecx, eax
push ecx
call fcn.0041f350
lea edx, [esp + 0x30]
push edx
call fcn.0041f4f0
add esp, 0x10
mov ecx, dword [0x434c18]
push esi
call fcn.00401b30
test eax, eax
je 0x4133b8
push 0x30
push str.Error
push str.Startup_failed.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
add esp, 0x130
ret
mov eax, dword [0x434c18]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push ebx
mov dword [0x434c08], eax
call esi
push eax
call fcn.0041f6d0
mov ecx, dword [0x434c08]
push eax
add ecx, 0x368
push ecx
call fcn.00409920
mov eax, dword [0x434c04]
add esp, 0xc
cmp eax, edi
je 0x4134bb
call esi
push eax
call fcn.0041f6d0
mov esi, eax
movsx edx, byte [esi + 1]
push edx
mov dword [0x434c00], 0x1e
call fcn.0041fa4a
add esp, 8
push edi
push str.oniwndp
mov bl, al
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x413444
pop ebx
pop esi
mov eax, 2
pop edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
add esp, 0x130
ret
cmp bl, 0x70
jne 0x413580
add esi, 3
push esi
call fcn.00420f5a
mov esi, eax
add esp, 4
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sub ecx, edx
mov edx, dword [esp + 0x18]
sub edx, eax
mov eax, dword [0x434c08]
mov dword [0x434c14], ecx
mov dword [0x434c10], edx
mov dword [0x434c0c], 0x100
mov dword [eax + 0x358], esi
mov dword [0x434c04], edi
mov eax, dword [0x434c08]
mov edx, dword [eax + 0x30c]
mov ecx, dword [0x434c04]
or edx, ecx
mov dword [eax + 0x30c], edx
mov edx, dword [0x434c08]
push 0x413e50
push 6
mov dword [edx + 0x354], fcn.00412f20
call fcn.00407da0
push 0x414c90
push 7
call fcn.00407da0
add esp, 0x10
push 8
lea eax, [esp + 0x20]
push eax
mov dword [0x43313c], 0xffffffff
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
jne 0x413511
mov eax, dword [esp + 0x1c]
push eax
mov dword [0x43313c], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
push 0x10
call fcn.004036b0
push eax
call fcn.0040e0b0
push 0x11
call fcn.004036b0
push eax
call fcn.0040e120
mov ecx, dword [0x434c0c]
mov edx, dword [0x434c10]
mov eax, dword [0x434c14]
add esp, 0x10
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
push edx
push eax
push 9
call fcn.004036b0
add esp, 4
push eax
call fcn.00412c50
push 0xa
call fcn.004036b0
push eax
call fcn.00412b90
mov ecx, dword [esp + 0x150]
add esp, 0x20
pop ebx
pop esi
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x130
ret
cmp bl, 0x73
jne 0x41349c
push edi
call dword [sym.imp.USER32.dll_ShowCursor]
jmp 0x4134a2