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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x67c], eax
mov eax, dword [ebp + 0x14]
mov edx, eax
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x400
mov dword [ebp - 0x674], eax
and edx, 0x1000
xor eax, eax
mov dword [ebp - 0x680], ebx
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebx + 0x4ac], 0
mov dword [ebp - 0x660], eax
mov eax, dword [ecx]
push edi
push ecx
mov dword [ebp - 0x678], ecx
mov dword [ebp - 0x644], esi
mov dword [ebp - 0x684], edx
call dword [eax + 0xc]
movzx eax, ax
mov ecx, ebx
push eax
call fcn.10167e10
mov edi, eax
mov dword [ebp - 0x630], edi
test edi, edi
je 0x10167de8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
mov eax, dword [edi]
lea ecx, [ebp - 0x20c]
add esp, 0xc
push 0x104
push ecx
push str.PluginID
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [ebp - 0x630]
xor eax, eax
mov dword [ebp - 0x640], eax
xor edi, edi
mov dword [ebp - 0x664], eax
mov dword [ebp - 0x65c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x66c], edi
mov dword [ebp - 0x668], edi
call dword [eax + 0x18]
test eax, eax
jle 0x10167c65
mov edi, dword [ebp - 0x630]
cmp dword [ebx + 0x4ac], 0
jne 0x10167c5f
mov eax, dword [edi]
lea ecx, [ebp - 0x620]
push ecx
push dword [ebp - 0x65c]
mov ecx, edi
mov dword [ebp - 0x620], 0
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x620]
test eax, eax
je 0x10167a5e
push eax
push edi
mov ecx, ebx
call fcn.10169370
test eax, eax
je 0x10167c50
mov ecx, dword [ebp - 0x620]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x10167c50
test byte [ebp + 0x14], 2
mov ecx, dword [ebp - 0x620]
mov eax, dword [ecx]
je 0x101676ed
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x620]
mov eax, dword [ecx]
call dword [eax]
jmp 0x10167a5e
call dword [eax + 0xc]
cmp dword [ebp - 0x684], 0
jne 0x10167c31
cmp dword [ebp - 0x674], 0
jne 0x10167b78
test al, 0x20
je 0x10167b78
lea eax, [ebp - 0x620]
mov dword [ebp - 0x62c], 0
push eax
push 0
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 0
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0
call fcn.100d5b90
lea edi, [ebx + 0x490]
mov dword [ebp - 0x64c], 0
push 0x18
mov dword [ebp - 0x670], edi
mov dword [ebp - 0x648], 0
call fcn.10213511
add esp, 4
mov ecx, edi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.10151c10
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [edi + 0x14]
cmp eax, 0x7d0
jbe 0x101677d3
mov ecx, edi
call fcn.101cd910
call esi
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x64c]
mov esi, dword [eax]
cmp esi, eax
je 0x101678ae
cmp dword [esi + 0x14], 0
jne 0x10167858
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.102134e7
add esp, 0xc
lea eax, [ebp - 0x61c]
lea ebx, [esi + 0x10]
mov ecx, edi
push 0x104
push eax
push dword [ebx]
call fcn.101cd6c0
test eax, eax
je 0x10167858
mov edi, dword [ebp - 0x628]
cmp edi, dword [ebp - 0x624]
je 0x10167845
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.10004ba0
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [ebp - 0x628], 4
jmp 0x10167852
push ebx
push edi
lea ecx, [ebp - 0x62c]
call fcn.10006410
mov edi, dword [ebp - 0x670]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10167884
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10167880
lea ebx, [ebx]
cmp esi, dword [eax + 8]
jne 0x10167880
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10167870
mov esi, eax
jmp 0x1016789c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1016789c
mov edi, edi
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10167890
cmp esi, dword [ebp - 0x64c]
jne 0x101677e3
mov ebx, dword [ebp - 0x680]
mov eax, dword [ebp - 0x64c]
push dword [eax + 4]
lea eax, [ebp - 0x64c]
push eax
mov ecx, eax
call fcn.1002fd00
push 0x18
push dword [ebp - 0x64c]
call fcn.102134ff
mov edi, dword [ebp - 0x628]
add esp, 8
mov esi, dword [ebp - 0x62c]
mov eax, edi
sub eax, esi
test eax, 0xfffffffc
je 0x10167a85
mov eax, dword [ebp - 0x644]
mov ecx, dword [ebp - 0x668]
mov dword [ebp - 0x660], 1
or dword [eax], 1
cmp ecx, dword [ebp - 0x640]
je 0x10167924
mov eax, dword [ebp - 0x620]
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x668], ecx
jmp 0x10167943
lea eax, [ebp - 0x620]
push eax
push ecx
lea ecx, [ebp - 0x66c]
call fcn.100d5b90
mov eax, dword [ebp - 0x664]
mov dword [ebp - 0x640], eax
push dword [ebp - 0x684]
lea ecx, [ebp - 0x63c]
push dword [ebp - 0x628]
push dword [ebp - 0x62c]
push dword [ebp - 0x63c]
call fcn.100a0a00
mov edx, dword [ebp - 0x658]
test edx, edx
je 0x101679c1
mov ecx, dword [ebp - 0x650]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10167999
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10167e09
push ecx
push edx
call fcn.102134ff
add esp, 8
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0
mov esi, dword [ebp - 0x62c]
test esi, esi
je 0x10167a58
mov edi, dword [ebp - 0x628]
cmp esi, edi
je 0x10167a07
lea esp, [esp]
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101679fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x101679e0
mov esi, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x624]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10167a30
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10167e09
push ecx
push esi
call fcn.102134ff
add esp, 8
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 0
mov edi, dword [ebp - 0x630]
mov esi, dword [ebp - 0x65c]
mov ecx, edi
mov eax, dword [edi]
inc esi
mov dword [ebp - 0x65c], esi
call dword [eax + 0x18]
cmp esi, eax
jge 0x10167c5f
mov esi, dword [ebp - 0x644]
jmp 0x10167670
mov edx, dword [ebp - 0x658]
test edx, edx
je 0x10167aec
mov ecx, dword [ebp - 0x650]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10167ab8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10167e09
push ecx
push edx
call fcn.102134ff
mov edi, dword [ebp - 0x628]
add esp, 8
mov esi, dword [ebp - 0x62c]
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0
test esi, esi
je 0x10167b6c
cmp esi, edi
je 0x10167b1b
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10167b0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x10167af4
mov esi, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x624]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10167b44
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10167e09
push ecx
push esi
call fcn.102134ff
add esp, 8
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 0
mov edi, dword [ebp - 0x630]
mov esi, dword [ebp - 0x644]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.102134e7
mov ecx, dword [ebp - 0x620]
lea edx, [ebp - 0x414]
add esp, 0xc
mov eax, dword [ecx]
push 0x104
push edx
push str.IsConfirm
call dword [eax + 8]
cmp dword [ebp - 0x674], 0
jne 0x10167c31
push 0x1022c4d8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10167c31
push str.true
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10167c31
or dword [esi], 1
mov ecx, dword [ebx + 0x480]
mov dword [ebp - 0x660], 1
test ecx, ecx
je 0x10167bfa
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x67c]
mov eax, dword [ebp - 0x620]
mov dword [ebx + 0x480], eax
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x678]
mov word [ebx + 0x47c], ax
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov word [ebx + 0x47e], ax
jmp 0x10167a5e
mov ecx, dword [ebp - 0x620]
push 0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x620]
mov eax, dword [ecx]
call dword [eax + 0xc]
test al, 4
je 0x10167c50
or dword [esi], 2
mov ecx, dword [ebp - 0x620]
mov eax, dword [ecx]
call dword [eax]
jmp 0x10167a5e
mov edi, dword [ebp - 0x66c]
mov eax, dword [ebp - 0x638]
mov esi, dword [ebp - 0x63c]
sub eax, esi
test eax, 0xfffffffc
je 0x10167d47
mov ecx, dword [ebp - 0x678]
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x67c]
mov word [ebx + 0x462], ax
push ecx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov word [ebx + 0x460], ax
lea edx, [ebx + 0x470]
lea eax, [ebp - 0x63c]
cmp edx, eax
je 0x10167ce8
mov ecx, dword [edx]
mov eax, dword [ebp - 0x63c]
mov dword [edx], eax
mov eax, dword [ebp - 0x638]
mov dword [ebp - 0x63c], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x634]
mov dword [ebp - 0x638], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [ebp - 0x634], ecx
lea esi, [ebx + 0x448]
test esi, esi
je 0x10167cf9
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x680]
add ebx, 0x464
push ebx
call fcn.10166b80
lea eax, [ebp - 0x66c]
cmp ebx, eax
je 0x10167d36
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x640]
mov dword [ebx], edi
mov edi, eax
mov eax, dword [ebp - 0x668]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 8], ecx
mov dword [ebp - 0x640], eax
test esi, esi
je 0x10167d41
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x63c]
test edi, edi
je 0x10167d84
mov ecx, dword [ebp - 0x640]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10167d74
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10167e09
push ecx
push edi
call fcn.102134ff
mov esi, dword [ebp - 0x63c]
add esp, 8
test esi, esi
je 0x10167de8
mov edi, dword [ebp - 0x638]
cmp esi, edi
je 0x10167db9
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10167dac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x10167d92
mov esi, dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x634]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10167dde
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10167e09
push ecx
push esi
call fcn.102134ff
add esp, 8
mov eax, dword [ebp - 0x660]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
and eax, 5
pop esi
inc eax
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 0x14
call fcn.10200ab0
int3