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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100a609c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x307809c]
push edi
mov edi, ecx
movzx ecx, word [edi + 4]
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xac], eax
cmp ecx, 0xa
je 0x10040494
cmp ecx, 0x2f
jne 0x1004105b
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 0x100404b2
mov eax, dword [edi + 0x16]
jmp 0x100404b5
mov eax, dword [edi + 0x3c]
cmp eax, 0xcd
je 0x1004105a
cmp eax, 0xa6
je 0x1004105a
test eax, eax
je 0x1004105a
cmp eax, 0x1c
je 0x1004105a
cmp eax, 0x1d
je 0x1004105a
push ebx
mov ebx, esi
imul ebx, ebx, 0x1cc
lea edx, [ebx + 0x33fc070]
mov dword [ebp - 0xb0], edx
movzx edx, byte [edx + 0x2b]
cmp eax, 0x96
je 0x10040513
cmp eax, 0x191
je 0x10040513
cmp eax, 0xc9
jne 0x1004051c
cmp edx, 5
je 0x10041059
mov eax, 0xbb8
cmp ecx, 0x2f
jne 0x10040799
cmp esi, eax
jge 0x10040799
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 0x100409c5
cmp eax, 0xbb8
jge 0x1004077a
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x14]
cmp ecx, eax
jne 0x10040661
cmp eax, dword [ebp - 0xa4]
je 0x10040661
xor ebx, ebx
inc ebx
cmp byte [edi + 0x26], 0
mov dword [0x1035ffb0], ebx
jne 0x10040639
cmp dword [0x103d4d50], ebx
jne 0x10040613
cmp dword [0x1035ff94], ebx
jne 0x10040613
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x1d20]
mov ecx, 0xe26ae0
call fcn.10006651
mov esi, eax
test esi, esi
jle 0x100405f9
mov eax, dword [ebp - 0xa4]
cmp dword [esi + 0x14], eax
je 0x100405f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx*4 + 0x1031fcf0]
cmp eax, 0x1388
jb 0x100405f9
mov edi, dword [ebp - 0xa4]
push ebx
call fcn.10040304
mov dword [0x1035ff00], 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 + 0x1031fcf0], eax
call fcn.10039f26
pop ecx
mov eax, dword [ebp - 0xb4]
push dword [eax]
mov eax, dword [ebp - 0xb0]
add eax, 3
push eax
lea eax, [ebp - 0x68]
push 0x10098e2c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
jmp 0x1004064a
lea eax, [ebp - 0x68]
push 0x10098e40
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push 8
push eax
call fcn.1003ce54
pop ecx
pop ecx
call fcn.1003eebf
jmp 0x1004077a
cmp ecx, dword [ebp - 0xa4]
jne 0x1004077a
cmp eax, dword [ebp - 0xa4]
je 0x1004077a
imul eax, eax, 0x1cc
cmp byte [edi + 0x26], 0
lea esi, [eax + 0x33fc070]
jne 0x100406b1
mov eax, dword [ebp - 0xb4]
push dword [eax + 0x104]
push dword [eax]
lea eax, [esi + 3]
push eax
lea eax, [ebp - 0x68]
push 0x10098e4c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
jmp 0x100406c2
lea eax, [ebp - 0x68]
push 0x10098e6c
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push 3
push eax
call fcn.1003ce54
xor ebx, ebx
pop ecx
pop ecx
cmp dword [0x103d20c0], ebx
je 0x1004077a
cmp dword [0x1035ff94], 1
jne 0x1004077a
cmp dword [0x103d31f0], 1
jne 0x1004077a
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax - 0x28]
cmp eax, dword [0x103d31e8]
jg 0x1004077a
cmp dword [0x103d72d0], ebx
jle 0x10040731
lea eax, [esi + 3]
push eax
mov eax, dword [0x103d72c8]
push dword [eax + ebx*4]
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
je 0x1004077a
inc ebx
cmp ebx, dword [0x103d72d0]
jl 0x10040710
lea edi, [esi + 3]
push edi
mov esi, 0x103d72c8
call fcn.10001109
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov esi, 0x103d72d4
call fcn.1000117c
push dword [0x103d31ec]
lea eax, [ebp - 0x68]
push edi
push 0x10098e78
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x68]
push 2
push eax
call fcn.1003ce54
mov edi, dword [ebp - 0x9c]
add esp, 0x18
inc dword [ebp - 0xa8]
add dword [ebp - 0xb4], 4
cmp dword [ebp - 0xa8], 0x14
jl 0x10040545
jmp 0x100409c5
cmp ecx, 0xa
jne 0x100409c5
cmp esi, eax
jge 0x100409c5
mov edx, dword [ebp - 0xa0]
cmp edx, eax
jge 0x100409c5
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10041059
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x14]
cmp eax, esi
jne 0x100408e0
cmp edx, esi
je 0x100408e0
mov esi, edx
imul esi, esi, 0x1cc
cmp byte [edi + 0x53], 0
jne 0x10040809
push dword [edi + 0x4f]
lea eax, [esi + 0x33fc073]
push ecx
push eax
lea eax, [ebp - 0x68]
push 0x10098e4c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
jmp 0x1004081a
lea eax, [ebp - 0x68]
push 0x10098e6c
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push 3
push eax
call fcn.1003ce54
cmp dword [0x103d20c0], 0
pop ecx
pop ecx
je 0x100409c5
cmp dword [0x1035ff94], 1
jne 0x100409c5
cmp dword [0x103d31f0], 1
jne 0x100409c5
mov eax, dword [edi + 0x10]
cmp eax, dword [0x103d31e8]
jg 0x100409c5
xor ebx, ebx
cmp dword [0x103d72d0], ebx
jle 0x1004088f
lea eax, [esi + 0x33fc073]
push eax
mov eax, dword [0x103d72c8]
push dword [eax + ebx*4]
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
je 0x100409c5
inc ebx
cmp ebx, dword [0x103d72d0]
jl 0x10040867
lea edi, [esi + 0x33fc073]
push edi
mov esi, 0x103d72c8
call fcn.10001109
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov esi, 0x103d72d4
call fcn.1000117c
push dword [0x103d31ec]
lea eax, [ebp - 0x68]
push edi
push 0x10098e78
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [ebp - 0x68]
push 2
push eax
call fcn.1003ce54
mov edi, dword [ebp - 0x9c]
add esp, 0x18
jmp 0x100409c5
cmp eax, edx
jne 0x100409c5
cmp edx, esi
je 0x100409c5
xor eax, eax
inc eax
cmp byte [edi + 0x53], 0
mov dword [0x1035ffb0], eax
jne 0x100409a2
cmp dword [0x103d4d50], eax
jne 0x10040984
cmp dword [0x1035ff94], eax
jne 0x10040984
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x1d20]
mov ecx, 0xe26ae0
call fcn.10006651
mov esi, eax
test esi, esi
jle 0x1004096a
mov eax, dword [ebp - 0xa4]
cmp dword [esi + 0x14], eax
je 0x1004096a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
sub eax, dword [ecx*4 + 0x1031fcf0]
cmp eax, 0x1388
jb 0x1004096a
mov edi, dword [ebp - 0xa4]
push 1
call fcn.10040304
mov dword [0x1035ff00], 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 + 0x1031fcf0], eax
call fcn.10039f26
pop ecx
push dword [edi + 0x10]
add ebx, 0x33fc073
push ebx
lea eax, [ebp - 0x68]
push 0x10098e2c
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
jmp 0x100409b3
lea eax, [ebp - 0x68]
push 0x10098e40
push eax
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
lea eax, [ebp - 0x68]
push 8
push eax
call fcn.1003ce54
pop ecx
pop ecx
call fcn.1003eebf
mov eax, dword [ebp - 0xac]
mov esi, dword [eax + 0x14]
cmp esi, dword [ebp - 0xa4]
je 0x10041059
cmp dword [ebp - 0xa4], 0xbb8
jge 0x10041059
movzx ebx, word [edi + 4]
cmp ebx, 0x2f
jne 0x10040a29
xor edx, edx
lea eax, [edi + 0x52]
movzx ecx, word [eax]
test ecx, ecx
je 0x10041059
cmp ecx, 0xbb8
jge 0x10040a0f
cmp esi, ecx
je 0x10040a1d
inc edx
add eax, 4
cmp edx, 0x14
jl 0x100409f8
jmp 0x10041059
mov eax, dword [edi + edx*4 + 0x7a]
mov dword [ebp - 0xa8], eax
jmp 0x10040a35
cmp esi, dword [ebp - 0xa0]
jne 0x10041059
cmp ebx, 0x2f
je 0x10040a43
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xa8], eax
cmp dword [0x103c809c], 1
jne 0x10040a82
push 0x1f4
call dword [sym.imp.mfc100.dll_Ordinal_265]
mov dword [esp], 0x10111f10
mov esi, eax
push 0x10098e90
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 [0x103c2944], 1
jne 0x10040acc
xor esi, esi
cmp dword [0x103c2978], esi
jle 0x10040acc
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, 0x103c2c08
call dword [sym.imp.mfc100.dll_Ordinal_6969]
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.100061e0
inc esi
pop ecx
pop ecx
cmp esi, dword [0x103c2978]
jl 0x10040a95
xor edi, edi
mov dword [ebp - 0xa0], edi
cmp dword [0x103d71f8], edi
jle 0x10040b0f
mov esi, dword [ebp - 0xb0]
add esi, 3
mov eax, dword [0x103d71f0]
push esi
push dword [eax + edi*4]
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
je 0x10040b05
inc edi
cmp edi, dword [0x103d71f8]
jl 0x10040ae5
jmp 0x10040b0f
mov dword [ebp - 0xa0], 1
xor eax, eax
inc eax
cmp dword [0x103cb768], eax
jne 0x10040b2f
mov ecx, dword [ebp - 0xb0]
cmp dword [ecx + 0x20], 0xfffffc18
jge 0x10040b2f
mov dword [ebp - 0xa0], eax
cmp dword [0x103cb74c], eax
jne 0x10040b54
mov eax, dword [ebp - 0xa8]
cmp eax, dword [0x103cb750]
jle 0x10040b54
and dword [0x101127c4], 0
mov ebx, dword [ebp - 0xb0]
jmp 0x10040b92
mov ebx, dword [ebp - 0xb0]
call fcn.1003e52c
cmp al, 1
jne 0x10040b92
cmp dword [0x103cb72c], 1
jne 0x10040b92
lea eax, [ebx + 3]
push eax
lea eax, [ebp - 0x84]
push 0x10098ea0
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 2
lea edi, [ebp - 0x84]
call fcn.1003bc30
add esp, 0x10
xor edi, edi
inc edi
cmp dword [0x103cb4b4], edi
jne 0x10040c19
cmp dword [0x1035fef4], edi
jne 0x10040c19
cmp dword [0x101127c4], 5
je 0x10040c19
cmp dword [ebp - 0xa0], 0
jne 0x10040c19
mov eax, dword [0x307809c]
mov byte [eax + 0x4898], 5
lea eax, [ebx + 3]
push eax
lea eax, [ebp - 0x84]
push 0x10098ea8
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [0x103cb4b8]
add esp, 0xc
cmp eax, edi
jne 0x10040bfa
mov eax, dword [0x103cc92c]
cmp eax, edi
jne 0x10040bf2
push 3
jmp 0x10040c0b
test eax, eax
jne 0x10040c09
push 2
jmp 0x10040c0b
test eax, eax
jne 0x10040c09
cmp dword [0x103cc92c], edi
jne 0x10040c09
push edi
jmp 0x10040c0b
push 0
lea eax, [ebp - 0x84]
push eax
call fcn.1003788e
pop ecx
pop ecx
cmp dword [0x103d20c0], 0
jbe 0x10040cf4
cmp dword [0x1035ff94], edi
jne 0x10040cf4
cmp byte [0x10385077], 0
jne 0x10040cf4
lea esi, [ebx + 3]
push esi
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
test eax, eax
je 0x10040cf4
cmp byte [ebx + 1], 1
jne 0x10040c66
fld dword [ebx + 0x3b]
fstp dword [ebp - 0xa8]
fld dword [ebx + 0x43]
jmp 0x10040c78
fld dword [ebx + 0x98]
fstp dword [ebp - 0xa8]
fld dword [ebx + 0xa0]
fstp dword [ebp - 0xa0]
cmp dword [0x103d3038], edi
jne 0x10040cc7
fld dword [0x1012845c]
sub esp, 0x10
fstp dword [esp + 0xc]
fld dword [0x1012fb24]
fstp dword [esp + 8]
fld dword [ebp - 0xa0]
fstp dword [esp + 4]
fld dword [ebp - 0xa8]
fstp dword [esp]
call fcn.100063eb
fild dword [0x103d3040]
add esp, 0x10
fcompp
fnstsw ax
test ah, 0x41
je 0x10040cd0
cmp dword [0x103d3038], 0
jne 0x10040cf4
push esi
push 0x101110c0
call dword [sym.imp.MSVCR100.dll_strcpy]
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xffff
mov dword [0x1035fd34], eax
call fcn.1003a32b
pop ecx
mov edi, dword [sym.imp.MSVCR100.dll_strcmp]
xor ebx, ebx
mov esi, 0x10098ec0
cmp dword [0x103d721c], ebx
jle 0x10040d4b
mov eax, dword [ebp - 0xb0]
lea ecx, [eax + 0x16]
push ecx
movzx ecx, byte [eax + 0x29]
push ecx
add eax, 3
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 [0x103d7214]
push dword [eax + ebx*4]
call edi
add esp, 0x1c
test eax, eax
je 0x10040d7e
inc ebx
cmp ebx, dword [0x103d721c]
jl 0x10040d09
mov ebx, dword [ebp - 0xb0]
lea eax, [ebx + 3]
push eax
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
test eax, eax
jne 0x10040d9b
push ebx
mov esi, 0x103d722c
call fcn.1000117c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov esi, 0x103d7238
call fcn.1000117c
jmp 0x10040de1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101127d4], eax
mov eax, dword [0x103d7220]
mov ebx, dword [eax + ebx*4]
inc dword [ebx]
mov ebx, dword [ebp - 0xb0]
jmp 0x10040de1
lea eax, [ebx + 0x16]
push eax
movzx eax, byte [ebx + 0x29]
push eax
lea eax, [ebx + 3]
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, 0x103d7214
call fcn.10001109
push 1
mov esi, 0x103d7220
call fcn.1000117c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101127d4], eax
cmp dword [0x103cb700], 1
jne 0x10040f10
and dword [ebp - 0x9c], 0
mov esi, 0x305b5c0
mov eax, dword [esi]
test eax, eax
je 0x10040e1b
cmp byte [eax + 0x330], 0
je 0x10040e1b
lea ecx, [ebx + 3]
push ecx
add eax, 0x338
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x10040e28
add esi, 4
cmp esi, 0x305b5dc
jl 0x10040dfa
jmp 0x10040e32
mov dword [ebp - 0x9c], 1
xor esi, esi
cmp dword [0x103d71f8], esi
jle 0x10040e65
lea eax, [ebx + 3]
push eax
mov eax, dword [0x103d71f0]
push dword [eax + esi*4]
call edi
pop ecx
pop ecx
test eax, eax
je 0x10040e5b
inc esi
cmp esi, dword [0x103d71f8]
jl 0x10040e3c
jmp 0x10040e65
mov dword [ebp - 0x9c], 1
xor esi, esi
cmp dword [0x103d71ec], esi
jle 0x10040e98
lea eax, [ebx + 3]
push eax
mov eax, dword [0x103d71e4]
push dword [eax + esi*4]
call edi
pop ecx
pop ecx
test eax, eax
je 0x10040e8e
inc esi
cmp esi, dword [0x103d71ec]
jl 0x10040e6f
jmp 0x10040e98
mov dword [ebp - 0x9c], 1
cmp dword [ebp - 0x9c], 0
jne 0x10040f10
cmp dword [0x103cc164], 1
jne 0x10040ecb
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x14]
imul eax, eax, 0x1cc
add eax, 0x33fc086
push eax
lea eax, [ebx + 0x16]
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x10040f10
cmp dword [0x103cb704], 1
jne 0x10040eee
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x14]
mov cl, byte [ebx + 0x28]
imul eax, eax, 0x1cc
cmp cl, byte [eax + 0x33fc098]
je 0x10040f10
lea esi, [ebx + 3]
push esi
push 0
push 0x180
push dword [0x103cb4e0]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, 0x103d71e4
call fcn.10001109
cmp dword [0x1035fef4], 0
je 0x10041059
inc dword [0x103c24c8]
lea eax, [ebx + 3]
push eax
mov esi, 0x10128428
push esi
mov dword [ebp - 0x9c], eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x10041028
push dword [ebp - 0x9c]
push esi
call dword [sym.imp.MSVCR100.dll_strcpy]
lea edi, [ebx + 0x16]
push edi
mov dword [0x103c24c8], 1
call dword [sym.imp.MSVCR100.dll_strlen]
mov esi, dword [ebp - 0xac]
fld dword [esi + 0x1f6c]
add esp, 0xc
test eax, eax
jne 0x10040fca
call fcn.100840a0
fld dword [esi + 0x1f74]
mov edi, eax
call fcn.100840a0
push dword [0x3052d08]
lea esi, [ebp - 0x98]
mov ebx, eax
call fcn.10006e6d
push ebx
push edi
mov eax, esi
push eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x84]
push 0x10098ed4
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 3
lea edi, [ebp - 0x84]
call fcn.1003bc30
add esp, 0x20
jmp 0x10041059
call fcn.100840a0
fld dword [esi + 0x1f74]
mov ebx, eax
call fcn.100840a0
push dword [0x3052d08]
lea esi, [ebp - 0x98]
mov dword [ebp - 0xa0], eax
call fcn.10006e6d
push dword [ebp - 0xa0]
mov eax, esi
push ebx
push eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x84]
push edi
push 0x10098ef0
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 3
lea edi, [ebp - 0x84]
call fcn.1003bc30
add esp, 0x24
jmp 0x10041059
cmp dword [0x103c24c8], 5
jne 0x10041059
push dword [ebp - 0x9c]
lea eax, [ebp - 0x84]
push 0x10098f14
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
push 3
lea edi, [ebp - 0x84]
call fcn.1003bc30
add esp, 0x10
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1008344f
leave
ret