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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
push edi
cmp esi, ebx
mov ebp, ecx
jne 0x415352
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebp
mov dword [esp + 0x20], eax
call fcn.00415040
test al, al
jne 0x415376
pop edi
pop esi
pop ebp
mov eax, 0x1003
pop ebx
add esp, 0x24
ret 0xc
mov eax, dword [esp + 0x38]
push 0x44d874
push eax
call fcn.00409cb0
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x40], edi
jne 0x4153a1
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x24
ret 0xc
push 2
push ebx
push edi
call fcn.00423e71
push edi
call fcn.00423cee
mov ecx, dword [ebp + 0xc]
add esp, 0x10
cmp eax, ecx
mov dword [ebp + 8], eax
jne 0x4153f4
push edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.00421959
mov al, byte [ebp + 0x10a0]
add esp, 4
test al, al
je 0x415754
lea ecx, [ebp + 0x1094]
call fcn.00413790
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0xc
jle 0x415423
push edi
call fcn.00421959
mov al, byte [ebp + 0x10a0]
add esp, 4
test al, al
je 0x415414
lea ecx, [ebp + 0x1094]
call fcn.00413790
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x24
ret 0xc
cmp eax, ebx
je 0x4154d7
lea ebx, [ebp + 0x20c8]
push eax
push str.REST__lu_r_n
push ebx
call fcn.00421907
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp + 0x60]
push ecx
push ebx
mov ecx, edx
call fcn.00413aa0
test eax, eax
jge 0x415478
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00421959
add esp, 4
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
push 0x1000
push ebx
lea ecx, [ebp + 0x60]
call fcn.00413b00
test eax, eax
jge 0x4154a6
mov edx, dword [esp + 0x40]
push edx
call fcn.00421959
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
push ebx
mov ecx, ebp
call fcn.00413dd0
cmp eax, 0x15e
je 0x4154d1
mov eax, dword [esp + 0x40]
push eax
call fcn.00421959
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
mov edi, dword [esp + 0x40]
xor ebx, ebx
mov ecx, ebp
call fcn.00414ee0
test al, al
jne 0x4154fa
push edi
call fcn.00421959
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
mov byte [esi + 0x10], 0
mov ecx, dword [ebp + 0xc]
mov dword [esi], ecx
mov edx, dword [ebp + 8]
mov dword [esi + 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00410e40
lea edx, [esi + 8]
push edx
call fcn.004221a3
add esp, 0xc
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], ebx
jmp 0x415542
mov edi, dword [esp + 0x40]
mov al, byte [0x452114]
test al, al
jne 0x41568f
mov al, byte [0x452115]
test al, al
jne 0x41568f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
sub ebx, ecx
cmp ebx, 0x64
jbe 0x4155de
mov edi, dword [esi + 4]
mov ecx, dword [esp + 0x18]
xor edx, edx
lea eax, [edi + edi*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea ecx, [ecx + ecx*4]
shl eax, 3
shl ecx, 3
sub eax, ecx
mov ecx, dword [esp + 0x38]
div ebx
test ecx, ecx
mov dword [esi + 0x18], eax
jne 0x4155a3
mov dword [esp + 0x38], eax
cmp dword [esp + 0x14], eax
jg 0x4155ad
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], eax
jl 0x4155b7
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jle 0x4155d0
test ecx, ecx
jle 0x4155d0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41553e
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
lea ebx, [ebp + 0x20c8]
push 0x1000
push ebx
lea ecx, [ebp + 0x1094]
call fcn.00413b00
mov edi, eax
test edi, edi
jle 0x4156a7
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.00410e40
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x48]
add ecx, edi
push edx
mov eax, ecx
mov dword [esi + 4], ecx
mov ecx, dword [esi]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
fild qword [esp + 0x30]
push edi
push 1
push ebx
fidiv dword [esp + 0x44]
fstp dword [esi + 0x14]
call fcn.00423ab6
mov ebx, eax
mov eax, dword [esp + 0x28]
add eax, edi
add esp, 0x18
cmp eax, 0x4b4
mov dword [esp + 0x10], eax
jb 0x41566b
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], 0
push eax
call fcn.00422720
add esp, 4
cmp ebx, edi
je 0x41553e
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00421959
add esp, 4
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
push edi
call fcn.00421959
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
lea edx, [esi + 0xc]
push edx
call fcn.004221a3
mov edi, dword [esp + 0x44]
push 2
push 0
push edi
mov byte [esi + 0x10], 1
call fcn.00423e71
push edi
call fcn.00423cee
push edi
mov dword [ebp + 8], eax
call fcn.00421959
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0x18
cmp eax, ecx
je 0x4156ed
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x24
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, eax
jne 0x415706
mov dword [esi + 0x28], 0
jmp 0x415738
mov eax, 0x10624dd3
mul ecx
mov eax, edx
shr eax, 6
jne 0x415719
mov eax, 1
mov dword [esi + 0x1c], eax
mov edx, dword [ebp + 0x30c8]
mov eax, dword [edx + 0x7c]
xor edx, edx
div ecx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 6
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
lea edx, [ecx*8]
lea ecx, [eax*8]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0xc