Function at 0xb40a80
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 0xb40fa6
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 0xb40ada
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0xb40ee1
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.00b405b4
mov dl, 1
mov eax, dword [0xa2ac9c]
call fcn.00a14440
mov dword [ebp - 0x28], eax
xor eax, eax
push ebp
push 0xb40d92
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00b3e5a8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00b3d6c0
movzx edx, byte [ebp - 0x21]
mov eax, dword [ebp - 0x14]
call fcn.00b3d718
lea edx, [ebp - 0x38]
movzx eax, word [ebp - 0x24]
call fcn.00a1a790
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
call fcn.00b3d6ec
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00b3d758
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
call fcn.00b3d7e8
xor eax, eax
push ebp
push 0xb40d81
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0xb40d36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0xb40d2c
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 4], 0
jne 0xb40d2c
cmp dword [ebp - 0x20], 0
jle 0xb40bc6
mov eax, dword [0xba9a98]
mov eax, dword [eax]
cmp byte [eax + 0x24], 0
je 0xb40bc6
lea eax, [ebp - 4]
call fcn.00a153f0
jmp 0xb40d2c
mov eax, dword [ebp - 0x14]
call fcn.00b3e8fc
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 0xb40bfd
cmp eax, dword [esp]
pop edx
pop eax
ja 0xb40c01
jmp 0xb40c3a
pop edx
pop eax
jle 0xb40c3a
mov eax, dword [ebp - 0x10]
cmp byte [eax + 4], 0
je 0xb40c24
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 0xb40f73
mov eax, dword [ebp - 0x14]
call fcn.00b3d520
sub al, 2
je 0xb40c3a
sub al, 2
je 0xb40c3a
add al, 0xf9
sub al, 5
jae 0xb40bd5
mov eax, dword [ebp - 0x10]
cmp byte [eax + 4], 0
je 0xb40c5d
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 0xb40f73
mov eax, dword [ebp - 0x14]
call fcn.00b3d520
sub al, 0xb
je 0xb40c71
sub al, 2
jne 0xb40d0e
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x4b8], 0xc8
je 0xb40c9a
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 0xb40f73
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.00b3d7dc
call fcn.00a2fc04
mov eax, dword [ebp - 0x14]
call fcn.00b3d7dc
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea eax, [ebp - 4]
call fcn.00a15b20
mov eax, dword [ebp - 0x14]
call fcn.00b3d7dc
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.00b3d7dc
pop edx
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.00b403bc
test al, al
je 0xb40d08
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 0xb40d2c
mov eax, dword [ebp - 0x14]
call fcn.00b3d520
cmp al, 0xe
jne 0xb40d20
mov byte [ebp - 0x29], 1
jmp 0xb40d2c
inc dword [ebp - 0x20]
dec dword [ebp - 0x34]
jne 0xb40b99
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb40d57
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb40d88
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00b3d7e8
mov eax, dword [ebp - 0x28]
call fcn.00a14470
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00b3e5a8
ret
into
add byte [ebx], dh
fsub dword [esi - 9]
invalid
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb40fad
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