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

Disassembly:
push 0xffffffffffffffff
push 0x41db79
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, 1
cmp dword [esp + 0x3c], esi
jne 0x403454
cmp dword [0x4255a0], esi
jne 0x403454
mov dword [esp + 0x3c], 2
mov edi, ebx
call fcn.00409a20
test al, al
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x40346c
push 0x1f4
call ebp
call fcn.00409a20
test al, al
je 0x40347c
push 0x1f4
call ebp
call fcn.0040bdc0
call fcn.004038f0
cmp dword [0x4255a4], esi
jne 0x40360b
mov esi, 0x428c64
call fcn.004047c0
test al, al
je 0x40360b
mov esi, dword [esp + 0x38]
lea eax, [esi*4 + 0x426d08]
push eax
lea eax, [esp + 0x20]
push eax
mov edi, 0x41fa18
call fcn.00404600
mov eax, dword [eax]
mov ecx, dword [esi*4 + 0x425678]
add esp, 8
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.bb.bmp
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov edi, ebx
call fcn.00411a60
push 0x1f4
call ebp
fld1
sub esp, 0x18
fstp qword [esp + 0x10]
mov eax, esp
mov ecx, 0x1d8
mov dword [eax], ecx
mov edx, 0x119
mov esi, 0x237
mov dword [eax + 4], edx
mov dword [eax + 8], esi
push str.fffbf8_202020ffd4bd_202020ffb38b_202020
mov edi, 0x138
push ebx
lea esi, [esp + 0x38]
mov dword [eax + 0xc], edi
call fcn.00401700
mov edi, ebx
mov dword [esp + 0x30], 0
call fcn.00409a20
test al, al
je 0x403550
push 0x1f4
call ebp
mov edi, ebx
call fcn.00409a20
test al, al
je 0x403562
push 0x1f4
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
cmp eax, 0x64
jle 0x40359c
mov edi, ebx
call fcn.0040bdc0
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov esi, dword [esp + 0x3c]
push esi
mov ecx, ebx
call fcn.0040bf50
jmp 0x4035a0
mov esi, dword [esp + 0x38]
lea eax, [esi*4 + 0x426d08]
push eax
lea ecx, [esp + 0x20]
push ecx
mov edi, 0x41fa94
call fcn.00404600
mov eax, dword [eax]
mov edx, dword [esi*4 + 0x425678]
add esp, 8
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edi, ebx
call fcn.00409a20
test al, al
je 0x4035e7
push 0x1f4
call ebp
mov edi, ebx
call fcn.00409a20
test al, al
je 0x4035f9
push 0x1f4
call ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x41faac
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push ebx
call fcn.0040c780
test al, al
je 0x403630
mov eax, ebx
call fcn.0040cf10
jmp 0x403653
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.___Y
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push ebx
call fcn.0040c780
test al, al
je 0x403653
mov eax, ebx
call fcn.0040db10
mov edi, ebx
call fcn.00409a20
test al, al
je 0x403665
push 0x1f4
call ebp
mov edi, ebx
call fcn.00409a20
test al, al
je 0x403677
push 0x1f4
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, dword [sym.imp.MSVCR80.dll_srand]
push eax
call edi
add esp, 4
call dword [sym.imp.MSVCR80.dll_rand]
cdq
mov ecx, 0xb
idiv ecx
mov dword [esp + 0x1c], edx
call esi
push eax
call edi
add esp, 4
call dword [sym.imp.MSVCR80.dll_rand]
cdq
mov ecx, 0xb
idiv ecx
mov eax, dword [esp + 0x1c]
add eax, 0x152
push eax
add edx, 0x22
push edx
push 0x42508c
lea edx, [esp + 0x28]
push edx
push 3
push 1
push 0x19
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x20
push 0x32
call ebp
push 0
lea eax, [esp + 0x20]
push eax
push 3
push 1
push 0x11
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x18
push 0x7d0
call ebp
fld1
sub esp, 0x18
fstp qword [esp + 0x10]
mov eax, esp
mov ecx, 6
mov dword [eax], ecx
mov edx, 0x111
mov dword [eax + 4], edx
mov esi, 0x62
mov dword [eax + 8], esi
push 0x41fab8
mov edi, 0x149
push ebx
lea esi, [esp + 0x3c]
mov edx, str.000000_000000
mov dword [eax + 0xc], edi
call fcn.00401580
test eax, eax
je 0x40384d
push 0x1f4
call ebp
push 0x38
push 0x425088
lea ecx, [esp + 0x24]
push ecx
push 3
push 1
push 0xe
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x1c
push 0x3e8
call ebp
push ebx
call fcn.0040bee0
test al, al
je 0x403818
mov eax, dword [esp + 0x3c]
cmp eax, 2
lea edx, [esp + 0x1c]
jne 0x4037bf
push 0x426d10
push edx
mov edi, 0x41fac0
call fcn.00404600
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx*4 + 0x425678]
add esp, 8
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x37
lea eax, [esp + 0x20]
jmp 0x4037fa
lea ecx, [eax*4 + 0x426d08]
push ecx
push edx
mov edi, 0x41fad4
call fcn.00404600
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx*4 + 0x425678]
add esp, 8
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x36
lea eax, [esp + 0x28]
push 0x425088
push eax
push 3
push 1
push 0xe
push ebx
call sub.MFC80U.DLL_Ordinal_3901
add esp, 0x1c
push 0x7d0
call ebp
jmp 0x40384d
mov edi, ebx
call fcn.00409a20
test al, al
je 0x40382a
push 0x1f4
call ebp
mov edi, ebx
call fcn.00409a20
test al, al
je 0x40383c
push 0x1f4
call ebp
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
mov ecx, ebx
call fcn.00403410
push 0x1388
call ebp
fld1
sub esp, 0x18
fstp qword [esp + 0x10]
mov eax, esp
mov ecx, 6
mov dword [eax], ecx
mov edx, 0x142
mov dword [eax + 4], edx
mov esi, 0x61
mov dword [eax + 8], esi
push 0x41fae8
mov edi, 0x167
push ebx
lea esi, [esp + 0x3c]
mov edx, str.ffffff_0000000
mov dword [eax + 0xc], edi
call fcn.00401580
test eax, eax
jne 0x4038d0
mov eax, 0xf2
push eax
mov eax, 0x153
push eax
push 0
mov edi, ebx
call fcn.00402690
test al, al
jne 0x4038d0
call fcn.00409a20
test al, al
je 0x4038bf
push 0x1f4
call ebp
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov ecx, ebx
call fcn.00403410
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8