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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
sub edx, eax
cmp edx, 0x64
jae 0x4dd7b0
jmp 0x4dda07
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x38
call fcn.00417b10
jmp 0x4dd7da
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 4]
call fcn.004db890
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x38
call fcn.0041b090
push eax
lea ecx, [ebp - 4]
call fcn.004178c0
movzx edx, al
test edx, edx
je 0x4dda07
lea ecx, [ebp - 4]
call fcn.004db870
add eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
jne 0x4dd842
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0xd]
test eax, eax
je 0x4dd840
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
push edx
mov ecx, 0x5ad498
call fcn.0041e9f0
mov ecx, eax
call fcn.004da3a0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xd], 0
jmp 0x4dd7cc
mov ecx, dword [ebp - 0x38]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x18
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00418750
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004136f0
fstp dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
fld dword [ebp - 8]
fcomp dword [ecx + 0x30]
fnstsw ax
test ah, 0x41
jne 0x4dd8a6
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0xd]
test eax, eax
je 0x4dd8a1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
push edx
mov ecx, 0x5ad498
call fcn.0041e9f0
mov ecx, eax
call fcn.004da3a0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xd], 0
jmp 0x4dda02
mov ecx, dword [ebp - 0xc]
fld dword [ebp - 8]
fcomp dword [ecx + 0x28]
fnstsw ax
test ah, 0x41
jp 0x4dd8c1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x4dd8f3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
fld dword [ecx + 0x24]
fsub dword [edx + 0x2c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
fld dword [eax + 0x30]
fsub dword [ecx + 0x28]
fdivp st(1)
fstp dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
fld dword [ebp - 8]
fsub dword [edx + 0x28]
fmul dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
fsubr dword [eax + 0x24]
fstp dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, 0x5ad498
call fcn.0041e9f0
mov ecx, eax
call fcn.004dae60
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0xe]
test edx, edx
je 0x4dd955
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x10
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0042d980
add esp, 0xc
fld dword [ebp - 0x2c]
fchs
fdiv dword [ebp - 8]
push ecx
fstp dword [esp]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
mov ecx, 0x5ad498
call fcn.0041e9f0
mov ecx, eax
call fcn.004dafa0
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x10], 0
jne 0x4dd98a
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0xd]
test ecx, ecx
jne 0x4dd988
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, 0x5ad498
call fcn.0041e9f0
mov ecx, eax
call fcn.004da4d0
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0xd], 1
jmp 0x4dda02
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx]
sub ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
cmp ecx, dword [edx + 0x10]
jbe 0x4dd9f0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
mov ecx, 0x5ad498
call fcn.0041e9f0
mov ecx, eax
call fcn.004da3a0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, 0x5ad498
call fcn.0041e9f0
mov ecx, eax
call fcn.004da810
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
push edx
mov ecx, 0x5ad498
call fcn.0041e9f0
mov ecx, eax
call fcn.004da4d0
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0xd]
test ecx, ecx
jne 0x4dda02
mov edx, dword [ebp - 0xc]
mov byte [edx + 0xd], 1
jmp 0x4dd7cc
mov esp, ebp
pop ebp
ret