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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x49d3e7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0xffffffff
je 0x49d386
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 dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], 0
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x4b4]
call fcn.004910dc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [ebx + 0x4b4]
call fcn.00490ee0
mov eax, dword [ebx + 0x4b4]
call fcn.00490ff8
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x49d400
mov edx, 0x49d420
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov eax, dword [ebp - 0x40]
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 - 0x50], eax
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x10
lea ecx, [ebp - 0x48]
mov eax, ebx
pop edx
call fcn.0049edf0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x3ec]
call fcn.0044cdd0
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x49d438
mov edx, 0x49d448
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0x54]
mov eax, dword [ebx + 0x3f0]
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 - 0x30], eax
mov eax, dword [ebp - 0x30]
call fcn.00402d34
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
and eax, 0x80000003
jns 0x49d0f9
dec eax
or eax, 0xfffffffc
inc eax
sub eax, 1
jb 0x49d108
je 0x49d10e
dec eax
je 0x49d114
dec eax
je 0x49d11a
jmp 0x49d11e
mov byte [ebp - 0x35], 0xff
jmp 0x49d11e
mov byte [ebp - 0x35], 0xaa
jmp 0x49d11e
mov byte [ebp - 0x35], 0x55
jmp 0x49d11e
mov byte [ebp - 0x35], 0
movzx ecx, byte [ebp - 0x35]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.00407c98
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004099e8
push 0
push 0x20000
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
call fcn.00405e08
mov edx, eax
mov eax, dword [ebx + 0x3bc]
call fcn.00484260
mov esi, dword [ebx + 0x3bc]
mov eax, esi
call fcn.00484050
mov edx, eax
mov eax, esi
call fcn.00484270
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
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 - 0x2c]
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 0x49d242
cmp eax, dword [ebp - 0x18]
jne 0x49d242
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], edx
add dword [ebp - 0x34], esi
fild qword [ebp - 0x28]
fdiv dword [0x49d454]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], eax
fild qword [ebp - 0x48]
fdiv dword [0x49d458]
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 0x49d30d
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 - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x49d464
mov edx, 0x49d4a0
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov eax, dword [ebp - 0x5c]
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 - 0x48], eax
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0x10
lea ecx, [ebp - 0x6c]
mov eax, ebx
pop edx
call fcn.0049edf0
mov edx, dword [ebp - 0x58]
mov ecx, 0xff
mov eax, ebx
call fcn.0049e98c
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x49d4c0
mov edx, 0x49d4e4
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0x70]
lea eax, [edi + 8]
call fcn.00404ec0
inc dword [edi + 4]
lea edx, [ebp - 0x74]
mov eax, dword [edi + 4]
call fcn.0040956c
mov edx, dword [ebp - 0x74]
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
mov eax, dword [ebx + 0x3bc]
call fcn.00484270
mov eax, dword [0x4a54ac]
mov eax, dword [eax]
call fcn.0046b39c
mov eax, dword [ebp - 0x30]
xor edx, edx
cmp edx, dword [ebp - 0x14]
jne 0x49d349
cmp eax, dword [ebp - 0x18]
ja 0x49d358
jmp 0x49d34b
jg 0x49d358
cmp byte [ebx + 0x4b9], 0
je 0x49d17c
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.00402d50
cmp byte [ebx + 0x4b9], 0
je 0x49d36f
mov byte [edi], 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov cl, 5
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0049ad2c
jmp 0x49d3b2
mov byte [edi], 1
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x49d4fc
mov edx, 0x49d514
mov eax, dword [ebx + 0x4d8]
call fcn.00492f6c
mov edx, dword [ebp - 0x78]
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 0x49d3ee
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00404e90
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00404e90
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00404e90
ret