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

Disassembly:
push 0xffffffffffffffff
push 0x434a6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebp
mov ebp, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00401060
mov eax, dword [ebp + 0x1da]
xor edi, edi
cmp eax, 1
mov dword [esp + 0x12c], edi
jne 0x417137
cmp word [0x441ca8], 0xffff
je 0x41713f
cmp dword [ebp + 0x1de], edi
jne 0x41716a
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00401170
pop edi
pop ebp
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
add esp, 0x128
ret
cmp dword [ebp + 0x1fa], edi
push ebx
push esi
mov esi, 3
jne 0x4171a4
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, 0x7d0
mov dword [ebp + 0x1f2], eax
call ebx
mov dword [ebp + 0x1f6], eax
mov dword [ebp + 0x1de], esi
mov dword [ebp + 0x1fa], 0xffffffff
cmp dword [ebp + 0x1fe], edi
jne 0x4171b6
mov dword [ebp + 0x1fe], 0xffffffff
cmp dword [ebp + 0x1de], esi
mov ebx, 0x64
jne 0x4172fc
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebp + 0x1f2]
cmp eax, 0x7d0
jb 0x4172fc
mov eax, dword [ebp + 0x1da]
cmp eax, 1
jne 0x417276
mov ax, word [0x441ca8]
push 1
push 8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov word [0x44c2fa], di
mov word [0x44c2fc], di
mov word [0x44c2fe], di
mov dword [0x44c31c], 0
mov dword [0x44c320], 0
mov dword [0x44c324], 0
mov word [0x44c2f8], ax
mov byte [0x44c32c], bl
mov byte [esp + 0x1c], 0xc8
call fcn.004016f0
push 0x3f
push 0x44c2f8
lea ecx, [esp + 0x20]
call fcn.004017a0
mov ecx, dword [ebp]
mov edx, dword [ecx]
push edi
push 7
push 1
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x18]
mov byte [0x453098], 2
jmp 0x4172f4
cmp eax, 2
jne 0x4172f4
push 1
push 8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov word [0x4530a0], di
mov word [0x4530a2], di
mov word [0x4530a4], di
mov dword [0x4530c6], 0
mov dword [0x4530ca], 0
mov dword [0x4530ce], 0
mov byte [0x4530c2], bl
mov byte [esp + 0x1c], 0xcf
call fcn.004016f0
push 0x44
push 0x4530a0
lea ecx, [esp + 0x20]
call fcn.004017a0
mov ecx, dword [ebp]
mov edx, dword [ecx]
push edi
push 7
push 1
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x18]
mov byte [0x453098], 1
call esi
mov dword [ebp + 0x1f2], eax
cmp dword [ebp + 0x1de], 1
jne 0x41747c
mov esi, dword [ebp + 0x1e6]
cmp esi, dword [0x4753d8]
jne 0x417335
mov ecx, dword [ebp + 0x386]
cmp ecx, edi
mov dword [ebp + 0x1de], edi
je 0x417560
call fcn.0041aed0
jmp 0x417560
mov eax, dword [ebp + 0x1da]
cmp eax, 1
jne 0x41743b
mov ecx, dword [0x4753cc]
mov edx, dword [ecx + esi*4]
imul esi, esi, 0x3f
mov dword [ebp + 0x1ee], edx
mov edx, dword [0x4753d4]
mov ax, word [0x441ca8]
add esi, edx
mov ecx, 0xf
mov edi, 0x44c2f8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov word [0x44c2f8], ax
mov byte [0x44c32c], bl
mov eax, dword [ebp + 0x1fa]
test eax, eax
mov dword [esp + 0x14], eax
jl 0x4173ea
fild dword [esp + 0x14]
fmul dword [0x44c31c]
fmul dword [0x435a38]
fstp dword [0x44c31c]
fild dword [ebp + 0x1fa]
fmul dword [0x44c320]
fmul dword [0x435a38]
fstp dword [0x44c320]
fild dword [ebp + 0x1fa]
fmul dword [0x44c324]
fmul dword [0x435a38]
fstp dword [0x44c324]
mov eax, dword [ebp + 0x1ee]
add eax, ebx
mov dword [ebp + 0x1ee], eax
mov word [0x44c2fe], 0x20
mov eax, dword [ebp + 0x1fe]
test eax, eax
jle 0x41746a
fld dword [0x44c31c]
fmul dword [0x435a34]
fstp dword [0x44c31c]
fld dword [0x44c320]
fmul dword [0x435a34]
fstp dword [0x44c320]
fld dword [0x44c324]
fmul dword [0x435a34]
fstp dword [0x44c324]
mov eax, dword [ebp + 0x1ee]
add eax, 0x1e
mov dword [ebp + 0x1ee], eax
jmp 0x41746a
cmp eax, 2
jne 0x41746c
mov ecx, dword [0x4753cc]
mov edx, dword [ecx + esi*4]
imul esi, esi, 0x44
mov dword [ebp + 0x1ee], edx
add esi, dword [0x4753d0]
mov ecx, 0x11
mov edi, 0x4530a0
rep movsd dword es:[edi], dword [esi]
mov byte [0x4530c2], bl
xor edi, edi
inc dword [ebp + 0x1e6]
mov dword [ebp + 0x1de], 2
cmp dword [ebp + 0x1de], 2
jne 0x417560
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x1ee]
add ecx, dword [ebp + 0x1ea]
cmp eax, ecx
jb 0x417560
mov eax, dword [ebp + 0x1da]
cmp eax, 1
jne 0x4174ef
push eax
push 8
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0xc8
call fcn.004016f0
push 0x3f
push 0x44c2f8
lea ecx, [esp + 0x20]
call fcn.004017a0
mov ecx, dword [ebp]
mov eax, dword [ecx]
push edi
push 7
push 1
lea edx, [esp + 0x24]
push edx
call dword [eax + 0x18]
mov byte [0x453098], 2
jmp 0x417534
cmp eax, 2
jne 0x417534
push 1
push 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0xcf
call fcn.004016f0
push 0x44
push 0x4530a0
lea ecx, [esp + 0x20]
call fcn.004017a0
mov ecx, dword [ebp]
mov edx, dword [ecx]
push edi
push 7
push 1
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x18]
mov byte [0x453098], 1
mov eax, dword [ebp + 0x1fa]
cmp eax, edi
mov dword [ebp + 0x1de], 1
jle 0x41754f
dec eax
mov dword [ebp + 0x1fa], eax
mov eax, dword [ebp + 0x1fe]
cmp eax, edi
jle 0x417560
dec eax
mov dword [ebp + 0x1fe], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], 0xffffffff
call fcn.00401170
mov ecx, dword [esp + 0x12c]
pop esi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x128
ret
push ecx
push esi
mov esi, ecx
call fcn.00424220
fstp dword [esp + 4]
mov ecx, esi
call fcn.00418180
cmp dword [esi + 0xc], 2
jne 0x4183eb
mov ecx, dword [esi + 0x386]
test ecx, ecx
je 0x41839e
mov eax, dword [esp + 4]
push eax
call fcn.0041aa40
push edi
mov edi, dword [esi + 0x38a]
test edi, edi
je 0x4183c0
fld dword [esp + 8]
fmul dword [0x435a44]
call fcn.00425d28
push eax
mov ecx, edi
call fcn.0041d490
mov al, byte [0x4753c9]
test al, al
pop edi
je 0x4183eb
mov eax, dword [esi + 0x1de]
test eax, eax
mov ecx, esi
je 0x4183df
pop esi
add esp, 4
jmp 0x4170f0
call fcn.00416eb0
mov byte [0x453098], 1
pop esi
pop ecx
ret