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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xb40faa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
lea eax, [ebp - 4]
call fcn.00a153f0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xc], 0
mov byte [ebp - 0x29], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0xb40ade
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0xb40ee5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0x21]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
call fcn.00b405b8
mov dl, 1
mov eax, dword [0xa2ac9c]
call fcn.00a14440
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0xb40d96
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00b3e5ac
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00b3d6c4
movzx edx, byte [ebp - 0x21]
mov eax, dword [ebp - 0x14]
call fcn.00b3d71c
lea edx, [ebp - 0x38]
movzx eax, word [ebp - 0x24]
call fcn.00a1a790
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
call fcn.00b3d6f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00b3d75c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
call fcn.00b3d7ec
xor eax, eax
push ebp
push 0xb40d85
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0xb40d3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0xb40d30
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 4], 0
jne 0xb40d30
cmp dword [ebp - 0x20], 0
jle 0xb40bca
mov eax, dword [0xba9a98]
mov eax, dword [eax]
cmp byte [eax + 0x24], 0
je 0xb40bca
lea eax, [ebp - 4]
call fcn.00a153f0
jmp 0xb40d30
mov eax, dword [ebp - 0x14]
call fcn.00b3e900
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 1
call sub.kernel32.dll_Sleep_2
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
cdq
cmp edx, dword [esp + 4]
jne 0xb40c01
cmp eax, dword [esp]
pop edx
pop eax
ja 0xb40c05
jmp 0xb40c3e
pop edx
pop eax
jle 0xb40c3e
mov eax, dword [ebp - 0x10]
cmp byte [eax + 4], 0
je 0xb40c28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00a14dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb40f77
mov eax, dword [ebp - 0x14]
call fcn.00b3d524
sub al, 2
je 0xb40c3e
sub al, 2
je 0xb40c3e
add al, 0xf9
sub al, 5
jae 0xb40bd9
mov eax, dword [ebp - 0x10]
cmp byte [eax + 4], 0
je 0xb40c61
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00a14dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb40f77
mov eax, dword [ebp - 0x14]
call fcn.00b3d524
sub al, 0xb
je 0xb40c75
sub al, 2
jne 0xb40d12
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x4b8], 0xc8
je 0xb40c9e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00a14dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb40f77
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00b3d7e0
call fcn.00a2fc04
mov eax, dword [ebp - 0x14]
call fcn.00b3d7e0
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea eax, [ebp - 4]
call fcn.00a15b20
mov eax, dword [ebp - 0x14]
call fcn.00b3d7e0
mov edx, dword [eax]
call dword [edx]
push eax
lea eax, [ebp - 4]
call fcn.00a158f0
push eax
mov eax, dword [ebp - 0x14]
call fcn.00b3d7e0
pop edx
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.00b403c0
test al, al
je 0xb40d0c
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00a17694
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.00a15688
mov byte [ebp - 0x19], 1
jmp 0xb40d30
mov eax, dword [ebp - 0x14]
call fcn.00b3d524
cmp al, 0xe
jne 0xb40d24
mov byte [ebp - 0x29], 1
jmp 0xb40d30
inc dword [ebp - 0x20]
dec dword [ebp - 0x34]
jne 0xb40b9d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb40d5b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb40d8c
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00b3d7ec
mov eax, dword [ebp - 0x28]
call fcn.00a14470
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00b3e5ac
ret
add byte [edx + 0x3b], cl
aad 0xf5
neg edx
jmp 0x181a370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb40fb1
lea eax, [ebp - 0x40]
call fcn.00a153f0
lea eax, [ebp - 0x3c]
call fcn.00a15c08
lea eax, [ebp - 0x38]
call fcn.00a153f0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00a15414
ret