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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1a
push 0
push 0
dec ecx
jne 0x49ae95
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x49b86e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0xffffffff
je 0x49b7f4
cmp dword [ebp + 0x18], 0
jne 0x49aed7
cmp dword [ebp + 0x14], 0
jbe 0x49b7f4
jmp 0x49aedd
jle 0x49b7f4
mov byte [edi], 0
lea eax, [edi + 8]
call fcn.00404e6c
xor eax, eax
mov dword [edi + 4], eax
mov byte [ebx + 0x4b9], 0
mov byte [ebp - 0x52], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x4b4]
call fcn.004910dc
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov eax, dword [ebx + 0x4b4]
call fcn.00490ee0
push 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x49b888
mov edx, 0x49b8a8
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov eax, dword [ebp - 0x5c]
push eax
push 0
push 0x200
mov eax, dword [ebx + 0x4b4]
mov edx, dword [eax + 0x1bc]
mov eax, dword [eax + 0x1b8]
call fcn.00405e08
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0x10
lea ecx, [ebp - 0x64]
mov eax, ebx
pop edx
call fcn.0049edf0
mov edx, dword [ebp - 0x58]
mov eax, dword [ebx + 0x3ec]
call fcn.0044cdd0
xor ecx, ecx
mov edx, esi
mov eax, 0x100000
call fcn.00491440
mov ecx, eax
mov eax, dword [ebx + 0x4b4]
mov edx, dword [eax + 0x1b8]
mov eax, ebx
call fcn.0049d564
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
call fcn.00402d34
mov dword [ebp - 0x44], eax
mov esi, dword [ebx + 0x3bc]
mov eax, esi
call fcn.00484050
mov edx, eax
mov eax, esi
call fcn.00484270
mov byte [ebp - 0x53], 0
movzx eax, byte [ebp + 0x10]
sub al, 1
jb 0x49b018
je 0x49b041
dec eax
sub al, 2
jb 0x49b06d
jmp 0x49b093
mov byte [ebp - 0x51], 0xaa
push 0
push 0x20000
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
call fcn.00405e08
add eax, eax
mov edx, eax
add edx, edx
mov eax, dword [ebx + 0x3bc]
call fcn.00484260
jmp 0x49b093
mov byte [ebp - 0x51], 1
push 0
push 0x20000
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
call fcn.00405e08
add eax, eax
lea eax, [eax + eax*8]
mov edx, eax
add edx, edx
mov eax, dword [ebx + 0x3bc]
call fcn.00484260
jmp 0x49b093
movzx eax, byte [ebp + 0xc]
mov byte [ebp - 0x51], al
push 0
push 0x20000
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
call fcn.00405e08
mov edx, eax
mov eax, dword [ebx + 0x3bc]
call fcn.00484260
cmp byte [ebp + 0x10], 3
je 0x49b319
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x49b8c0
mov edx, 0x49b8d0
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0x70]
mov eax, dword [ebx + 0x3f0]
call fcn.0044cdd0
mov eax, dword [0x4a54ac]
mov eax, dword [eax]
call fcn.0046b39c
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004099e8
movzx ecx, byte [ebp - 0x51]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
call fcn.00407c98
mov eax, dword [ebx + 0x4b4]
call fcn.00490ff8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x48]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
push edx
push eax
mov eax, ebx
call fcn.0049d524
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call sub.kernel32.dll_GetTickCount
mov esi, eax
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004099bc
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call sub.kernel32.dll_GetTickCount
mov edx, eax
sub edx, esi
mov ecx, 1
mov eax, ebx
call fcn.0049d570
mov esi, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jne 0x49b1ca
cmp eax, dword [ebp - 0x18]
jne 0x49b1ca
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x40], eax
adc dword [ebp - 0x3c], edx
add dword [ebp - 0x50], esi
fild qword [ebp - 0x40]
fdiv dword [0x49b8dc]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x60], eax
fild qword [ebp - 0x64]
fdiv dword [0x49b8e0]
fdivp st(1)
fstp qword [ebx + 0x4d0]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x4b4]
call fcn.00490d04
mov edx, 0x800080
call fcn.00490210
jmp 0x49b2aa
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x4b4]
call fcn.00490d04
mov edx, 0xff
call fcn.00490210
push 1
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x49b8ec
mov edx, 0x49b928
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x88]
mov eax, ebx
pop edx
call fcn.0049edf0
mov edx, dword [ebp - 0x74]
mov ecx, 0xff
mov eax, ebx
call fcn.0049e98c
lea eax, [ebp - 0x8c]
push eax
mov ecx, 0x49b948
mov edx, 0x49b96c
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0x8c]
lea eax, [edi + 8]
call fcn.00404ec0
inc dword [edi + 4]
lea edx, [ebp - 0x90]
mov eax, dword [edi + 4]
call fcn.0040956c
mov edx, dword [ebp - 0x90]
mov eax, dword [ebx + 0x384]
call fcn.0044cdd0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004099e8
push 0
push 0x20000
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405e08
mov edx, eax
add edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x3bc]
call fcn.00484270
mov eax, dword [0x4a54ac]
mov eax, dword [eax]
call fcn.0046b39c
mov eax, dword [ebp - 0x48]
xor edx, edx
cmp edx, dword [ebp - 0x14]
jne 0x49b2e9
cmp eax, dword [ebp - 0x18]
ja 0x49b2f8
jmp 0x49b2eb
jg 0x49b2f8
cmp byte [ebx + 0x4b9], 0
je 0x49b104
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FlushFileBuffers
push 0
push 0x20000
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405e08
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
cmp byte [ebp + 0x10], 2
je 0x49b746
cmp byte [ebx + 0x4b9], 0
jne 0x49b746
cmp byte [edi], 0
jne 0x49b746
lea eax, [ebp - 0x94]
push eax
mov ecx, 0x49b984
mov edx, 0x49b998
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0x94]
mov eax, dword [ebx + 0x3f0]
call fcn.0044cdd0
cmp byte [ebp + 0x10], 3
jne 0x49b377
mov eax, dword [ebx + 0x4b4]
call fcn.00490ff8
mov eax, dword [0x4a54ac]
mov eax, dword [eax]
call fcn.0046b39c
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004099e8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 0x48]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.0049d524
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call sub.kernel32.dll_GetTickCount
mov esi, eax
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00409990
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
call sub.kernel32.dll_GetTickCount
mov edx, eax
sub edx, esi
mov ecx, 1
mov eax, ebx
call fcn.0049d570
mov esi, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jne 0x49b5a2
cmp eax, dword [ebp - 0x18]
jne 0x49b5a2
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x38], eax
adc dword [ebp - 0x34], edx
add dword [ebp - 0x4c], esi
fild qword [ebp - 0x38]
fdiv dword [0x49b8dc]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
xor eax, eax
mov dword [ebp - 0x60], eax
fild qword [ebp - 0x64]
fdiv dword [0x49b8e0]
fdivp st(1)
fstp qword [ebx + 0x4c8]
wait
movzx eax, byte [ebp - 0x51]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x44]
mov eax, ebx
call fcn.0049d57c
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0xffffffff
jne 0x49b46e
cmp dword [ebp - 0x28], 0xffffffff
je 0x49b5b0
push 2
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x64]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 0xac], 0x10
lea ecx, [ebp - 0xb4]
movzx edx, byte [ebp - 0x51]
mov eax, ebx
call fcn.0049eadc
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0xb
mov eax, dword [ebp - 0x44]
cdq
add eax, dword [ebp - 0x28]
adc edx, dword [ebp - 0x24]
movzx edx, byte [eax]
lea ecx, [ebp - 0xb8]
mov eax, ebx
call fcn.0049eadc
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 0x9c], 0xb
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xbc]
push eax
mov ecx, 0x49b9b0
mov edx, 0x49b9ec
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0xbc]
mov eax, ebx
pop ecx
call fcn.0049edf0
mov edx, dword [ebp - 0x98]
mov ecx, 0xff
mov eax, ebx
call fcn.0049e98c
lea eax, [ebp - 0xc0]
push eax
mov ecx, 0x49b948
mov edx, 0x49b96c
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0xc0]
lea eax, [edi + 8]
call fcn.00404ec0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x4b4]
call fcn.00490d04
mov edx, 0xffff
call fcn.00490210
inc dword [edi + 4]
lea edx, [ebp - 0xc4]
mov eax, dword [edi + 4]
call fcn.0040956c
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebx + 0x384]
call fcn.0044cdd0
jmp 0x49b5b0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
cmp dword [ebp - 0x24], 0xffffffff
jne 0x49b6e0
cmp dword [ebp - 0x28], 0xffffffff
jne 0x49b6e0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x14]
jne 0x49b5f4
cmp eax, dword [ebp - 0x18]
jne 0x49b5f4
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x4b4]
call fcn.00490d04
mov edx, 0x8000
call fcn.00490210
jmp 0x49b6e0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov eax, dword [ebx + 0x4b4]
call fcn.00490d04
mov edx, 0xff
call fcn.00490210
push 1
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xcc]
push eax
mov ecx, 0x49ba0c
mov edx, 0x49ba48
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov eax, dword [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], edx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x88]
mov eax, ebx
pop edx
call fcn.0049edf0
mov edx, dword [ebp - 0xc8]
mov ecx, 0xff
mov eax, ebx
call fcn.0049e98c
lea eax, [ebp - 0xd0]
push eax
mov ecx, 0x49b948
mov edx, 0x49b96c
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0xd0]
lea eax, [edi + 8]
call fcn.00404ec0
inc dword [edi + 4]
lea edx, [ebp - 0xd4]
mov eax, dword [edi + 4]
call fcn.0040956c
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebx + 0x384]
call fcn.0044cdd0
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004099e8
push 0
push 0x20000
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405e08
mov edx, eax
add edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x3bc]
call fcn.00484270
mov eax, dword [0x4a54ac]
mov eax, dword [eax]
call fcn.0046b39c
mov eax, dword [ebp - 0x48]
xor edx, edx
cmp edx, dword [ebp - 0x14]
jne 0x49b71f
cmp eax, dword [ebp - 0x18]
ja 0x49b72e
jmp 0x49b721
jg 0x49b72e
cmp byte [ebx + 0x4b9], 0
je 0x49b39d
push 0
push 0x20000
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405e08
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
movzx eax, byte [ebp + 0x10]
sub al, 1
jb 0x49b757
je 0x49b769
dec eax
sub al, 2
jb 0x49b7bf
jmp 0x49b7c3
cmp byte [ebp - 0x51], 0xaa
jne 0x49b763
mov byte [ebp - 0x51], 0x55
jmp 0x49b7c3
mov byte [ebp - 0x52], 1
jmp 0x49b7c3
movzx eax, byte [ebp - 0x53]
sub al, 1
jb 0x49b779
je 0x49b793
dec al
je 0x49b7ad
jmp 0x49b7c3
cmp byte [ebp - 0x51], 0x80
je 0x49b789
lea eax, [ebp - 0x51]
call fcn.0049ae88
jmp 0x49b7c3
mov byte [ebp - 0x53], 1
mov byte [ebp - 0x51], 0xfe
jmp 0x49b7c3
cmp byte [ebp - 0x51], 0x7f
je 0x49b7a3
lea eax, [ebp - 0x51]
call fcn.0049ae88
jmp 0x49b7c3
mov byte [ebp - 0x53], 2
mov byte [ebp - 0x51], 0xaa
jmp 0x49b7c3
cmp byte [ebp - 0x51], 0xaa
jne 0x49b7b9
mov byte [ebp - 0x51], 0x55
jmp 0x49b7c3
mov byte [ebp - 0x52], 1
jmp 0x49b7c3
mov byte [ebp - 0x52], 1
cmp byte [ebp - 0x52], 0
jne 0x49b7db
cmp byte [ebx + 0x4b9], 0
jne 0x49b7db
cmp byte [edi], 0
je 0x49b093
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
call fcn.00402d50
cmp byte [ebx + 0x4b9], 0
je 0x49b826
mov byte [edi], 4
jmp 0x49b826
mov byte [edi], 1
lea eax, [ebp - 0xd8]
push eax
mov ecx, 0x49ba64
mov edx, 0x49ba7c
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0xd8]
lea eax, [edi + 8]
call fcn.00404ec0
xor eax, eax
mov dword [edi + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b875
lea eax, [ebp - 0xd8]
mov edx, 0xa
call fcn.00404e90
lea eax, [ebp - 0x98]
mov edx, 4
call fcn.00404e90
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00404e90
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00404e90
ret