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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0xb899f0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0xb89d3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0x47c], esi
mov eax, dword [esi + 0x24]
test eax, eax
je 0xb89a1e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0xb89b3d
movzx eax, word [esi + 0x28]
test ax, ax
jne 0xb89b33
cmp byte [esi + 0x30], 0
jne 0xb89b33
xor edx, edx
mov eax, dword [esi + 0x24]
call fcn.00a1a908
mov edi, eax
test edi, edi
jle 0xb89b3d
cmp edi, 0xffff
jg 0xb89b3d
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 0x34], eax
cmp dword [ebx + 0x478], 0
je 0xb89a79
lea eax, [ebx + 0x478]
call fcn.00a20f40
xor ecx, ecx
mov dl, 1
mov eax, dword [0xb10c78]
call fcn.00b12c04
mov dword [ebx + 0x478], eax
xor edx, edx
mov eax, dword [ebx + 0x478]
call fcn.00b12518
xor edx, edx
mov eax, dword [ebx + 0x478]
call fcn.00b125d8
mov eax, dword [ebx + 0x478]
mov dword [eax + 0x54], ebx
mov dword [eax + 0x50], 0xb89ef4
mov eax, dword [ebx + 0x478]
mov dword [eax + 0x64], ebx
mov dword [eax + 0x60], 0xb89f64
mov eax, dword [ebx + 0x478]
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x88], 0xb89f74
mov eax, dword [ebx + 0x478]
mov dword [eax + 0x7c], ebx
mov dword [eax + 0x78], 0xb89f8c
mov eax, dword [esi + 0x14]
call fcn.00af0c84
test al, al
je 0xb89b09
mov edx, dword [esi + 0x14]
mov eax, dword [ebx + 0x478]
call fcn.00b12558
jmp 0xb89b17
mov edx, dword [esi + 0x14]
mov eax, dword [ebx + 0x478]
call fcn.00b125d8
mov edx, edi
mov eax, dword [ebx + 0x478]
call fcn.00b12658
mov dl, 1
mov eax, dword [ebx + 0x478]
call fcn.00b12518
jmp 0xb89b3d
cmp ax, 1
je 0xb89b3d
cmp ax, 2
mov eax, dword [ebx + 0x47c]
cmp byte [eax + 0x2a], 0
je 0xb89b68
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebx + 0x47c]
sub eax, dword [edx + 0x2c]
cmp eax, 0x2bf20
jb 0xb89b68
mov eax, dword [ebx + 0x47c]
mov byte [eax + 0x2a], 0
mov eax, dword [ebx + 0x47c]
cmp byte [eax + 0x2a], 0
je 0xb89bc2
mov eax, dword [ebx + 0x3fc]
mov edx, dword [eax + 0x67b]
mov eax, dword [ebx + 0x380]
mov eax, dword [eax + 0x68]
call fcn.00a3d700
lea edx, [ebp - 8]
mov eax, dword [0xbaa07c]
call fcn.00a1779c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00ae2058
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x380]
call fcn.00a67e0c
mov dl, 1
mov eax, ebx
call fcn.00b8a39c
jmp 0xb89d20
mov eax, dword [ebx + 0x3fc]
mov edx, dword [eax + 0x677]
mov eax, dword [ebx + 0x380]
mov eax, dword [eax + 0x68]
call fcn.00a3d700
lea edx, [ebp - 0x10]
mov eax, dword [0xba9ea4]
call fcn.00a1779c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00ae2058
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x380]
call fcn.00a67e0c
mov eax, dword [0xbaa000]
mov eax, dword [eax]
mov eax, dword [eax + 0x394]
mov eax, dword [eax + 0x68]
mov edx, 0xffffff
call fcn.00a3d700
lea edx, [ebp - 0x18]
mov eax, dword [0xba9ea4]
call fcn.00a1779c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00ae2058
mov edx, dword [ebp - 0x14]
mov eax, dword [0xbaa000]
mov eax, dword [eax]
mov eax, dword [eax + 0x394]
call fcn.00a67e0c
mov eax, dword [0xba9e7c]
mov eax, dword [eax]
mov eax, dword [eax + 0x37c]
mov eax, dword [eax + 0x68]
mov edx, 0xffffff
call fcn.00a3d700
lea edx, [ebp - 0x20]
mov eax, dword [0xba9ea4]
call fcn.00a1779c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00ae2058
mov edx, dword [ebp - 0x1c]
mov eax, dword [0xba9e7c]
mov eax, dword [eax]
mov eax, dword [eax + 0x37c]
call fcn.00a67e0c
mov eax, dword [0xba9c34]
mov eax, dword [eax]
mov eax, dword [eax + 0x374]
mov eax, dword [eax + 0x68]
mov edx, 0xffffff
call fcn.00a3d700
lea edx, [ebp - 0x28]
mov eax, dword [0xba9ea4]
call fcn.00a1779c
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00ae2058
mov edx, dword [ebp - 0x24]
mov eax, dword [0xba9c34]
mov eax, dword [eax]
mov eax, dword [eax + 0x374]
call fcn.00a67e0c
mov dl, 1
mov eax, ebx
call fcn.00b8a39c
mov byte [ebx + 0x402], 0
lea eax, [ebx + 0x404]
call fcn.00a153f0
lea eax, [ebx + 0x408]
call fcn.00a153f0
lea eax, [ebx + 0x40c]
call fcn.00a153f0
xor eax, eax
mov dword [ebx + 0x410], eax
push 1
movzx ecx, word [esi + 0x18]
mov edx, dword [esi + 0x14]
mov eax, ebx
call fcn.00b898d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb89d42
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00a15414
ret