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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0xb899ec
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0xb89d37
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0x47c], esi
mov eax, dword [esi + 0x24]
test eax, eax
je 0xb89a1a
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0xb89b39
movzx eax, word [esi + 0x28]
test ax, ax
jne 0xb89b2f
cmp byte [esi + 0x30], 0
jne 0xb89b2f
xor edx, edx
mov eax, dword [esi + 0x24]
call fcn.00a1a908
mov edi, eax
test edi, edi
jle 0xb89b39
cmp edi, 0xffff
jg 0xb89b39
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 0x34], eax
cmp dword [ebx + 0x478], 0
je 0xb89a75
lea eax, [ebx + 0x478]
call fcn.00a20f40
xor ecx, ecx
mov dl, 1
mov eax, dword [0xb10c74]
call fcn.00b12c00
mov dword [ebx + 0x478], eax
xor edx, edx
mov eax, dword [ebx + 0x478]
call fcn.00b12514
xor edx, edx
mov eax, dword [ebx + 0x478]
call fcn.00b125d4
mov eax, dword [ebx + 0x478]
mov dword [eax + 0x54], ebx
mov dword [eax + 0x50], 0xb89ef0
mov eax, dword [ebx + 0x478]
mov dword [eax + 0x64], ebx
mov dword [eax + 0x60], 0xb89f60
mov eax, dword [ebx + 0x478]
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x88], 0xb89f70
mov eax, dword [ebx + 0x478]
mov dword [eax + 0x7c], ebx
mov dword [eax + 0x78], 0xb89f88
mov eax, dword [esi + 0x14]
call fcn.00af0c80
test al, al
je 0xb89b05
mov edx, dword [esi + 0x14]
mov eax, dword [ebx + 0x478]
call fcn.00b12554
jmp 0xb89b13
mov edx, dword [esi + 0x14]
mov eax, dword [ebx + 0x478]
call fcn.00b125d4
mov edx, edi
mov eax, dword [ebx + 0x478]
call fcn.00b12654
mov dl, 1
mov eax, dword [ebx + 0x478]
call fcn.00b12514
jmp 0xb89b39
cmp ax, 1
je 0xb89b39
cmp ax, 2
mov eax, dword [ebx + 0x47c]
cmp byte [eax + 0x2a], 0
je 0xb89b64
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebx + 0x47c]
sub eax, dword [edx + 0x2c]
cmp eax, 0x2bf20
jb 0xb89b64
mov eax, dword [ebx + 0x47c]
mov byte [eax + 0x2a], 0
mov eax, dword [ebx + 0x47c]
cmp byte [eax + 0x2a], 0
je 0xb89bbe
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.00b8a398
jmp 0xb89d1c
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.00b8a398
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.00b898d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb89d3e
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.00a15414
ret