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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 8], eax
mov ecx, 7
lea eax, [ebp - 0x2c]
mov edx, 0x40107c
call fcn.00403980
xor eax, eax
push ebp
push 0x4991e8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x49e558], 0
je 0x498958
xor eax, eax
call fcn.0047fa5c
mov byte [ebp - 1], 0
mov eax, dword [0x49e458]
shr eax, 0x10
cmp eax, 0x600
setge byte [0x49e44f]
xor edx, edx
push ebp
push 0x499145
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x49e568], 0
je 0x498993
mov dl, 1
mov eax, dword [0x49e568]
call fcn.00457950
cmp byte [0x49e556], 0
je 0x498a00
xor eax, eax
push ebp
push 0x4989d3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49e55c], 0
jne 0x4989bf
mov eax, 0x499200
call fcn.004582f8
jmp 0x4989c9
mov eax, dword [0x49e55c]
call fcn.004584b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x498a00
mov eax, 0x49923c
call fcn.0045850c
mov edx, 0x499270
lea eax, [ebp - 0x30]
call fcn.00403494
lea eax, [ebp - 0x30]
mov edx, dword [0x49e540]
call fcn.0040357c
mov eax, dword [ebp - 0x30]
call fcn.0045850c
mov edx, 0x499294
lea eax, [ebp - 0x30]
call fcn.00403494
lea eax, [ebp - 0x30]
mov edx, dword [0x49e544]
call fcn.0040357c
mov eax, dword [ebp - 0x30]
call fcn.0045850c
mov edx, 0x4992ac
lea eax, [ebp - 0x30]
call fcn.00403494
lea eax, [ebp - 0x34]
call fcn.0042d77c
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.0040357c
mov eax, dword [ebp - 0x30]
call fcn.0045850c
call fcn.0047faf8
xor eax, eax
call fcn.004982ec
mov dword [0x49e54c], eax
mov dl, 1
mov eax, 0x497888
call fcn.0045a944
mov dword [0x49c110], eax
mov ecx, dword [0x49e544]
mov edx, dword [0x49e54c]
mov eax, dword [0x49c110]
call fcn.0045cf44
lea ecx, [ebp - 0x30]
mov eax, dword [0x49c110]
mov edx, dword [eax + 0x18]
mov al, 0xb7
call fcn.00451b9c
mov edx, dword [ebp - 0x30]
mov eax, 0x49e550
call fcn.00403450
mov eax, dword [0x49c110]
test byte [eax + 0x1d], 0x20
je 0x498b0c
cmp byte [0x49e446], 0
jne 0x498b0c
push 1
push 1
mov eax, dword [0x49e550]
call fcn.00403738
push eax
mov eax, dword [0x49df50]
call fcn.00403738
mov ecx, 0x30
pop edx
call fcn.004801e8
call fcn.00409030
mov eax, dword [0x49c110]
test byte [eax + 0x1d], 1
je 0x498b49
call fcn.0042e708
test al, al
jne 0x498b49
push 1
push 1
mov eax, dword [0x49e550]
call fcn.00403738
push eax
mov eax, dword [0x49de30]
call fcn.00403738
mov ecx, 0x30
pop edx
call fcn.004801e8
call fcn.00409030
mov eax, 0x49e54c
call fcn.0042e7d4
mov al, 2
call fcn.004982ec
mov dword [0x49e54c], eax
lea eax, [ebp - 0x2c]
push eax
push 6
mov ecx, 0x5050900
mov dx, 0x20
mov eax, dword [0x49c110]
call fcn.0045ae24
test al, al
jne 0x498b86
mov eax, 0x4992d0
call fcn.00453aac
cmp dword [0x49e568], 0
je 0x498b9f
lea eax, [ebp - 8]
mov edx, dword [0x49e014]
call fcn.00403494
jmp 0x498baa
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x2c]
call fcn.004988c4
mov eax, dword [ebp - 0x28]
call fcn.00403574
cmp eax, 0x20
je 0x498bc1
mov eax, 0x499320
call fcn.00453aac
mov edx, 0x49e570
mov eax, dword [ebp - 0x28]
mov ecx, 0x20
call fcn.00402738
mov dword [0x49b784], 0x49e570
mov eax, dword [0x49c110]
cmp byte [eax + 0x10], 0
je 0x498c04
cmp byte [0x49e446], 0
jne 0x498bfb
mov eax, 0x499348
call fcn.00453aac
mov al, 1
call fcn.00480640
jmp 0x498c0b
xor eax, eax
call fcn.00480640
call fcn.0047dea0
cmp dword [ebp - 8], 0
je 0x498cf1
call fcn.0047d978
call fcn.0047e184
mov eax, 0x49e1c8
mov edx, dword [0x49e540]
call fcn.00403450
mov eax, 0x49e1cc
mov edx, dword [0x49c110]
mov edx, dword [edx + 0x14]
call fcn.00403450
mov al, byte [0x49e557]
or al, byte [0x49e558]
mov byte [0x49e1e0], al
mov eax, 0x49e1d0
mov edx, dword [ebp - 0x24]
call fcn.00403450
mov eax, 0x49e1d4
mov edx, dword [ebp - 0x20]
call fcn.00403450
mov eax, 0x49e1d8
mov edx, dword [ebp - 0x1c]
call fcn.00403450
mov eax, 0x49e1dc
mov edx, dword [ebp - 0x18]
call fcn.00403450
mov eax, dword [ebp - 0x14]
call fcn.00403574
mov edx, eax
mov eax, dword [ebp - 0x14]
call fcn.00498814
mov dl, 1
mov eax, 0x495ea0
call fcn.00496438
mov dword [0x49e490], eax
mov eax, dword [0x49e490]
mov dword [eax + 0xc], 0x47f568
mov eax, dword [0x49e490]
mov dword [eax + 0x10], 0x47f74c
mov eax, dword [0x49e490]
mov dword [eax + 0x14], 0x47f758
mov eax, dword [0x49e490]
mov dword [eax + 0x18], 0x47f764
mov ecx, dword [0x49e018]
mov edx, dword [ebp - 8]
mov eax, dword [0x49e490]
call fcn.004964f0
xor edx, edx
push ebp
push 0x499105
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x49904c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x49e490], 0
je 0x498d7d
xor edx, edx
push ebp
push 0x498d51
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 1
xor eax, eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea ecx, [ebp - 0x3c]
mov edx, 0x499394
mov eax, dword [0x49e490]
call fcn.00496688
pop dword fs:[0]
add esp, 8
jmp 0x498d6a
test al, al
jne 0x498d7d
mov eax, 0x4993ec
call fcn.0045850c
call fcn.00409030
cmp byte [0x49e557], 0
jne 0x498db7
cmp byte [0x49e558], 0
jne 0x498db7
push 0x124
push 1
push 6
mov eax, dword [0x49c110]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x49e550]
mov al, 0x27
call fcn.00497b6c
cmp eax, 6
je 0x498db7
call fcn.00409030
xor edx, edx
xor eax, eax
call fcn.004981d0
jmp 0x498de5
push 0x31
push 1
push 2
mov eax, dword [0x49c110]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x49e550]
mov al, 0xbd
call fcn.00497b6c
dec eax
je 0x498de5
call fcn.00409030
mov eax, dword [0x49c110]
call fcn.0045ae60
test al, al
jne 0x498dc2
jmp 0x498e06
push 0xa
call sub.kernel32.dll_Sleep
mov eax, dword [0x49d62c]
call fcn.004248fc
cmp byte [0x49e450], 0
jne 0x498df5
mov byte [0x49e44f], 0
lea ecx, [ebp - 0x30]
mov eax, dword [0x49c110]
mov edx, dword [eax + 0x18]
mov al, 0xa7
call fcn.00451b9c
mov edx, dword [ebp - 0x30]
mov eax, dword [0x49d62c]
mov eax, dword [eax + 0x20]
call fcn.0042eef8
call fcn.00497a04
xor edx, edx
mov al, 1
call fcn.004981d0
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
mov eax, dword [0x49c110]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x24], edx
mov ecx, 0x497ddc
mov dl, 1
mov eax, dword [0x49c110]
call fcn.0045b970
mov byte [ebp - 9], al
xor eax, eax
mov al, byte [ebp - 9]
mov eax, dword [eax*4 + 0x49bb10]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x499424
call fcn.00458718
mov eax, dword [0x49c110]
cmp byte [eax + 0x1c], 0
jne 0x498ea9
mov eax, dword [0x49c110]
test byte [eax + 0x1d], 8
jne 0x498ea9
xor eax, eax
jmp 0x498eab
mov al, 1
mov byte [ebp - 0xa], al
cmp dword [0x49e490], 0
je 0x498f44
mov edx, 0x49943c
mov eax, dword [0x49e490]
call fcn.00496578
test al, al
je 0x498f44
cmp byte [ebp - 0xa], 0
jne 0x498f3a
xor eax, eax
push ebp
push 0x498f1f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea ecx, [ebp - 0x3c]
mov edx, 0x49943c
mov eax, dword [0x49e490]
call fcn.00496688
test al, al
je 0x498f15
mov byte [ebp - 0xa], 1
mov eax, 0x49945c
call fcn.0045850c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x498f44
mov eax, 0x4994d4
call fcn.0045850c
xor eax, eax
mov al, byte [ebp - 0xa]
mov eax, dword [eax*4 + 0x49bb10]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x499534
call fcn.00458718
cmp byte [0x49e558], 0
jne 0x498f9c
mov eax, dword [0x49d62c]
call fcn.004248fc
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
cmp eax, 0x3e8
jae 0x498f9c
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x498f6f
mov eax, 0x49e52c
call fcn.0042e7d4
mov dl, 1
mov al, 2
call fcn.004981d0
cmp byte [ebp - 0xa], 0
jne 0x498ff0
cmp byte [0x49e557], 0
jne 0x499039
cmp byte [0x49e558], 0
jne 0x499039
push 0x10040
push 1
push 1
mov eax, dword [0x49c110]
mov edx, dword [eax + 0x18]
xor eax, eax
mov al, byte [ebp - 9]
mov al, byte [eax + 0x49c11c]
mov ecx, dword [0x49e550]
call fcn.00497b6c
jmp 0x499039
cmp byte [0x49e559], 0
jne 0x499029
cmp byte [0x49e558], 0
jne 0x499025
push 0x10024
push 1
push 6
mov eax, dword [0x49c110]
mov edx, dword [eax + 0x18]
mov ecx, dword [0x49e550]
mov al, 0xbb
call fcn.00497b6c
cmp eax, 6
jne 0x499029
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
jne 0x499039
mov eax, 0x499558
call fcn.0045850c
mov dl, 1
mov al, 3
call fcn.004981d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x499060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49910f
xor eax, eax
push ebp
push 0x49908f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x49e52c
call fcn.0042e7d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49909e
cmp dword [0x49e490], 0
je 0x4990f7
xor eax, eax
push ebp
push 0x4990de
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
lea ecx, [ebp - 0x3c]
mov edx, 0x499588
mov eax, dword [0x49e490]
call fcn.004965d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4990f7
mov eax, dword [0x49d62c]
mov eax, dword [eax + 0x20]
call fcn.0042efa4
ret