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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
cmp byte [esi], 3
je 0x4232d8
push 0xb0739b
call fcn.0040e95c
pop ecx
cmp byte [0xb135a7], 0
je 0x4232fd
cmp byte [esi + 0x30], 2
jne 0x4232f3
mov dword [0xf50e68], 2
jmp 0x4232fd
mov dword [0xf50e68], 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push 0xd
push 0
lea edx, [ebp - 0x94]
push edx
call fcn.00435974
add esp, 0xc
push 0xd
push 0
lea ecx, [ebp - 0xa4]
push ecx
call fcn.00435974
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
call fcn.00422895
pop ecx
test al, al
je 0x423968
mov dword [ebp - 0x1c], 0x402d62
mov dword [ebp - 0x18], 0x40f4a5
push 0xb073e6
lea edx, [ebp - 0x1c]
push edx
call fcn.0040208a
add esp, 8
mov eax, 8
cmp byte [ebp - 0xa4], 0
je 0x42336e
add eax, 0x78
cdq
push edx
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402141
add esp, 0xc
push 0xb073fc
lea eax, [ebp - 0x1c]
push eax
call fcn.0040208a
add esp, 8
cmp byte [ebp - 0xa4], 2
jne 0x4233b6
mov dword [ebp - 0x24], 0x402d62
mov dword [ebp - 0x20], 0x40f4a5
push 0xb07400
lea edx, [ebp - 0x24]
push edx
call fcn.0040208a
add esp, 8
cmp byte [ebp - 0xa4], 1
sete cl
and ecx, 1
mov byte [ebx], cl
cmp byte [ebx], 0
jne 0x4233d3
mov byte [ebp - 1], 1
jmp 0x423968
mov dword [ebp - 0x2c], 0x4032b6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x93]
push edx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040263a
add esp, 8
lea eax, [ebp - 0x8f]
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.0040263a
add esp, 8
lea ecx, [ebp - 0x8b]
push ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040269a
add esp, 8
lea edx, [ebp - 0x89]
push edx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.0040269a
add esp, 8
mov eax, dword [ebp - 0x93]
cmp eax, edi
je 0x423455
mov dword [ebp - 0x34], 0x402d62
mov dword [ebp - 0x30], 0x40f4a5
push 0xb07438
lea edx, [ebp - 0x34]
push edx
call fcn.0040208a
add esp, 8
cmp word [ebp - 0x8b], 0x5354
je 0x42347f
mov dword [ebp - 0x3c], 0x402d62
mov dword [ebp - 0x38], 0x40f4a5
push 0xb07468
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0040208a
add esp, 8
mov eax, dword [ebp - 0x93]
cmp eax, dword [ebp - 0xa3]
jne 0x4234e9
mov edx, dword [ebp - 0x8f]
cmp edx, dword [ebp - 0x9f]
jne 0x4234e9
mov cx, word [ebp - 0x8b]
cmp cx, word [ebp - 0x9b]
jne 0x4234e9
mov ax, word [ebp - 0x89]
cmp ax, word [ebp - 0x99]
jne 0x4234e9
cmp byte [ebp + 0xc], 0
jne 0x4234e9
mov dword [ebp - 0x44], 0x402d62
mov dword [ebp - 0x40], 0x40f4a5
push 0xb074a1
lea edx, [ebp - 0x44]
push edx
call fcn.0040208a
add esp, 8
mov byte [ebp - 1], 1
jmp 0x423968
mov dword [ebp - 0x4c], 0x402d62
mov dword [ebp - 0x48], 0x40f4a5
push 0xb074c9
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0040208a
add esp, 8
dec byte [0xb135a1]
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 8], eax
mov eax, dword [0xf255f4]
mov dword [ebp - 0xc], eax
push 0x81
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.00435974
add esp, 0xc
xor eax, eax
mov edx, 0x7f
cmp edx, eax
jl 0x42354c
mov byte [ebp + eax - 0x128], 0xff
inc eax
cmp edx, eax
jge 0x42353f
push 0x80
lea ecx, [ebp - 0x128]
push ecx
push 0
call fcn.00422d96
add esp, 0xc
test al, al
jne 0x423571
inc byte [0xb135a1]
jmp 0x423968
mov ebx, 0x80
cmp edi, ebx
jbe 0x42363c
mov eax, edi
sub eax, ebx
cmp eax, 0x80
jbe 0x423590
mov esi, 0x80
jmp 0x423594
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x54], 0x402d62
mov dword [ebp - 0x50], 0x40f4e3
push 0xb074ed
lea eax, [ebp - 0x54]
push eax
call fcn.0040208a
add esp, 8
push ebx
lea edx, [ebp - 0x54]
push edx
call fcn.00402302
add esp, 8
push 0xb074f7
lea ecx, [ebp - 0x54]
push ecx
call fcn.0040208a
add esp, 8
mov eax, esi
cdq
push edx
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00402141
add esp, 0xc
push 0xb074f9
lea eax, [ebp - 0x54]
push eax
call fcn.0040208a
add esp, 8
mov edx, esi
push edx
mov ecx, dword [ebp + 0x10]
add ecx, ebx
push ecx
push ebx
call fcn.00422d96
add esp, 0xc
test al, al
jne 0x423614
inc byte [0xb135a1]
jmp 0x423968
add ebx, esi
cmp byte [0xb0f5f8], 0
je 0x42362a
inc byte [0xb135a1]
jmp 0x423968
push edi
push ebx
call fcn.00416229
add esp, 8
cmp edi, ebx
ja 0x42357e
xor ebx, ebx
mov eax, edi
sub eax, ebx
cmp eax, 0x80
jbe 0x423650
mov esi, 0x80
jmp 0x423654
mov esi, edi
sub esi, ebx
mov eax, esi
push eax
mov edx, dword [ebp + 0x10]
add edx, ebx
push edx
push ebx
call fcn.00422d96
add esp, 0xc
test al, al
jne 0x423675
inc byte [0xb135a1]
jmp 0x423968
call fcn.00422d68
test al, al
jne 0x423689
inc byte [0xb135a1]
jmp 0x423968
inc byte [0xb135a1]
call fcn.00416298
mov dword [ebp - 0x5c], 0x402d62
mov dword [ebp - 0x58], 0x40f4e3
push 0xb074fd
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0040208a
add esp, 8
mov eax, dword [0xf255f4]
sub eax, dword [ebp - 0xc]
cdq
push edx
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00402141
add esp, 0xc
push 0xb0750b
lea eax, [ebp - 0x5c]
push eax
call fcn.0040208a
add esp, 8
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 8]
cdq
push edx
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00402141
add esp, 0xc
push 0xb07516
lea eax, [ebp - 0x5c]
push eax
call fcn.0040208a
add esp, 8
push 0xb0751a
lea edx, [ebp - 0x5c]
push edx
call fcn.0040208a
add esp, 8
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 8]
push eax
mov ecx, dword [0xf255f4]
sub ecx, dword [ebp - 0xc]
push ecx
call fcn.0041283d
add esp, 8
cdq
push edx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00402141
add esp, 0xc
push 0xb0752a
lea edx, [ebp - 0x5c]
push edx
call fcn.0040208a
add esp, 8
mov dword [ebp - 0x64], 0x402d62
mov dword [ebp - 0x60], 0x40f4e3
push 0xb07532
lea ecx, [ebp - 0x64]
push ecx
call fcn.0040208a
add esp, 8
cmp byte [0xb1359b], 0
je 0x423964
mov dword [ebp - 0x6c], 0x402d62
mov dword [ebp - 0x68], 0x40f4a5
push 0xb0754f
lea eax, [ebp - 0x6c]
push eax
call fcn.0040208a
add esp, 8
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 8], eax
mov edx, dword [0xf255f0]
mov dword [ebp - 0x10], edx
dec byte [0xb135a1]
xor ebx, ebx
cmp edi, ebx
jbe 0x423879
mov eax, edi
sub eax, ebx
cmp eax, 0x80
jbe 0x4237cd
mov esi, 0x80
jmp 0x4237d1
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x74], 0x402d62
mov dword [ebp - 0x70], 0x40f4e3
push 0xb07568
lea eax, [ebp - 0x74]
push eax
call fcn.0040208a
add esp, 8
push ebx
lea edx, [ebp - 0x74]
push edx
call fcn.00402302
add esp, 8
push 0xb07574
lea ecx, [ebp - 0x74]
push ecx
call fcn.0040208a
add esp, 8
mov eax, esi
cdq
push edx
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00402141
add esp, 0xc
push 0xb07576
lea eax, [ebp - 0x74]
push eax
call fcn.0040208a
add esp, 8
mov edx, esi
push edx
mov ecx, dword [ebp + 0x10]
add ecx, ebx
push ecx
push ebx
call fcn.0042309e
add esp, 0xc
test al, al
jne 0x423851
inc byte [0xb135a1]
jmp 0x423968
add ebx, esi
cmp byte [0xb0f5f8], 0
je 0x423867
inc byte [0xb135a1]
jmp 0x423968
push edi
push ebx
call fcn.00416229
add esp, 8
cmp edi, ebx
ja 0x4237bb
inc byte [0xb135a1]
call fcn.00416298
mov dword [ebp - 0x7c], 0x402d62
mov dword [ebp - 0x78], 0x40f4e3
push 0xb0757a
lea eax, [ebp - 0x7c]
push eax
call fcn.0040208a
add esp, 8
mov eax, dword [0xf255f0]
sub eax, dword [ebp - 0x10]
cdq
push edx
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00402141
add esp, 0xc
push 0xb0758c
lea eax, [ebp - 0x7c]
push eax
call fcn.0040208a
add esp, 8
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 8]
cdq
push edx
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00402141
add esp, 0xc
push 0xb07597
lea eax, [ebp - 0x7c]
push eax
call fcn.0040208a
add esp, 8
push 0xb0759b
lea edx, [ebp - 0x7c]
push edx
call fcn.0040208a
add esp, 8
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 8]
push eax
mov ecx, dword [0xf255f0]
sub ecx, dword [ebp - 0x10]
push ecx
call fcn.0041283d
add esp, 8
cdq
push edx
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00402141
add esp, 0xc
push 0xb075ab
lea edx, [ebp - 0x7c]
push edx
call fcn.0040208a
add esp, 8
mov dword [ebp - 0x84], 0x402d62
mov dword [ebp - 0x80], 0x40f4e3
push 0xb075b3
lea ecx, [ebp - 0x84]
push ecx
call fcn.0040208a
add esp, 8
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret