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

Disassembly:
push 0xffffffffffffffff
push 0x584b98
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5cca0c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x58]
xor ebx, ebx
cmp eax, ebx
jne 0x475e4e
mov dword [esi + 0x12c], ebx
jmp 0x47608c
cmp eax, 1
jne 0x47608c
cmp dword [esi + 0x12c], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x475f62
mov dword [esi + 0x12c], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov word [esi + 0x102], bx
mov byte [esi + 0x104], bl
mov dword [esi + 0x130], ebx
call edi
mov dword [esi + 0x134], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x150], ebx
mov dword [esi + 0x154], ebx
mov dword [0x5ce24c], ebx
mov dword [0x5ce248], ebx
mov dword [0x5ce240], ebx
mov dword [0x5ce244], ebx
call fcn.004716c0
mov ecx, eax
call fcn.00475810
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0xc8]
mov dword [esp + 0x5c], ebx
call fcn.0040a080
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x50], 0xffffffff
jb 0x475f1e
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0055215c
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.004716c0
mov ebp, eax
call edi
mov edx, eax
sub edx, dword [ebp + 0x30]
mov eax, 0x10624dd3
mul edx
shr edx, 6
xor eax, eax
add edx, dword [ebp + 8]
push 0x64
adc eax, dword [ebp + 0xc]
mov dword [esi + 0x140], edx
mov dword [esi + 0x144], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x180]
call fcn.004ebd30
mov ecx, dword [esi + 0x180]
mov ebp, eax
sub ebp, dword [0x5ce240]
sbb edx, dword [0x5ce244]
mov dword [esp + 0x18], edx
call fcn.004ebd30
mov dword [0x5ce240], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0xec]
mov dword [0x5ce244], edx
jl 0x475fbf
jg 0x475fab
cmp ebp, dword [esi + 0xe8]
jbe 0x475fbf
mov dword [esi + 0xe8], ebp
mov dword [esi + 0xec], eax
call edi
mov dword [esi + 0x130], eax
cmp dword [esi + 0x13c], ebx
jne 0x475fe8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x180]
call fcn.004ec280
test eax, eax
jne 0x475fe8
call edi
mov dword [esi + 0x13c], eax
mov dword [0x5ce248], eax
mov ecx, dword [esi + 0x180]
lea edx, [esp + 0x1c]
push edx
call fcn.004ec2b0
test eax, eax
jne 0x476043
call edi
sub eax, dword [0x5ce248]
mov ecx, dword [0x5ce24c]
add ecx, eax
mov eax, 0x45e7b273
mul ecx
mov eax, dword [esp + 0x18]
shr edx, 0xe
add dword [esi + 0xf8], ebp
mov dword [0x5ce24c], ecx
mov word [esi + 0x102], dx
adc dword [esi + 0xfc], eax
cmp dword [esi + 0x13c], ebx
jbe 0x476043
call edi
mov dword [esi + 0x138], eax
call edi
mov ecx, esi
mov dword [0x5ce248], eax
call fcn.00474930
mov ecx, esi
mov byte [esi + 0x104], al
call fcn.00471810
mov ecx, dword [esi + 0x180]
call fcn.004ec310
mov ecx, dword [esi + 0x180]
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], edx
call fcn.004ec2e0
mov dword [esi + 0x150], eax
mov dword [esi + 0x154], edx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4