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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
xor ebx, ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404ea8
mov eax, dword [ebp - 0xc]
call fcn.00404ea8
lea eax, [ebp - 0x178]
mov edx, dword [0x407b38]
call fcn.0040535c
xor eax, eax
push ebp
push 0x447a85
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
je 0x447a41
cmp dword [ebp - 0xc], 0
jne 0x44776a
lea eax, [ebp - 0xc]
mov edx, 0x447a9c
call fcn.00404a90
mov eax, dword [ebp - 8]
call fcn.00404cb8
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x447789
lea eax, [ebp - 8]
mov edx, 0x447aa8
call fcn.00404cc0
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404d04
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x178]
mov edx, 0x3f
call fcn.004092e4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4477ca
cmp dword [ebp + 0x14], 0
je 0x4477ca
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x10], 0
jne 0x447a41
xor eax, eax
push ebp
push 0x447a3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0
je 0x4477f4
call fcn.00404460
jmp 0x447a41
mov eax, dword [ebp - 0x170]
and eax, 0x10
cmp eax, 0x10
je 0x44794e
mov eax, dword [ebp - 0x144]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x140]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp byte [ebp + 8], 0
je 0x4478f6
mov eax, dword [ebp - 0x16c]
call fcn.00404cb8
mov edx, eax
add edx, 0x11
lea eax, [ebp - 0x18]
call fcn.00404fe8
lea eax, [ebp - 0x18]
call fcn.00404f10
mov byte [eax], 1
mov dword [ebp - 0x14], 2
lea eax, [ebp - 0x18]
call fcn.00404f10
mov edx, dword [ebp - 0x14]
lea edx, [eax + edx - 1]
lea eax, [ebp - 0x20]
mov ecx, 8
call fcn.004028dc
add dword [ebp - 0x14], 8
lea eax, [ebp - 0x18]
call fcn.00404f10
mov edx, dword [ebp - 0x14]
lea edx, [eax + edx - 1]
lea eax, [ebp - 0x170]
mov ecx, 4
call fcn.004028dc
add dword [ebp - 0x14], 4
lea eax, [ebp - 0x18]
call fcn.00404f10
mov edx, dword [ebp - 0x14]
lea edx, [eax + edx - 1]
lea eax, [ebp - 0x178]
mov ecx, 4
call fcn.004028dc
add dword [ebp - 0x14], 4
lea eax, [ebp - 0x18]
call fcn.00404f10
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0x16c]
call fcn.00404cb8
push eax
lea eax, [ebp - 0x16c]
call fcn.00404f10
pop ecx
pop edx
call fcn.004028dc
jmp 0x447904
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x16c]
call fcn.00404a90
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 0xc]
sub eax, dword [edx]
cmp eax, 0x32
jb 0x447a0e
push 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x447a0e
mov eax, dword [ebp - 0x16c]
mov edx, 0x447ab4
call fcn.00404e04
je 0x447a0e
mov eax, dword [ebp - 0x16c]
mov edx, 0x447ac0
call fcn.00404e04
je 0x447a0e
lea eax, [ebp - 0x180]
mov ecx, dword [ebp - 0x16c]
mov edx, 0x447acc
call fcn.00404d04
mov edx, dword [ebp - 0x180]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 0xc]
sub eax, dword [edx]
cmp eax, 0x32
jb 0x4479be
push 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov al, byte [ebp + 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x16c]
push 0x447aa8
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.00404d78
mov edx, dword [ebp - 0x184]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004476f4
mov edx, 0x447ad8
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x178]
call fcn.00409334
test eax, eax
je 0x4477e2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447a41
lea eax, [ebp - 0x178]
call fcn.00409358
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447a8c
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.00404a1c
lea eax, [ebp - 0x178]
mov edx, dword [0x407b38]
call fcn.00405420
lea eax, [ebp - 0x18]
call fcn.004049f8
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404a1c
ret