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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100a509c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x2fb7ac4]
push edi
mov edi, ecx
movzx ecx, word [edi + 4]
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xac], eax
cmp ecx, 0xa
je 0x1003fc04
cmp ecx, 0x2f
jne 0x100407ce
movzx eax, word [edi + 8]
push esi
movzx esi, word [edi]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], esi
cmp ecx, 0x2f
jne 0x1003fc22
mov eax, dword [edi + 0x16]
jmp 0x1003fc25
mov eax, dword [edi + 0x3c]
cmp eax, 0xcd
je 0x100407cd
cmp eax, 0xa6
je 0x100407cd
test eax, eax
je 0x100407cd
cmp eax, 0x1c
je 0x100407cd
cmp eax, 0x1d
je 0x100407cd
push ebx
mov ebx, esi
imul ebx, ebx, 0x1cc
lea edx, [ebx + 0x333bab0]
mov dword [ebp - 0xb0], edx
movzx edx, byte [edx + 0x2a]
cmp eax, 0x96
je 0x1003fc83
cmp eax, 0x191
je 0x1003fc83
cmp eax, 0xc9
jne 0x1003fc8c
cmp edx, 5
je 0x100407cc
mov eax, 0xbb8
cmp ecx, 0x2f
jne 0x1003ff0a
cmp esi, eax
jge 0x1003ff0a
and dword [ebp - 0xa8], 0
lea eax, [edi + 0xa2]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
movzx eax, word [eax - 0x50]
test eax, eax
je 0x10040137
cmp eax, 0xbb8
jge 0x1003feeb
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x14]
cmp ecx, eax
jne 0x1003fdd2
cmp eax, dword [ebp - 0xa4]
je 0x1003fdd2
cmp byte [edi + 0x26], 0
mov byte [0x1035ef31], 1
jne 0x1003fdaa
cmp dword [0x103d3ad8], 1
jne 0x1003fd84
cmp byte [0x1035ef2a], 1
jne 0x1003fd84
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x1d20]
mov ecx, 0xd740a0
call fcn.10006671
mov esi, eax
test esi, esi
jle 0x1003fd6a
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 0xa4]
je 0x1003fd6a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx*4 + 0x1031ed00]
cmp eax, 0x1388
jb 0x1003fd6a
mov edi, dword [ebp - 0xa4]
push 1
call fcn.1003fa74
mov dword [0x1035ef00], edi
mov edi, dword [ebp - 0x9c]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0xa4]
push ecx
mov dword [ecx*4 + 0x1031ed00], eax
call fcn.1003976f
pop ecx
mov eax, dword [ebp - 0xb4]
push dword [eax]
mov eax, dword [ebp - 0xb0]
add eax, 2
push eax
lea eax, [ebp - 0x68]
push 0x10097af0
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
jmp 0x1003fdbb
lea eax, [ebp - 0x68]
push 0x10097b04
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push 8
push eax
call fcn.1003c64d
pop ecx
pop ecx
call fcn.1003e65e
jmp 0x1003feeb
cmp ecx, dword [ebp - 0xa4]
jne 0x1003feeb
cmp eax, dword [ebp - 0xa4]
je 0x1003feeb
imul eax, eax, 0x1cc
cmp byte [edi + 0x26], 0
lea esi, [eax + 0x333bab0]
jne 0x1003fe22
mov eax, dword [ebp - 0xb4]
push dword [eax + 0x104]
push dword [eax]
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x68]
push 0x10097b10
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
jmp 0x1003fe33
lea eax, [ebp - 0x68]
push 0x10097b30
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push 3
push eax
call fcn.1003c64d
xor ebx, ebx
pop ecx
pop ecx
cmp dword [0x103d0f48], ebx
je 0x1003feeb
cmp byte [0x1035ef2a], 1
jne 0x1003feeb
cmp dword [0x103d2010], 1
jne 0x1003feeb
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax - 0x28]
cmp eax, dword [0x103d2008]
jg 0x1003feeb
cmp dword [0x103d6054], ebx
jle 0x1003fea2
lea eax, [esi + 2]
push eax
mov eax, dword [0x103d604c]
push dword [eax + ebx*4]
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
je 0x1003feeb
inc ebx
cmp ebx, dword [0x103d6054]
jl 0x1003fe81
lea edi, [esi + 2]
push edi
mov esi, 0x103d604c
call fcn.100010da
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov esi, 0x103d6058
call fcn.1000117c
push dword [0x103d200c]
lea eax, [ebp - 0x68]
push edi
push 0x10097b3c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x68]
push 2
push eax
call fcn.1003c64d
mov edi, dword [ebp - 0x9c]
add esp, 0x18
inc dword [ebp - 0xa8]
add dword [ebp - 0xb4], 4
cmp dword [ebp - 0xa8], 0x14
jl 0x1003fcb5
jmp 0x10040137
cmp ecx, 0xa
jne 0x10040137
cmp esi, eax
jge 0x10040137
mov edx, dword [ebp - 0xa0]
cmp edx, eax
jge 0x10040137
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100407cc
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x14]
cmp eax, esi
jne 0x10040051
cmp edx, esi
je 0x10040051
mov esi, edx
imul esi, esi, 0x1cc
cmp byte [edi + 0x53], 0
jne 0x1003ff7a
push dword [edi + 0x4f]
lea eax, [esi + 0x333bab2]
push ecx
push eax
lea eax, [ebp - 0x68]
push 0x10097b10
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
jmp 0x1003ff8b
lea eax, [ebp - 0x68]
push 0x10097b30
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push 3
push eax
call fcn.1003c64d
cmp dword [0x103d0f48], 0
pop ecx
pop ecx
je 0x10040137
cmp byte [0x1035ef2a], 1
jne 0x10040137
cmp dword [0x103d2010], 1
jne 0x10040137
mov eax, dword [edi + 0x10]
cmp eax, dword [0x103d2008]
jg 0x10040137
xor ebx, ebx
cmp dword [0x103d6054], ebx
jle 0x10040000
lea eax, [esi + 0x333bab2]
push eax
mov eax, dword [0x103d604c]
push dword [eax + ebx*4]
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
je 0x10040137
inc ebx
cmp ebx, dword [0x103d6054]
jl 0x1003ffd8
lea edi, [esi + 0x333bab2]
push edi
mov esi, 0x103d604c
call fcn.100010da
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov esi, 0x103d6058
call fcn.1000117c
push dword [0x103d200c]
lea eax, [ebp - 0x68]
push edi
push 0x10097b3c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x68]
push 2
push eax
call fcn.1003c64d
mov edi, dword [ebp - 0x9c]
add esp, 0x18
jmp 0x10040137
cmp eax, edx
jne 0x10040137
cmp edx, esi
je 0x10040137
cmp byte [edi + 0x53], 0
mov byte [0x1035ef31], 1
jne 0x10040114
cmp dword [0x103d3ad8], 1
jne 0x100400f6
cmp byte [0x1035ef2a], 1
jne 0x100400f6
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x1d20]
mov ecx, 0xd740a0
call fcn.10006671
mov esi, eax
test esi, esi
jle 0x100400dc
mov eax, dword [ebp - 0xa4]
cmp dword [esi + 0x14], eax
je 0x100400dc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx*4 + 0x1031ed00]
cmp eax, 0x1388
jb 0x100400dc
mov edi, dword [ebp - 0xa4]
push 1
call fcn.1003fa74
mov dword [0x1035ef00], edi
mov edi, dword [ebp - 0x9c]
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0xa4]
push ecx
mov dword [ecx*4 + 0x1031ed00], eax
call fcn.1003976f
pop ecx
push dword [edi + 0x10]
add ebx, 0x333bab2
push ebx
lea eax, [ebp - 0x68]
push 0x10097af0
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
jmp 0x10040125
lea eax, [ebp - 0x68]
push 0x10097b04
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push 8
push eax
call fcn.1003c64d
pop ecx
pop ecx
call fcn.1003e65e
mov eax, dword [ebp - 0xac]
mov esi, dword [eax + 0x14]
cmp esi, dword [ebp - 0xa4]
je 0x100407cc
cmp dword [ebp - 0xa4], 0xbb8
jge 0x100407cc
movzx ebx, word [edi + 4]
cmp ebx, 0x2f
jne 0x1004019b
xor edx, edx
lea eax, [edi + 0x52]
movzx ecx, word [eax]
test ecx, ecx
je 0x100407cc
cmp ecx, 0xbb8
jge 0x10040181
cmp esi, ecx
je 0x1004018f
inc edx
add eax, 4
cmp edx, 0x14
jl 0x1004016a
jmp 0x100407cc
mov eax, dword [edi + edx*4 + 0x7a]
mov dword [ebp - 0xa8], eax
jmp 0x100401a7
cmp esi, dword [ebp - 0xa0]
jne 0x100407cc
cmp ebx, 0x2f
je 0x100401b5
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xa8], eax
cmp dword [0x103c7014], 1
jne 0x100401f4
push 0x1f4
call dword [sym.imp.mfc100.dll_Ordinal_265]
mov dword [esp], 0x10110f10
mov esi, eax
push 0x10097b54
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0x11
push 0
push esi
call dword [sym.imp.WINMM.dll_PlaySoundA]
push esi
call dword [sym.imp.mfc100.dll_Ordinal_1296]
pop ecx
cmp dword [0x103c18bc], 1
jne 0x1004023e
xor esi, esi
cmp dword [0x103c18f0], esi
jle 0x1004023e
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x32
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x103c1b80
call dword [sym.imp.mfc100.dll_Ordinal_6969]
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.10006200
inc esi
pop ecx
pop ecx
cmp esi, dword [0x103c18f0]
jl 0x10040207
xor edi, edi
mov dword [ebp - 0xa0], edi
cmp dword [0x103d5f7c], edi
jle 0x10040281
mov esi, dword [ebp - 0xb0]
add esi, 2
mov eax, dword [0x103d5f74]
push esi
push dword [eax + edi*4]
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
je 0x10040277
inc edi
cmp edi, dword [0x103d5f7c]
jl 0x10040257
jmp 0x10040281
mov dword [ebp - 0xa0], 1
xor eax, eax
inc eax
cmp dword [0x103ca5f0], eax
jne 0x100402a1
mov ecx, dword [ebp - 0xb0]
cmp dword [ecx + 0x20], 0xfffffc18
jge 0x100402a1
mov dword [ebp - 0xa0], eax
cmp dword [0x103ca5d4], eax
jne 0x100402c6
mov eax, dword [ebp - 0xa8]
cmp eax, dword [0x103ca5d8]
jle 0x100402c6
and dword [0x101117c4], 0
mov ebx, dword [ebp - 0xb0]
jmp 0x10040304
mov ebx, dword [ebp - 0xb0]
call fcn.1003dce8
cmp al, 1
jne 0x10040304
cmp dword [0x103ca5b4], 1
jne 0x10040304
lea eax, [ebx + 2]
push eax
lea eax, [ebp - 0x84]
push 0x10097b64
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 2
lea edi, [ebp - 0x84]
call fcn.1003b429
add esp, 0x10
xor edi, edi
inc edi
cmp dword [0x103ca33c], edi
jne 0x1004038b
cmp dword [0x1035eef4], edi
jne 0x1004038b
cmp dword [0x101117c4], 5
je 0x1004038b
cmp dword [ebp - 0xa0], 0
jne 0x1004038b
mov eax, dword [0x2fb7ac4]
mov byte [eax + 0x4884], 5
lea eax, [ebx + 2]
push eax
lea eax, [ebp - 0x84]
push 0x10097b6c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [0x103ca340]
add esp, 0xc
cmp eax, edi
jne 0x1004036c
mov eax, dword [0x103cb7b4]
cmp eax, edi
jne 0x10040364
push 3
jmp 0x1004037d
test eax, eax
jne 0x1004037b
push 2
jmp 0x1004037d
test eax, eax
jne 0x1004037b
cmp dword [0x103cb7b4], edi
jne 0x1004037b
push edi
jmp 0x1004037d
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.100370d7
pop ecx
pop ecx
cmp dword [0x103d0f48], 0
jbe 0x10040467
cmp byte [0x1035ef2a], 1
jne 0x10040467
cmp byte [0x10383fef], 0
jne 0x10040467
lea esi, [ebx + 2]
push esi
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
test eax, eax
je 0x10040467
cmp byte [ebx + 1], 1
jne 0x100403d9
fld dword [ebx + 0x3a]
fstp dword [ebp - 0xa8]
fld dword [ebx + 0x42]
jmp 0x100403eb
fld dword [ebx + 0x97]
fstp dword [ebp - 0xa8]
fld dword [ebx + 0x9f]
fstp dword [ebp - 0xa0]
cmp dword [0x103d1e58], edi
jne 0x1004043a
fld dword [0x1012eb34]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x1012ec98]
fstp dword [esp + 8]
fld dword [ebp - 0xa0]
fstp dword [esp + 4]
fld dword [ebp - 0xa8]
fstp dword [esp]
call fcn.1000640b
fild dword [0x103d1e60]
add esp, 0x10
fcompp
fnstsw ax
test ah, 0x41
je 0x10040443
cmp dword [0x103d1e58], 0
jne 0x10040467
push esi
push 0x101100c0
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xffff
mov dword [0x1035ed40], eax
call fcn.10039b8d
pop ecx
mov edi, dword [sym.imp.MSVCR100.dll_strcmp]
xor ebx, ebx
mov esi, 0x10097b84
cmp dword [0x103d5fa0], ebx
jle 0x100404be
mov eax, dword [ebp - 0xb0]
lea ecx, [eax + 0x15]
push ecx
movzx ecx, byte [eax + 0x28]
push ecx
add eax, 2
push eax
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x84]
push eax
mov eax, dword [0x103d5f98]
push dword [eax + ebx*4]
call edi
add esp, 0x1c
test eax, eax
je 0x100404f1
inc ebx
cmp ebx, dword [0x103d5fa0]
jl 0x1004047c
mov ebx, dword [ebp - 0xb0]
lea eax, [ebx + 2]
push eax
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
test eax, eax
jne 0x1004050e
push ebx
mov esi, 0x103d5fb0
call fcn.1000117c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov esi, 0x103d5fbc
call fcn.1000117c
jmp 0x10040554
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101117d4], eax
mov eax, dword [0x103d5fa4]
mov ebx, dword [eax + ebx*4]
inc dword [ebx]
mov ebx, dword [ebp - 0xb0]
jmp 0x10040554
lea eax, [ebx + 0x15]
push eax
movzx eax, byte [ebx + 0x28]
push eax
lea eax, [ebx + 2]
push eax
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
lea eax, [ebp - 0x84]
push eax
mov esi, 0x103d5f98
call fcn.100010da
push 1
mov esi, 0x103d5fa4
call fcn.1000117c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101117d4], eax
cmp dword [0x103ca588], 1
jne 0x10040683
and dword [ebp - 0x9c], 0
mov esi, 0x2f9b2b0
mov eax, dword [esi]
test eax, eax
je 0x1004058e
cmp byte [eax + 0x330], 0
je 0x1004058e
lea ecx, [ebx + 2]
push ecx
add eax, 0x338
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x1004059b
add esi, 4
cmp esi, 0x2f9b2cc
jl 0x1004056d
jmp 0x100405a5
mov dword [ebp - 0x9c], 1
xor esi, esi
cmp dword [0x103d5f7c], esi
jle 0x100405d8
lea eax, [ebx + 2]
push eax
mov eax, dword [0x103d5f74]
push dword [eax + esi*4]
call edi
pop ecx
pop ecx
test eax, eax
je 0x100405ce
inc esi
cmp esi, dword [0x103d5f7c]
jl 0x100405af
jmp 0x100405d8
mov dword [ebp - 0x9c], 1
xor esi, esi
cmp dword [0x103d5f70], esi
jle 0x1004060b
lea eax, [ebx + 2]
push eax
mov eax, dword [0x103d5f68]
push dword [eax + esi*4]
call edi
pop ecx
pop ecx
test eax, eax
je 0x10040601
inc esi
cmp esi, dword [0x103d5f70]
jl 0x100405e2
jmp 0x1004060b
mov dword [ebp - 0x9c], 1
cmp dword [ebp - 0x9c], 0
jne 0x10040683
cmp dword [0x103cafec], 1
jne 0x1004063e
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x14]
imul eax, eax, 0x1cc
add eax, 0x333bac5
push eax
lea eax, [ebx + 0x15]
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x10040683
cmp dword [0x103ca58c], 1
jne 0x10040661
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x14]
mov cl, byte [ebx + 0x27]
imul eax, eax, 0x1cc
cmp cl, byte [eax + 0x333bad7]
je 0x10040683
lea esi, [ebx + 2]
push esi
push 0
push 0x180
push dword [0x103ca368]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, 0x103d5f68
call fcn.100010da
cmp dword [0x1035eef4], 0
je 0x100407cc
inc dword [0x103c1440]
lea eax, [ebx + 2]
push eax
mov esi, 0x1012743c
push esi
mov dword [ebp - 0x9c], eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x1004079b
push dword [ebp - 0x9c]
push esi
call dword [sym.imp.MSVCR100.dll_strcpy]
lea edi, [ebx + 0x15]
push edi
mov dword [0x103c1440], 1
call dword [sym.imp.MSVCR100.dll_strlen]
mov esi, dword [ebp - 0xac]
fld dword [esi + 0x1f60]
add esp, 0xc
test eax, eax
jne 0x1004073d
call fcn.10082ff0
fld dword [esi + 0x1f68]
mov edi, eax
call fcn.10082ff0
push dword [0x2f92a08]
lea esi, [ebp - 0x98]
mov ebx, eax
call fcn.10006e68
push ebx
push edi
mov eax, esi
push eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x84]
push 0x10097b98
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 3
lea edi, [ebp - 0x84]
call fcn.1003b429
add esp, 0x20
jmp 0x100407cc
call fcn.10082ff0
fld dword [esi + 0x1f68]
mov ebx, eax
call fcn.10082ff0
push dword [0x2f92a08]
lea esi, [ebp - 0x98]
mov dword [ebp - 0xa0], eax
call fcn.10006e68
push dword [ebp - 0xa0]
mov eax, esi
push ebx
push eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x84]
push edi
push 0x10097bb4
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 3
lea edi, [ebp - 0x84]
call fcn.1003b429
add esp, 0x24
jmp 0x100407cc
cmp dword [0x103c1440], 5
jne 0x100407cc
push dword [ebp - 0x9c]
lea eax, [ebp - 0x84]
push 0x10097bd8
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 3
lea edi, [ebp - 0x84]
call fcn.1003b429
add esp, 0x10
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10082395
leave
ret