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

Disassembly:
push 0xffffffffffffffff
push 0x577710
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a7564]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x4dea48
cmp dword [esi + 0x10], 0
je 0x4dea48
mov ecx, dword [esi + 0x18]
add ecx, dword [esp + 0x7c]
cmp dword [esi + 0x150], 0
mov eax, dword [esi + 0x14]
mov edx, dword [esp + 0x80]
mov ebx, 1
lea ebp, [eax + edx - 1]
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x4de98b
lea eax, [esi + 0x4c]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4de912
sub eax, edi
lea edi, [eax + 2]
mov eax, dword [esi + 0x154]
mov edx, ebp
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], edx
mov ecx, dword [esi + 0x154]
call fcn.00430310
movzx ecx, word [esi + 0x8c]
push 0xb4464646
lea eax, [esp + 0x30]
push eax
push edi
push 0x57ea62
push ecx
mov ecx, 0x698ce0
call fcn.0042a250
mov edx, dword [esi + 0x90]
movzx ecx, word [esi + 0x8c]
sub dword [esp + 0x2c], ebx
sub dword [esp + 0x30], ebx
or edx, 0xff000000
push edx
lea eax, [esp + 0x30]
push eax
push edi
push 0x57ea62
push ecx
mov ecx, 0x698ce0
call fcn.0042a250
push 0
push 0x2000
mov ecx, 0x6db7d0
call fcn.0052eee0
test eax, eax
je 0x4dea4f
lea ecx, [esp + 0x4c]
call fcn.0042d050
lea eax, [esi + 0x4c]
mov dword [esp + 0x74], 0
lea ecx, [eax + 1]
jmp 0x4de9c0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4de9c0
push 0xb4464646
sub eax, ecx
lea edx, [esp + 0x30]
push edx
lea edi, [eax + 2]
movzx eax, word [esi + 0x8c]
push edi
push 0x57ea62
push eax
mov ecx, 0x698ce0
call fcn.0042a250
mov ecx, dword [esi + 0x90]
movzx eax, word [esi + 0x8c]
sub dword [esp + 0x2c], ebx
sub dword [esp + 0x30], ebx
or ecx, 0xff000000
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push 0x57ea62
push eax
mov ecx, 0x698ce0
call fcn.0042a250
push 0xffffffffffffffff
fldz
push 0
push ecx
lea ecx, [esp + 0x58]
fstp dword [esp]
push 0
push 0
call fcn.0042d090
lea ecx, [esp + 0x4c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0042d060
xor eax, eax
jmp 0x4df126
cmp byte [esi + 0x4c], 0
lea edi, [esi + 0x4c]
je 0x4dec08
mov ecx, dword [0x6b6dac]
cmp byte [ecx + 0x451], bl
jne 0x4deac8
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dea70
sub eax, edx
push 0xb4464646
lea edx, [esp + 0x30]
push edx
lea ebp, [eax + 2]
movzx eax, word [esi + 0x8c]
push ebp
push edi
push eax
mov ecx, 0x698ce0
call fcn.0042a250
mov ecx, dword [esi + 0x90]
movzx eax, word [esi + 0x8c]
sub dword [esp + 0x2c], ebx
sub dword [esp + 0x30], ebx
or ecx, 0xff000000
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
push edi
push eax
mov ecx, 0x698ce0
call fcn.0042a250
mov eax, edi
lea edx, [eax + 1]
cmp dword [esi + 0x140], ebx
jne 0x4debb0
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4deae0
sub eax, edx
lea ebp, [eax + 2]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esi + 0x144]
jb 0x4deb70
mov ecx, dword [esi + 0x148]
mov edx, dword [ecx*4 + 0x6a2e10]
mov dword [esi + 0x90], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x140
mov dword [esi + 0x144], eax
mov al, byte [esi + 0x14c]
test al, al
jne 0x4deb30
add dword [esi + 0x148], ebx
jmp 0x4deb36
dec dword [esi + 0x148]
mov ecx, dword [esi + 0x148]
cmp ecx, 0xa
jl 0x4deb57
test al, al
jne 0x4deb57
mov byte [esi + 0x14c], bl
mov dword [esi + 0x148], 9
jmp 0x4deb70
test ecx, ecx
jg 0x4deb70
cmp al, bl
jne 0x4deb70
mov byte [esi + 0x14c], 0
mov dword [esi + 0x148], 0
movzx ecx, word [esi + 0x8c]
push 0xb4464646
lea eax, [esp + 0x30]
push eax
push ebp
push edi
push ecx
mov ecx, 0x698ce0
call fcn.0042a250
mov edx, dword [esi + 0x90]
movzx ecx, word [esi + 0x8c]
or edx, 0xff000000
push edx
lea eax, [esp + 0x30]
push eax
push ebp
push edi
push ecx
jmp 0x4debf6
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4debb0
sub eax, edx
push 0xb4464646
lea edx, [esp + 0x30]
push edx
lea ebp, [eax + 2]
movzx eax, word [esi + 0x8c]
push ebp
push edi
push eax
mov ecx, 0x698ce0
call fcn.0042a250
mov ecx, dword [esi + 0x90]
movzx eax, word [esi + 0x8c]
or ecx, 0xff000000
push ecx
lea edx, [esp + 0x30]
push edx
push ebp
push edi
push eax
sub dword [esp + 0x40], ebx
sub dword [esp + 0x44], ebx
mov ecx, 0x698ce0
call fcn.0042a250
cmp byte [esi + 0x94], 0
lea edi, [esi + 0x94]
je 0x4decd2
mov edx, dword [esi + 0x1c]
add edx, dword [esp + 0x80]
mov ecx, dword [esi + 0x20]
add ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
fsub qword [0x58ac00]
call fcn.0055b110
mov dword [esp + 0x20], eax
mov eax, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4dec58
sub eax, ecx
movzx ecx, word [esi + 0x8c]
push 0xb4464646
lea ebp, [eax + 2]
lea eax, [esp + 0x20]
push eax
push ebp
push edi
push ecx
mov ecx, 0x698ce0
call fcn.0042a250
mov edx, dword [esi + 0x90]
movzx ecx, word [esi + 0x8c]
sub dword [esp + 0x1c], ebx
sub dword [esp + 0x20], ebx
or edx, 0xff000000
push edx
lea eax, [esp + 0x20]
push eax
push ebp
push edi
push ecx
mov ecx, 0x698ce0
call fcn.0042a250
cmp byte [edi], 0
je 0x4decd2
cmp byte [esi + 0xa5], 0
je 0x4decd2
push 0
push 0x101
push 0x58abe8
call fcn.0050ea20
add esp, 0xc
cmp byte [esi + 0xa5], 0
lea ebp, [esi + 0xa5]
je 0x4ded7f
mov eax, dword [esi + 0x44]
add eax, dword [esp + 0x80]
add dword [esp + 0x14], ebx
mov edx, dword [esi + 0x48]
add edx, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov dword [esp + 0x1c], edx
fild dword [esp + 0x14]
fmul qword [0x58abe0]
fsubp st(1)
call fcn.0055b110
mov dword [esp + 0x20], eax
mov eax, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4ded28
movzx edx, word [esi + 0x8c]
sub eax, ecx
push 0xb4464646
lea ecx, [esp + 0x20]
push ecx
lea edi, [eax + 2]
push edi
push ebp
push edx
mov ecx, 0x698ce0
call fcn.0042a250
mov eax, dword [esi + 0x90]
movzx edx, word [esi + 0x8c]
sub dword [esp + 0x1c], ebx
sub dword [esp + 0x20], ebx
or eax, 0xff000000
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push ebp
push edx
mov ecx, 0x698ce0
call fcn.0042a250
cmp byte [esi + 0xc6], 0
lea ebp, [esi + 0xc6]
je 0x4dee22
mov ecx, dword [esi + 0x28]
add ecx, dword [esp + 0x80]
add dword [esp + 0x14], ebx
mov eax, dword [esi + 0x24]
add eax, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x14]
fmul qword [0x58ac00]
fsubp st(1)
call fcn.0055b110
mov dword [esp + 0x20], eax
mov eax, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4dedd5
push 0xb4ff00ff
sub eax, ecx
lea edx, [esp + 0x20]
push edx
lea edi, [eax + 2]
movzx eax, word [esi + 0x8c]
push edi
push ebp
push eax
mov ecx, 0x698ce0
call fcn.0042a250
movzx edx, word [esi + 0x8c]
sub dword [esp + 0x1c], ebx
sub dword [esp + 0x20], ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push ecx
push edi
push ebp
push edx
mov ecx, 0x698ce0
call fcn.0042a250
cmp word [esi + 0x158], 0
je 0x4def5f
mov eax, dword [0x6b6dac]
cmp byte [eax + 0x4e9], 0
jne 0x4def5f
mov eax, dword [esi + 0x168]
test eax, eax
je 0x4def5f
cmp dword [eax + 4], 0
je 0x4deebb
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp eax, dword [esi + 0x160]
jb 0x4deebb
call edi
add eax, 0x50
cmp dword [esi + 0x164], 0
mov dword [esi + 0x160], eax
jne 0x4dee82
add dword [esi + 0x15c], ebx
jmp 0x4dee99
movzx ecx, word [esi + 0x158]
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x164], 0
mov edx, dword [esi + 0x168]
movzx eax, word [esi + 0x158]
mov ecx, dword [edx + 8]
lea edx, [ecx + eax - 1]
cmp dword [esi + 0x15c], edx
jl 0x4deebb
mov dword [esi + 0x164], ebx
lea ecx, [esp + 0x4c]
call fcn.0042d050
mov ecx, dword [esi + 0x15c]
push 7
lea eax, [esp + 0x50]
push eax
push ecx
mov ecx, 0x6b6658
mov dword [esp + 0x80], ebx
call fcn.00431a60
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x80]
add dword [esp + 0x14], ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x7c]
sar eax, 1
sub edx, eax
mov eax, dword [esi + 0x168]
mov dword [esp + 0x18], edx
push 0xffffffffffffffff
fild dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
fstp dword [esp + 0x24]
sub ecx, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
push ecx
fild dword [esp + 0x20]
lea ecx, [esp + 0x58]
fmul qword [0x581428]
fsubp st(1)
fsub qword [0x580730]
fstp dword [esp + 0x2c]
fldz
fstp dword [esp]
push 0
push 0
call fcn.0042d090
lea ecx, [esp + 0x4c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0042d060
cmp byte [esi + 0x108], 0
lea ebp, [esi + 0x108]
je 0x4df008
mov eax, dword [0x6b6dac]
cmp dword [eax + 0x4b8], 0
je 0x4df008
mov edx, dword [esi + 0x38]
add edx, dword [esp + 0x80]
add dword [esp + 0x14], ebx
mov ecx, dword [esi + 0x34]
add ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x14]
fmul qword [0x584500]
fsubp st(1)
call fcn.0055b110
mov dword [esp + 0x20], eax
mov eax, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4defc7
sub eax, ecx
push 0xb4464646
lea edi, [eax + 2]
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push 7
mov ecx, 0x698ce0
call fcn.0042a250
sub dword [esp + 0x1c], ebx
sub dword [esp + 0x20], ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
push ecx
push edi
push ebp
push 7
mov ecx, 0x698ce0
call fcn.0042a250
mov eax, dword [esi + 0x13c]
cmp eax, 0x3e7
jbe 0x4df01c
mov ebp, 0x18
jmp 0x4df037
cmp eax, 0x63
jbe 0x4df028
mov ebp, 0x12
jmp 0x4df037
mov edx, 9
cmp edx, eax
sbb ebp, ebp
and ebp, 6
add ebp, 6
mov al, byte [esi + 0x129]
lea edi, [esi + 0x129]
test al, al
je 0x4df124
mov ecx, dword [0x699fdc]
cmp byte [ecx + 0x6b6988], 0
je 0x4df063
cmp dword [0x6dbb2c], 0
je 0x4df084
test al, al
je 0x4df124
push 0
push 0x1100
mov ecx, 0x6db7d0
call fcn.0052eee0
test eax, eax
je 0x4df124
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x40]
add eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x14]
sub edx, ebp
add edx, dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
inc ecx
mov dword [esp + 0x7c], ecx
fild dword [esp + 0x7c]
mov dword [esp + 0x3c], edx
fld qword [0x57e5e0]
fmul st(1), st(0)
fxch st(2)
fsubrp st(1)
fsubrp st(1)
fsub qword [0x58abb8]
call fcn.0055b110
mov dword [esp + 0x40], eax
mov eax, edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4df0e0
push 0xb4141414
sub eax, ecx
lea edx, [esp + 0x40]
push edx
lea esi, [eax + 2]
push esi
push edi
push 0xb
mov ecx, 0x698ce0
call fcn.0042a250
sub dword [esp + 0x3c], ebx
sub dword [esp + 0x40], ebx
push 0xffff0000
lea eax, [esp + 0x40]
push eax
push esi
push edi
push 0xb
mov ecx, 0x698ce0
call fcn.0042a250
mov eax, ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 8