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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x47633d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404448
mov eax, dword [ebp - 8]
call fcn.00404448
mov eax, dword [ebp + 8]
call fcn.00404448
xor eax, eax
push ebp
push 0x47681e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x479f4c], eax
mov byte [0x478610], 0
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 4]
call fcn.00413778
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.004761f8
xor ebx, ebx
mov byte [ebp - 0x25], 0
xor eax, eax
push ebp
push 0x4767a3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x42c678]
call fcn.0042d288
mov dword [ebp - 0xc], eax
mov edx, esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.004347a8
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.004347cc
mov eax, dword [ebp - 0xc]
call fcn.00435504
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4758cc]
call fcn.00458f38
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.0043b7b4
mov edx, eax
mov eax, dword [ebp - 0x10]
call fcn.00438eb0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2b4], esi
mov dword [eax + 0x2b0], 0x476194
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x10]
call fcn.0045d234
or ecx, 0xffffffff
mov edx, 0x227
mov eax, dword [ebp - 0x10]
call fcn.0045a3d0
call sub.kernel32.dll_GetTickCount
mov edi, eax
mov eax, dword [0x478af0]
mov eax, dword [eax]
call fcn.004543d8
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 1
jg 0x47646c
call sub.kernel32.dll_GetTickCount
sub eax, edi
cmp eax, 0x2710
jbe 0x476449
lea ecx, [ebp - 0x4c]
mov edx, 0xd3
mov eax, dword [ebp - 0x10]
call fcn.00459d44
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
call fcn.00404220
mov dword [ebp - 0x2c], 3
mov eax, dword [ebp - 0x24]
call fcn.00404258
cmp eax, 5
jle 0x4764df
mov eax, dword [ebp - 4]
call fcn.00404258
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404458
push eax
mov eax, dword [ebp - 4]
call fcn.00404458
pop edx
pop ecx
call fcn.004081d8
test eax, eax
je 0x4764df
mov bl, 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x24]
call fcn.00475fd0
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
call fcn.004761f8
mov eax, dword [ebp - 0x20]
call fcn.00404258
mov edi, eax
jmp 0x4764ec
dec edi
mov eax, dword [ebp - 0x20]
cmp byte [eax + edi - 1], 0x2e
jne 0x4764eb
lea eax, [ebp - 0x50]
push eax
mov ecx, edi
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.004044b8
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov ecx, 0x476838
call fcn.004042a4
cmp dword [ebp + 8], 0
je 0x476541
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
call fcn.0040459c
test eax, eax
jne 0x476541
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
call fcn.0040459c
test eax, eax
jne 0x476541
mov byte [ebp - 0x25], 1
cmp byte [ebp - 0x25], 0
je 0x47657e
mov eax, dword [0x479f50]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x47657e
mov edx, dword [ebp - 0x18]
mov eax, dword [0x479f50]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x476575
mov edx, dword [ebp - 0x20]
mov eax, dword [0x479f50]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
je 0x476579
xor eax, eax
jmp 0x47657b
mov al, 1
mov byte [ebp - 0x25], al
test bl, bl
je 0x476610
mov eax, dword [ebp - 0x1c]
call fcn.00404258
mov edi, eax
jmp 0x476593
dec edi
mov eax, dword [ebp - 0x1c]
cmp byte [eax + edi - 1], 0x2e
jne 0x476592
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.004044b8
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
mov ecx, 0x476838
call fcn.004042a4
cmp dword [ebp + 8], 0
je 0x4765e6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
call fcn.0040459c
test eax, eax
jne 0x4765e6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
call fcn.0040459c
test eax, eax
jne 0x4765e6
mov bl, 1
test bl, bl
je 0x476610
mov edx, dword [ebp - 0x18]
mov eax, dword [0x479f50]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x47660a
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x479f50]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
je 0x47660e
xor ebx, ebx
jmp 0x476610
mov bl, 1
test byte [ebp - 0x25], bl
je 0x47661c
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x476636
cmp byte [ebp - 0x25], 0
je 0x47662b
mov dword [ebp - 0x2c], 2
jmp 0x476636
test bl, bl
je 0x476636
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x2c]
sub eax, 3
jae 0x476785
xor eax, eax
push ebp
push 0x47677e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x415c58]
call fcn.00403194
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
mov ecx, dword [ebp - 4]
mov edx, 0x476844
call fcn.004042a4
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x64]
mov edx, 0xd3
mov eax, dword [ebp - 0x10]
call fcn.00459d44
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x476850
call fcn.004047f0
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
call fcn.00404220
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x476868
call fcn.004042a4
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x20]
mov edx, 0x47687c
call fcn.004042a4
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x2c]
call fcn.00408460
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x47688c
call fcn.004042a4
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x7c]
call fcn.00475c50
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x4768a0
call fcn.004042a4
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
push ebp
push 0x47675e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x80]
push eax
mov eax, dword [esi + 0x2f8]
mov ecx, dword [ebp - 0x14]
mov edx, 0x4768b0
call fcn.00473060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x476768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476785
mov eax, dword [ebp - 0x14]
call fcn.004031c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4767aa
mov eax, dword [ebp - 0x10]
call fcn.004031c4
mov eax, dword [ebp - 0xc]
call fcn.004031c4
ret