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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [0x1077004]
mov esi, 0x1077004
mov ebx, 0x1007300
cmp eax, esi
je 0x102a883
test dword [eax + 0x1c], 0x100
je 0x102a883
cmp byte [eax + 0x19], 4
jb 0x102a883
push ebx
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1079b6c]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x102aa8e
mov edi, 0x493e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x102a8ce
test dword [eax + 0x1c], 0x100
je 0x102a8ce
cmp byte [eax + 0x19], 5
jb 0x102a8ce
push edi
push ebx
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
push 0x4ff
push edi
push 0
lea eax, [ebp - 0x14]
push eax
push 2
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1077004]
mov ecx, 0x100
cmp eax, esi
je 0x102a92e
test dword [eax + 0x1c], ecx
je 0x102a92e
cmp byte [eax + 0x19], 5
jb 0x102a92e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
push eax
mov eax, dword [0x1077004]
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
mov eax, dword [0x1077004]
mov ecx, 0x100
mov edx, dword [ebp - 4]
test edx, edx
je 0x102aa6d
cmp edx, 1
je 0x102aa59
cmp edx, 2
jne 0x102a9e3
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 1
jne 0x102aa50
mov eax, dword [0x1077004]
cmp eax, esi
je 0x102a98c
test dword [eax + 0x1c], 0x100
je 0x102a98c
cmp byte [eax + 0x19], 5
jb 0x102a98c
push dword [ebp - 0x2c]
push ebx
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
call fcn.01015eea
test eax, eax
je 0x102aa8e
cmp dword [ebp - 0x2c], 0x36a
je 0x102a9c8
mov edx, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call dword [edx + 0x98]
test eax, eax
jne 0x102a9c8
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1079b6c]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x102a89e
jmp 0x102aa8e
cmp edx, 0x102
je 0x102aa3b
cmp edx, 0xffffffff
je 0x102aa1c
cmp eax, esi
je 0x102aa8e
test dword [eax + 0x1c], ecx
je 0x102aa8e
cmp byte [eax + 0x19], 5
jb 0x102aa8e
push edx
push ebx
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
jmp 0x102aa8e
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
cmp edx, 6
jne 0x102aa8e
cmp eax, esi
je 0x102aa8a
test dword [eax + 0x1c], ecx
je 0x102aa8a
cmp byte [eax + 0x19], 5
jb 0x102aa8a
push ebx
push 0x15
jmp 0x102aa7f
cmp eax, esi
je 0x102aa8e
test dword [eax + 0x1c], ecx
je 0x102aa8e
cmp byte [eax + 0x19], 5
jb 0x102aa8e
push edi
push ebx
push 0x19
jmp 0x102aa0f
push 0
call sub.MFC42u.dll_AfxPostQuitMessage
jmp 0x102aa8a
cmp eax, esi
je 0x102aa8a
test dword [eax + 0x1c], ecx
je 0x102aa8a
cmp byte [eax + 0x19], 5
jb 0x102aa8a
push ebx
push 0x17
jmp 0x102aa7f
cmp eax, esi
je 0x102aa8a
test dword [eax + 0x1c], ecx
je 0x102aa8a
cmp byte [eax + 0x19], 5
jb 0x102aa8a
push ebx
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4