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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1007f641
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x1009d07c]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jne 0x1001207c
call edi
mov dword [0x1009d07c], eax
call edi
sub eax, dword [0x1009d07c]
cmp eax, 0x927c0
jae 0x100120c1
call edi
mov ecx, eax
mov eax, 0x4f8b588f
mul ecx
sub ecx, edx
mov dword [esp + 0x18], ebx
shr ecx, 1
add ecx, edx
shr ecx, 0x10
inc ecx
mov dword [esp + 0x14], ecx
fild qword [esp + 0x14]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edi
mov dword [0x1009d07c], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0x138], ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x10]
push eax
call fcn.100104a0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], bl
call sub.MFC42.DLL_CString::CString
call edi
mov ecx, eax
mov eax, 0x4f8b588f
mul ecx
sub ecx, edx
mov eax, dword [0x100896e8]
shr ecx, 1
add ecx, edx
shr ecx, 0x10
inc ecx
cmp eax, ebx
mov esi, ecx
mov dword [esp + 0xc], esi
jne 0x100121b8
cmp dword [0x1009d044], ebx
jne 0x1001217d
fild dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
fstp qword [esp + 0x14]
call sub.MFC42.DLL_CString::CString
fld qword [esp + 0x14]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
neg esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
fild dword [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
fstp qword [esp + 0x14]
call sub.MFC42.DLL_CString::CString
fld qword [esp + 0x14]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1001224e
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.Epsnas
call sub.MFC42.DLL_CString::CString_1
call fcn.10010930
add esp, 4
cmp eax, ebx
je 0x10012213
fild dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
fstp qword [esp + 0x14]
call sub.MFC42.DLL_CString::CString
fld qword [esp + 0x14]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
neg esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
fild dword [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
fstp qword [esp + 0x14]
call sub.MFC42.DLL_CString::CString
fld qword [esp + 0x14]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x10012293
cmp eax, 3
je 0x10012293
neg esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x10]
fild dword [esp + 0xc]
mov dword [esp + 0x130], 0xffffffff
fstp qword [esp + 0x14]
call sub.MFC42.DLL_CString::CString
fld qword [esp + 0x14]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edi
push eax
lea ecx, [esp + 0x2c]
push 0x10089150
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x28]
mov edi, ecx
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x100896ec]
lea eax, [esp + 0x28]
push edi
push eax
push ecx
mov byte [esp + 0x13c], 2
call fcn.10012790
cmp eax, ebx
jne 0x1001233d
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
mov eax, dword [0x100896ec]
not ecx
dec ecx
push ecx
push edx
push eax
call fcn.10012890
cmp eax, ebx
jne 0x1001233d
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [eax]
mov edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
setne byte [esp + 0x1f]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x1f], bl
je 0x10012343
inc dword [0x1009d030]
mov ecx, dword [0x1009d030]
mov eax, 2
cmp ecx, eax
jle 0x1001239d
neg esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x20]
fild dword [esp + 0xc]
mov byte [esp + 0x130], bl
fstp qword [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
fld qword [esp + 0x14]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x100896e8], eax
jne 0x10012400
call fcn.1000e830
mov edi, eax
call fcn.1000eed0
cmp eax, edi
je 0x10012400
neg esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x20]
fild dword [esp + 0xc]
mov byte [esp + 0x130], bl
fstp qword [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
fld qword [esp + 0x14]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Epsnas
call sub.MFC42.DLL_CString::CString_1
call fcn.1000ef10
add esp, 4
cmp eax, ebx
jne 0x10012462
fild dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], bl
fstp qword [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
fld qword [esp + 0x14]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
neg esi
mov dword [esp + 0xc], esi
lea ecx, [esp + 0x20]
fild dword [esp + 0xc]
mov byte [esp + 0x130], bl
fstp qword [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
pop edi
fld qword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret