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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, ecx
push 0xa
call edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x521b
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.00402fa0
push eax
push ebp
call fcn.00402fe0
mov eax, dword [ebp + 0x11c]
add esp, 8
shl eax, 5
mov ecx, dword [eax + 0x422718]
shr ecx, 0xf
and ecx, 0xff
lea eax, [ecx - 1]
mov ecx, 0x72
cmp eax, 0x1b
ja case.0x408db4.5
xor edx, edx
mov dl, byte [eax + 0x40948c]
jmp dword [edx*4 + 0x409478]
mov eax, dword [ebp + 0x178]
mov byte [ebp + 0x1118], 0x46
cmp eax, ecx
mov byte [ebp + 0x1119], 0xb9
jge 0x408fd4
push 1
push 0
mov ecx, ebp
call fcn.00410770
add eax, 0x1ff
lea esi, [ebp + 0xab6]
cdq
and edx, 0x1ff
push 8
add eax, edx
push esi
sar eax, 9
mov byte [ebp + 0xab7], al
mov al, 0x33
mov ecx, ebp
mov byte [esi], 0x84
mov byte [ebp + 0xab8], al
mov byte [ebp + 0xab9], al
mov byte [ebp + 0xaba], al
mov byte [ebp + 0xabb], al
mov byte [ebp + 0xabc], al
mov byte [ebp + 0xabd], al
call fcn.004037d0
push 0x61a8
jmp 0x4092b7
mov byte [ebp + 0x1118], 0x46
mov byte [ebp + 0x1119], 0xb9
cmp dword [ebp + 0x178], ecx
jge 0x408fd4
push 1
push 0
mov ecx, ebp
call fcn.00410770
mov ecx, dword [ebp + 0x11c]
lea esi, [ebp + 0xab6]
shl ecx, 5
mov byte [esi], 0x84
mov byte [ebp + 0xab7], 0
mov edx, dword [ecx + 0x422724]
lea ecx, [ecx + 0x422724]
cmp eax, edx
jae 0x408ea8
shr edx, 0x10
mov byte [ebp + 0xab8], dl
xor edx, edx
mov dl, byte [ecx + 1]
mov byte [ebp + 0xab9], dl
mov al, byte [ecx]
mov byte [ebp + 0xaba], al
jmp 0x408edb
add eax, 0x1ff
mov byte [ebp + 0xaba], 0
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
mov edx, eax
shl edx, 9
shr edx, 0x10
mov byte [ebp + 0xab8], dl
shl eax, 9
xor edx, edx
mov dl, ah
mov byte [ebp + 0xab9], dl
mov eax, dword [ecx]
xor edx, edx
shr eax, 0x10
mov byte [ebp + 0xabb], al
mov dl, byte [ecx + 1]
mov byte [ebp + 0xabc], dl
mov al, byte [ecx]
lea edx, [ebp + 0xabe]
xor ecx, ecx
mov byte [ebp + 0xabd], al
xor eax, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov byte [edx + 0xa], cl
mov cl, 0x80
sub cl, al
mov byte [eax + ebp + 0xac9], cl
inc eax
cmp eax, 0x73
jl 0x408f0f
push 0x86
jmp 0x4092aa
cmp dword [ebp + 0x178], 0x71
jge case.0x408db4.5
push 1
push 0
mov ecx, ebp
call fcn.00410770
mov edx, eax
xor ecx, ecx
shr edx, 0x10
mov byte [ebp + 0xab8], dl
mov edx, dword [ebp + 0x11c]
shl edx, 5
lea esi, [ebp + 0xab6]
mov cl, ah
mov byte [ebp + 0xaba], al
lea eax, [edx + 0x422724]
mov byte [esi], 0x84
mov byte [ebp + 0xab7], 0xff
mov byte [ebp + 0xab9], cl
mov ecx, dword [eax]
shr ecx, 0x10
xor edx, edx
mov byte [ebp + 0xabb], cl
mov dl, byte [eax + 1]
xor ecx, ecx
mov byte [ebp + 0xabc], dl
mov al, byte [eax]
lea edx, [ebp + 0xabe]
mov byte [ebp + 0xabd], al
xor eax, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov word [edx + 8], cx
mov byte [edx + 0xa], cl
mov cl, 0x80
sub cl, al
mov byte [eax + ebp + 0xac9], cl
inc eax
cmp eax, 0x22
jl 0x408fb0
push 0x35
jmp 0x4092aa
cmp dword [ebp + 0x178], ecx
jl 0x4091c7
cmp dword [ebp + 0x1a0], 4
je 0x409102
mov dl, byte [ebp + 0x1118]
mov ecx, dword [ebp + 0xf10]
mov al, byte [ebp + 0x1119]
mov byte [ebp + 0xab9], dl
lea ebx, [ebp + 0xab6]
mov edx, ecx
lea esi, [ebp + 0xf18]
lea edi, [ebp + 0xabb]
shr ecx, 2
mov byte [ebx], 5
mov byte [ebp + 0xab7], 0
mov byte [ebp + 0xab8], 0
mov byte [ebp + 0xaba], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xf10]
mov ecx, ebp
add eax, 5
push eax
push ebx
call fcn.004037d0
push 0x7d0
mov ecx, ebp
call fcn.00403be0
push 1
push 0
mov ecx, ebp
call fcn.00403970
mov al, byte [ebp + 0x23]
test al, al
je 0x4092f1
mov ecx, ebp
call fcn.00403c00
test al, al
jne 0x4092fe
lea ecx, [ebp + 0x6b6]
push 1
push ecx
mov ecx, ebp
call fcn.00403970
test al, al
je 0x409059
mov al, byte [ebp + 0x25]
test al, al
je 0x4090a5
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x4090a5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov dl, byte [ebx]
mov al, byte [ebp + 0x6b6]
and dl, 0xf
cmp al, dl
je 0x4090fa
cmp al, 0xe
jne 0x4090ce
push 0x521c
mov ecx, ebp
call fcn.00402fa0
push eax
push ebp
call fcn.00402fe0
add esp, 8
cmp byte [ebp + 0x6b6], 0xf
jne 0x4090ed
push 0x521d
mov ecx, ebp
call fcn.00402fa0
push eax
push ebp
call fcn.00402fe0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [ebp + 0x1119]
mov al, byte [ebp + 0x1118]
lea esi, [ebp + 0xab6]
mov byte [ebp + 0xaba], cl
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0xab7], 0
mov byte [ebp + 0xab8], 0
mov byte [ebp + 0xab9], al
call fcn.00410770
mov ecx, dword [ebp + 0x178]
cmp ecx, 0x73
jl 0x40919d
jne 0x409152
cmp dword [ebp + 0x17c], 0xd
jl 0x40919d
cmp ecx, 0x74
jne 0x409160
cmp dword [ebp + 0x17c], 3
jl 0x40919d
mov cl, byte [ebp + 0x3f]
test cl, cl
je 0x409188
and eax, 0xfffe00
push 5
mov edx, eax
shr edx, 0x10
xor ecx, ecx
mov byte [ebp + 0xab7], dl
mov cl, ah
mov byte [ebp + 0xab8], cl
jmp 0x4092aa
mov cl, byte [ebp + 0x630]
and ecx, 0xfe
shl ecx, 8
cmp eax, ecx
jle 0x4091c0
jmp 0x4091b0
mov edx, dword [ebp + 0x11c]
shl edx, 5
mov ecx, dword [edx + 0x422724]
cmp eax, ecx
jle 0x4091c0
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0xab7], al
push 5
jmp 0x4092aa
cmp dword [ebp + 0x1a0], 4
je 0x40926a
lea esi, [ebp + 0xab6]
push 1
push esi
mov ecx, ebp
mov byte [esi], 5
call fcn.004037d0
push 0x7d0
mov ecx, ebp
call fcn.00403be0
push 1
push 0
mov ecx, ebp
call fcn.00403970
mov al, byte [ebp + 0x23]
test al, al
je 0x4092f1
mov ecx, ebp
call fcn.00403c00
test al, al
jne 0x4092fe
lea eax, [ebp + 0x6b6]
push 1
push eax
mov ecx, ebp
call fcn.00403970
test al, al
je 0x4091fe
mov al, byte [ebp + 0x25]
test al, al
je 0x40924a
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x40924a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov cl, byte [esi]
mov al, byte [ebp + 0x6b6]
and cl, 0xf
cmp al, cl
je 0x409266
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push 0xa
call edi
lea esi, [ebp + 0xab6]
push 1
push 0
mov ecx, ebp
mov byte [esi], 3
mov byte [ebp + 0xab7], 0
call fcn.00410770
mov edx, dword [ebp + 0x11c]
shl edx, 5
mov ecx, dword [edx + 0x422724]
cmp eax, ecx
jle 0x4092a8
sub eax, ecx
add eax, 0x1ff
shr eax, 9
mov byte [ebp + 0xab7], al
push 2
push esi
mov ecx, ebp
call fcn.004037d0
push 0x3a98
mov ecx, ebp
call fcn.00403be0
push 1
push 0
mov ecx, ebp
call fcn.00403970
mov al, byte [ebp + 0x23]
test al, al
je 0x4092f1
mov ecx, ebp
call fcn.00403c00
test al, al
jne 0x4092fe
lea eax, [ebp + 0x6b6]
push 1
push eax
mov ecx, ebp
call fcn.00403970
test al, al
jne 0x40930b
jmp 0x4092c9
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret
mov al, byte [ebp + 0x25]
test al, al
je 0x409329
mov eax, dword [ebp + 0x1c4]
test eax, eax
je 0x409329
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
lea edi, [ebp + 0xeb6]
lea ecx, [ebp + 0x6b7]
mov edx, edi
mov eax, dword [ecx]
mov dword [edx], eax
mov ax, word [ecx + 4]
mov word [edx + 4], ax
mov eax, dword [ebp + 0x178]
mov cl, byte [ecx + 6]
cmp eax, 0x62
mov byte [edx + 6], cl
jg 0x40936e
lea edx, [ebp + 0x63f]
mov eax, edi
mov ecx, dword [edx]
mov dword [eax], ecx
mov cx, word [edx + 4]
mov word [eax + 4], cx
mov dl, byte [edx + 6]
mov byte [eax + 6], dl
mov eax, dword [ebp + 0x1a0]
test eax, eax
jne 0x40938e
cmp byte [ebp + 0x6b6], 0x80
je 0x4093d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
cmp eax, 3
jl 0x4093b9
mov al, byte [esi]
mov cl, byte [ebp + 0x6b6]
and al, 0xf
cmp cl, al
jne 0x4093c3
mov ecx, ebp
call fcn.00408a50
test eax, eax
je 0x4093d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov al, byte [ebp + 0x6b6]
test al, al
je 0x4093d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], 0
sub eax, ebx
sub esp, 8
mov dword [esp + 0x18], eax
mov ecx, ebp
fild qword [esp + 0x18]
fmul dword [0x42b9f0]
fstp qword [esp]
push 0x521f
call fcn.00402fa0
push eax
push ebp
call fcn.00402fe0
mov ecx, dword [ebp + 0x11c]
add esp, 0x10
shl ecx, 5
mov eax, dword [ecx + 0x422718]
and eax, 0x7f8000
cmp eax, 0x38000
jbe 0x40946b
cmp eax, 0x230000
je 0x40946b
mov al, byte [edi]
mov cl, byte [ebp + 0xeb7]
cmp al, cl
jne 0x409464
cmp al, byte [ebp + 0xeb8]
jne 0x409464
cmp al, byte [ebp + 0xeb9]
jne 0x409464
cmp al, byte [ebp + 0xeba]
jne 0x409464
cmp al, byte [ebp + 0xebb]
jne 0x409464
cmp al, byte [ebp + 0xebc]
je 0x40946b
mov ecx, ebp
call fcn.00408ab0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret