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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59b85b
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0x2710
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
add eax, 0xfffffffc
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], eax
push ecx
mov ecx, eax
call fcn.00459bf0
mov ecx, dword [esp + 0x3c]
mov eax, 0x2aaaaaab
mov edi, dword [esp + 0x38]
xor esi, esi
sub ecx, edi
imul ecx
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x45822e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4583a9
push ecx
push dword [edi]
call fcn.00551d79
add esp, 8
test eax, eax
je 0x458264
inc esi
add edi, 0xc
cmp esi, ebx
jb 0x458203
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x4582ee
cmp ecx, dword [esi - 0x10]
jne 0x4582ee
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x458328
mov edx, dword [esp + 0x38]
lea eax, [esi + esi*2]
mov esi, dword [0x64168c]
mov ecx, esi
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4582a1
cmp dword [eax + 0x10], edx
jae 0x45828a
mov eax, dword [eax + 8]
jmp 0x45828e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x458280
cmp ecx, esi
je 0x4582a1
mov dword [esp + 0x24], ecx
cmp edx, dword [ecx + 0x10]
jae 0x4582a5
mov dword [esp + 0x24], esi
lea eax, [esp + 0x24]
mov eax, dword [eax]
cmp eax, esi
je 0x4589c3
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4589c3
mov eax, dword [esp + 0x1c]
mov edi, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x24]
push 1
mov eax, dword [eax + 0x308]
push 1
mov esi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
mov eax, dword [esp + 0x24]
push edi
push ebx
mov ecx, dword [eax + 0x308]
call dword [esi + 0x10]
jmp 0x4589c3
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x458302
call fcn.0040c3b0
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
lea eax, [edx*2 + 2]
push eax
push esi
lea eax, [edx*2 + 2]
push eax
push ecx
call fcn.00551ae9
add esp, 0x10
lea ebx, [edi + 0x10]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x50], 1
mov esi, dword [0x64041c]
test esi, esi
jne 0x45837d
push 0xc
call fcn.00551c81
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
test esi, esi
je 0x458375
mov byte [esp + 0x50], 3
mov dword [esi], 0x5c377c
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00449b60
mov dword [esi + 4], eax
jmp 0x458377
xor esi, esi
mov dword [0x64041c], esi
add esi, 4
mov byte [esp + 0x50], 0
lea eax, [esp + 0x24]
mov dword [esp + 0x14], esi
push eax
mov ecx, esi
call fcn.0041a440
mov ecx, dword [esi]
cmp eax, ecx
je 0x4583ed
mov esi, dword [eax + 0x10]
xor edx, edx
test esi, esi
setne dl
test edx, edx
jne 0x4583b3
push 0x80004005
call fcn.0040c390
mov edx, ebx
mov di, word [edx]
cmp di, word [esi]
jne 0x4583db
test di, di
je 0x4583d7
mov di, word [edx + 2]
cmp di, word [esi + 2]
jne 0x4583db
add edx, 4
add esi, 4
test di, di
jne 0x4583b5
xor edx, edx
jmp 0x4583e0
sbb edx, edx
or edx, 1
test edx, edx
mov dword [esp + 0x24], eax
sets dl
test dl, dl
je 0x4583f1
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
mov eax, dword [eax]
lea edx, [ebx - 0x10]
cmp eax, dword [ecx]
je 0x45841e
mov esi, dword [eax + 0x18]
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458437
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x458437
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458435
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x45846e
cmp ecx, dword [esi - 0x10]
jne 0x45846e
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x4584a8
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x458482
call fcn.0040c3b0
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00551ae9
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x14], edi
mov byte [esp + 0x50], 4
mov esi, dword [edi - 0xc]
test esi, esi
jns 0x4584c5
push 0x80070057
call fcn.0040c390
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4584e4
push esi
lea ecx, [esp + 0x18]
call fcn.0040c110
mov edi, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edi
call fcn.005527a0
add esp, 8
cmp esi, dword [edi - 8]
jg 0x4584bb
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x348], 0
jbe 0x458624
mov esi, dword [eax + 0x344]
lea ebx, [eax + 0x344]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0041a440
mov ecx, dword [ebx]
cmp eax, ecx
je 0x458599
mov ebx, dword [eax + 0x10]
xor edx, edx
test ebx, ebx
setne dl
test edx, edx
jne 0x458546
push 0x80004005
call fcn.0040c390
mov edx, edi
jmp 0x458550
mov di, word [edx]
cmp di, word [ebx]
mov edi, dword [esp + 0x14]
jne 0x458587
cmp word [edx], 0
je 0x458583
mov di, word [edx + 2]
cmp di, word [ebx + 2]
mov word [esp + 0x12], di
mov edi, dword [esp + 0x14]
jne 0x458587
add edx, 4
add ebx, 4
cmp word [esp + 0x12], 0
jne 0x458550
xor edx, edx
jmp 0x45858c
sbb edx, edx
or edx, 1
test edx, edx
mov dword [esp + 0x24], eax
sets dl
test dl, dl
je 0x45859d
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
cmp dword [eax], esi
je 0x458624
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
add ebx, 0x344
push eax
mov ecx, ebx
call fcn.0041a440
mov esi, eax
cmp esi, dword [ebx]
je 0x4585d9
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00419f80
test al, al
jne 0x4585d9
mov dword [esp + 0x24], esi
jmp 0x4585df
mov eax, dword [ebx]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov ecx, ebx
mov eax, dword [eax]
mov esi, dword [eax + 0x14]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0045bc40
push dword [esp + 0x34]
lea eax, [esp + 0x28]
mov ecx, ebx
push dword [esp + 0x34]
push eax
call fcn.0041a380
test esi, esi
je 0x4588cd
mov eax, dword [esi + 0x24]
mov esi, dword [esi + 0x20]
mov dword [esp + 0x18], eax
jmp 0x45888d
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x458640
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov dword [esp + 0x30], 0
lea ebx, [eax + 0x10]
mov dword [esp + 0x34], ebx
mov eax, dword [ebp + 8]
lea esi, [ebx - 0x10]
mov byte [esp + 0x50], 5
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4586b4
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4586a3
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4586a3
call fcn.0040c3c0
mov dword [esp + 0x24], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x45869a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x24]
lea ebx, [eax + 0x10]
mov dword [esp + 0x34], ebx
jmp 0x4586b4
push dword [edx - 0xc]
lea ecx, [esp + 0x38]
push edx
call fcn.0040c1c0
mov ebx, dword [esp + 0x34]
add ebx, 0xfffffff0
push ecx
mov dword [esp + 0x28], esp
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov ecx, eax
lea eax, [ebx + 0xc]
jl 0x4586df
cmp ecx, dword [ebx]
jne 0x4586df
mov esi, ebx
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x45871c
mov eax, dword [ecx]
push 2
push dword [ebx + 4]
call dword [eax]
mov esi, eax
test esi, esi
jne 0x4586f3
call fcn.0040c3b0
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00551ae9
add esp, 0x10
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0x10]
mov dword [ecx], eax
call fcn.0044f8e0
add esp, 4
test eax, eax
jne 0x458763
lea ecx, [esp + 0x30]
call fcn.0044f700
test eax, eax
jne 0x458763
mov byte [esp + 0x50], 4
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4589a4
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4589a4
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x24], ecx
cmp dword [esi + 0x32c], 2
jne 0x45880e
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0044d300
mov dword [esp + 0x20], 1
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4587a6
push 0x80004005
call fcn.0040c390
mov eax, dword [esi + 0x330]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4587d6
test dx, dx
je 0x4587d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4587d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4587b0
xor eax, eax
jmp 0x4587db
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x45880e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x328]
sub ecx, eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xc8
jge 0x45880e
cmp dword [esi + 0x324], 0
mov byte [esp + 0x12], 1
jne 0x458813
mov byte [esp + 0x12], 0
test byte [esp + 0x20], 1
je 0x458838
mov edx, dword [esp + 0x18]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458838
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0x12], 0
je 0x45884b
mov esi, dword [esi + 0x324]
mov dword [esp + 0x18], esi
jmp 0x458869
mov eax, dword [ebp + 8]
push ecx
mov esi, esp
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.0040c3c0
add eax, 0x10
mov dword [esi], eax
call fcn.0045a3b0
mov dword [esp + 0x18], eax
mov byte [esp + 0x50], 4
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x458885
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push eax
call fcn.00456380
mov ebx, eax
test ebx, ebx
jne 0x4588b2
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0x2710
add ebx, 0x3c
je 0x4589a4
mov edx, dword [0x64168c]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x4588ee
cmp dword [eax + 0x10], esi
jae 0x4588d7
mov eax, dword [eax + 8]
jmp 0x4588db
mov eax, 0x2710
or esi, 0xffffffff
jmp 0x45888d
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4588c3
cmp ecx, edx
je 0x4588ee
mov dword [esp + 0x28], ecx
cmp esi, dword [ecx + 0x10]
jae 0x4588f2
mov dword [esp + 0x28], edx
lea eax, [esp + 0x28]
mov eax, dword [eax]
cmp eax, edx
je 0x4589a4
mov esi, dword [eax + 0x14]
test esi, esi
je 0x4589a4
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0xffffffff
push eax
push esi
mov ecx, ebx
call fcn.004507a0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x308]
test ecx, ecx
je 0x458944
push dword [esp + 0x2c]
mov eax, dword [ecx]
push 1
push dword [esp + 0x2c]
push esi
push dword [esp + 0x28]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov dword [ebx + 0x324], eax
lea eax, [esp + 0x2c]
push eax
mov dword [ebx + 0x32c], 1
call fcn.0044d300
lea ecx, [ebx + 0x330]
mov byte [esp + 0x50], 6
push eax
call fcn.0040b7d0
mov byte [esp + 0x50], 4
or ecx, 0xffffffff
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x458998
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x328], eax
add edi, 0xfffffff0
mov byte [esp + 0x50], 0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4589c3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x38]
test eax, eax
je 0x458a10
mov ebx, dword [esp + 0x3c]
mov esi, eax
cmp eax, ebx
je 0x458a07
lea ecx, [ecx]
mov edx, dword [esi]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4589fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xc
cmp esi, ebx
jne 0x4589e0
mov eax, dword [esp + 0x38]
push eax
call fcn.00551995
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4