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

Disassembly:
push 0xffffffffffffffff
push 0x46bebc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x14], ebp
mov al, byte [edi + 0x3a]
test al, al
jne 0x410e50
push 1
call fcn.00424800
mov ecx, edi
call fcn.0040e6c0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
mov eax, dword [edi + 0x10]
and eax, 0xffff0fff
cmp eax, 1
mov dword [esp + 0x10], ebx
je 0x410941
cmp eax, 2
jne 0x410d59
mov al, byte [edi + 0x39]
test al, al
jne 0x410d31
xor ebx, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], 0x4710ec
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], 0xa
lea ecx, [esp + 0x30]
mov dword [esp + 0x8c], ebp
call fcn.00409420
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x90], 1
call fcn.0040f750
mov eax, dword [eax]
push ebp
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x94], 2
call fcn.0042e866
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebp
je 0x410b77
mov bl, 3
lea ecx, [ecx]
mov ecx, edi
call fcn.0040e6c0
lea ecx, [esp + 0x30]
call fcn.0042e597
lea ecx, [esp + 0x30]
mov ebp, eax
call fcn.0042e794
test eax, eax
jne 0x410b6b
mov eax, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [eax + 0x38]
test eax, eax
je 0x410a4b
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add edx, 1
adc ecx, 0
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov dword [esp + 0x24], edx
call fcn.0040fc50
jmp 0x410b6b
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add ecx, 1
adc eax, 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
call fcn.0044f512
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x64], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x90], bl
call fcn.0042eb08
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x90], 4
call fcn.00402440
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x8c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ac0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
call fcn.00409450
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], eax
call fcn.00409480
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x74], edx
call fcn.0042e54f
mov eax, dword [esp + 0x64]
sub esp, 0x20
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
call fcn.00401470
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x90]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x94]
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x98]
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x9c]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0xa0]
add esp, 4
lea ecx, [esp + 0x68]
mov dword [esi + 0x18], edx
call fcn.0040ede0
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
jne 0x4109f0
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x410c4d
jg 0x410b91
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x410c4d
test ebx, ebx
jl 0x410c5d
jg 0x410ba6
cmp dword [esp + 0x28], 1
jbe 0x410c4d
push 0x68
call fcn.0044f3e3
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
mov byte [esp + 0x8c], 5
je 0x410bf6
lea eax, [esp + 0x18]
push 0xe0
push eax
call fcn.0042ce80
add esp, 8
mov eax, dword [eax]
push 0
push eax
push 4
mov ecx, esi
mov byte [esp + 0x98], 6
mov dword [esp + 0x20], 1
call fcn.0040f0b0
mov esi, eax
jmp 0x410bf8
xor esi, esi
test byte [esp + 0x14], 1
mov ebp, esi
mov dword [esp + 0x8c], 1
je 0x410c15
lea ecx, [esp + 0x18]
call fcn.004018d0
mov al, byte [esi + 0x39]
test al, al
jne 0x410c22
push 0xffffffffffffffff
push 0xffffffffffffffff
jmp 0x410c38
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
mov ecx, 1
sub ecx, edx
mov edx, 0
sbb edx, eax
push edx
push ecx
mov ecx, esi
call fcn.0040d7e0
push esi
mov ecx, edi
mov byte [esi + 0x39], 1
call fcn.0040e040
jmp 0x410c5d
test ebx, ebx
jl 0x410c5d
jg 0x410c5b
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x410c5d
mov ebp, edi
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x410c76
lea eax, [esi + 8]
push eax
mov ecx, ebp
call fcn.004107e0
mov esi, dword [esi]
test esi, esi
jne 0x410c65
test ebp, ebp
je 0x410cad
mov eax, dword [esp + 0x28]
push ebx
push eax
mov ecx, ebp
call fcn.0040d740
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x410cad
jg 0x410c99
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x410cad
test ebx, ebx
jl 0x410cad
jg 0x410ca6
cmp dword [esp + 0x28], 1
jbe 0x410cad
mov ecx, ebp
call fcn.00410460
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, edi
call fcn.0040d6f0
mov al, byte [edi + 0x39]
test al, al
jne 0x410ccb
push 0xffffffffffffffff
push 0xffffffffffffffff
jmp 0x410ce1
mov ebx, dword [edi + 0x40]
mov esi, dword [edi + 0x44]
mov eax, 1
sub eax, ebx
mov ecx, 0
sbb ecx, esi
push ecx
push eax
mov ecx, edi
call fcn.0040d7e0
mov byte [edi + 0x39], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x3c]
sub eax, edx
add ecx, eax
mov dword [edi + 0x3c], ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 0
call fcn.00409440
lea ecx, [esp + 0x48]
mov dword [esp + 0x8c], 0xffffffff
call fcn.0040e920
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esp + 0x10]
xor ebp, ebp
mov edx, dword [edi + 0x10]
and edx, 0xffff0fff
cmp edx, 1
jne 0x410d46
mov ecx, edi
call fcn.0040fae0
call esi
mov ecx, dword [esp + 0x94]
sub eax, ebx
cmp eax, ecx
ja 0x410e48
mov eax, dword [edi + 0x10]
and eax, 0xffff0fff
cmp eax, 1
je 0x410d6f
cmp eax, 2
je 0x410d6f
cmp eax, ebp
jne 0x410d85
mov al, byte [edi + 0x3a]
test al, al
mov ecx, edi
jne 0x410e4a
mov eax, dword [edi]
call dword [eax + 0x24]
test eax, eax
jne 0x410d91
mov ecx, edi
call fcn.00410460
jmp 0x410e48
call esi
mov dword [esp + 0x14], eax
call esi
mov ecx, dword [esp + 0x94]
sub eax, ebx
cmp eax, ecx
jae 0x410e38
lea ebx, [ebx]
mov edx, dword [edi]
mov ecx, edi
or ebp, 0xffffffff
xor ebx, ebx
xor esi, esi
call dword [edx + 0x24]
test eax, eax
jle 0x410e29
test esi, esi
jl 0x410e24
cmp esi, dword [edi + 0x50]
jge 0x410e24
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + esi*4]
mov cl, byte [eax + 0x3a]
test cl, cl
jne 0x410de3
mov ecx, dword [eax + 0x3c]
cmp ecx, ebp
jae 0x410de3
mov ebp, ecx
mov ebx, eax
mov edx, dword [edi]
mov ecx, edi
inc esi
call dword [edx + 0x24]
cmp esi, eax
jl 0x410dc2
test ebx, ebx
je 0x410e29
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x94]
sub eax, edx
cmp esi, eax
jbe 0x410e18
mov ecx, esi
sub ecx, eax
push ecx
mov ecx, ebx
call fcn.004108e0
call ebp
sub eax, dword [esp + 0x10]
cmp eax, esi
jb 0x410db0
jmp 0x410e30
call fcn.0044727a
mov ecx, edi
call fcn.00410460
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebp, ebp
call esi
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x3c]
sub eax, edx
add ecx, eax
mov dword [edi + 0x3c], ecx
mov ecx, edi
push ebp
call fcn.00424800
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x80
ret 4