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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x60]
xor edi, edi
mov dword [esp + 0x48], eax
mov ecx, dword [ebp + 0x3c]
cmp ecx, edi
je 0x414fad
mov eax, dword [ebp + 0x40]
cmp eax, edi
jbe 0x414fad
mov edx, ecx
mov ebx, eax
mov eax, dword [edx]
cmp eax, edi
je 0x414fa7
mov eax, dword [eax]
cmp eax, edi
jne 0x414fa1
add edx, 4
dec ebx
jne 0x414f9b
push ecx
call fcn.004dbc23
mov ecx, dword [ebp + 0x4c]
add esp, 4
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x48], edi
call fcn.004d660c
mov dword [ebp + 0x4c], edi
mov eax, dword [ebp + 0x14]
cmp eax, edi
mov dword [ebp + 0x20], 0x64
je 0x414fe4
push eax
call fcn.004dbc23
add esp, 4
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], edi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp]
mov ebx, dword [ebp + 4]
cmp eax, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], ebx
jle 0x415024
mov edi, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], 1
mov eax, edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x28], ebx
mov ecx, ebx
cdq
idiv dword [esp + 0x64]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov edi, eax
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x415136
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edi
push edx
push eax
mov ecx, esi
call fcn.00414f10
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x28]
and ecx, 0xffff
shl ecx, 0x10
and edx, 0xffff
or ecx, edx
mov dword [eax + ebx*4], ecx
mov ecx, dword [ebp + 0x28]
mov eax, dword [ecx + ebx*4]
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
mov dword [esp + 0x34], eax
je 0x4150bb
shr eax, 4
xor edx, edx
div dword [ebp + 0x40]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x4150bb
mov eax, dword [esp + 0x34]
mov ecx, dword [edx + 8]
cmp ecx, eax
je 0x4150b7
mov edx, dword [edx]
test edx, edx
jne 0x4150a4
jmp 0x4150bb
test edx, edx
jne 0x41511b
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x30]
lea ebx, [ebp + 0x38]
push ecx
push edx
mov ecx, ebx
call fcn.00496550
test eax, eax
jne 0x415112
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4150e7
mov eax, dword [ebx + 8]
push 1
push eax
mov ecx, ebx
call fcn.00498a60
mov ecx, ebx
call fcn.0042a080
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x30]
mov ecx, dword [ecx + edx*4]
mov dword [eax], ecx
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x30]
mov dword [edx + ecx*4], eax
mov edx, dword [esp + 0x10]
mov dword [eax + 0xc], edx
mov ebx, edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
inc ebx
add ecx, edi
cmp ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ecx
jl 0x415049
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov edx, dword [esp + 0x48]
mov ecx, dword [ebp + 0x54]
sub eax, edx
add ecx, eax
mov dword [ebp + 0x54], ecx
call ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
xor ecx, ecx
sub eax, edi
cmp eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], 1
jle 0x415528
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
jmp 0x415188
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x4151cd
mov edx, dword [esp + 0x14]
mov ecx, 1
sub ecx, edx
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
push edx
push edi
push eax
mov dword [esp + 0x4c], ecx
push ecx
mov ecx, esi
call fcn.00414f10
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], 0
jmp 0x41523a
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0x14]
mov ebx, 1
dec eax
sub ebx, edx
mov edx, dword [ecx]
push eax
push ebx
mov dword [esp + 0x44], ebx
call dword [edx + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
sub ecx, eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
add ecx, edi
lea ecx, [ecx + edx - 1]
push ecx
mov ecx, dword [esi + 0x30]
push ebx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov edx, dword [ecx]
dec eax
push eax
push ebx
call dword [edx + 0x10]
imul eax, edi
mov ecx, dword [esp + 0x1c]
mov edx, ecx
sub edx, eax
mov eax, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x20], eax
mov ebx, dword [ebp + 0x3c]
and eax, 0xffff
shl eax, 0x10
and ecx, 0xffff
mov dword [esp + 0x30], 0xffffffff
or eax, ecx
mov ecx, eax
test ebx, ebx
mov dword [esp + 0x4c], ecx
je 0x4152b1
shr eax, 4
xor edx, edx
div dword [ebp + 0x40]
mov edx, dword [ebx + edx*4]
test edx, edx
je 0x4152b1
cmp dword [edx + 8], ecx
je 0x41527b
mov edx, dword [edx]
test edx, edx
jne 0x41526e
jmp 0x4152b1
test edx, edx
je 0x4152b1
mov edx, dword [edx + 0xc]
mov eax, dword [esp + 0x34]
cmp eax, edx
ja 0x41528c
mov eax, edx
mov ebx, dword [esp + 0x64]
cmp eax, ebx
jge 0x4152b1
mov edx, dword [ebp + 0x28]
lea edx, [edx + eax*4]
cmp dword [edx], ecx
je 0x4152a8
inc eax
add edx, 4
cmp eax, ebx
jl 0x41529a
jmp 0x4152b1
mov dword [esp + 0x30], eax
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov ebx, eax
imul ebx, edi
test eax, eax
mov dword [esp + 0x24], ebx
jl 0x415500
mov edx, dword [esp + 0x28]
mov ecx, dword [esi + 0x30]
add edx, ebx
push edi
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x48]
push edx
call dword [eax + 0x14]
test eax, eax
je 0x415500
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
mov ebp, eax
cmp eax, ebx
mov dword [esp + 0x40], ebp
jge 0x41540a
mov ecx, dword [esp + 0x28]
lea ebx, [eax + ecx]
mov dword [esp + 0x48], ebx
cmp ebp, dword [esp + 0x44]
jne 0x415337
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x30]
lea eax, [esp + 0x2c]
push edx
push eax
push edi
push ebx
push ecx
mov ecx, esi
call fcn.00414f10
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x41539c
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + 0x14]
dec ebx
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0x10]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub ebp, eax
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
mov eax, dword [esp + 0x40]
add eax, edi
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 0x30]
call dword [edx + 0x10]
mov ecx, dword [esi + 0x30]
add eax, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
push ebx
push eax
call dword [edx + 0x10]
imul eax, edi
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x40]
mov edx, ecx
sub edx, eax
mov eax, dword [esp + 0x30]
add eax, edx
mov dword [esp + 0x30], eax
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jne 0x4153cc
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x30]
push edi
push ebx
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x48]
push edx
call dword [eax + 0x14]
test eax, eax
jne 0x4153e4
mov eax, dword [esp + 0x24]
inc ebp
inc ebx
cmp ebp, eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebx
jl 0x41530f
jmp 0x41540a
mov eax, dword [esp + 0x24]
lea ecx, [edi + ebp]
cmp ecx, eax
jge 0x415406
mov eax, ecx
cdq
idiv edi
mov edx, eax
mov dword [esp + 0x34], eax
imul edx, edi
cmp edx, ecx
jge 0x415406
inc eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ebp
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 4]
cmp eax, ecx
jl 0x415423
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
add ecx, eax
push ecx
mov ecx, esi
call fcn.00416120
mov ecx, dword [esi + 0x28]
mov ebx, dword [esi + 0xc]
mov eax, ecx
lea edx, [ecx + 1]
mov dword [esi + 0x28], edx
cdq
idiv ebx
mov ebp, eax
mov eax, ecx
cdq
idiv ebx
mov eax, ebp
mov ebp, dword [esi + 0x14]
mov ebx, dword [ebp + eax*4]
mov ebp, dword [esp + 0x60]
shl edx, 4
add ebx, edx
mov dword [esp + 0x48], ebx
mov dword [ebx + 0xc], edi
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jle 0x41546c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
jmp 0x41547a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
push ebx
call fcn.00415550
test eax, eax
jne 0x4154ca
mov eax, dword [esi + 0x28]
test eax, eax
jle 0x4154ca
test ebx, ebx
je 0x4154ca
mov ecx, dword [esi + 0xc]
lea ebx, [eax - 1]
mov eax, ebx
mov dword [esp + 0x44], ebx
cdq
idiv ecx
mov ebp, eax
mov eax, ebx
cdq
idiv ecx
mov eax, ebp
mov ebp, dword [esi + 0x14]
mov ecx, dword [ebp + eax*4]
mov eax, dword [esp + 0x48]
shl edx, 4
add ecx, edx
cmp ecx, eax
jne 0x4154c6
mov edx, ebx
mov dword [esi + 0x28], edx
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov edx, dword [ebp + 0x58]
add ecx, edi
add eax, edi
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x50]
add ebx, edi
add edx, edi
cmp ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebx
mov dword [ebp + 0x58], edx
mov dword [esp + 0x40], 1
jne 0x415512
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc ecx
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
cmp edx, eax
jl 0x415184
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov esi, dword [esp + 0x58]
mov edx, dword [ebp + 0x54]
sub eax, esi
pop edi
add edx, eax
xor eax, eax
mov dword [ebp + 0x54], edx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
pop esi
pop ebp
setg al
pop ebx
add esp, 0x4c
ret 8