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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x648], ebx
cmp dword [ebx + 4], 0
je 0x10159929
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov dword [ebx + 0x4a8], 0
call fcn.10057d90
push str.Init_1
lea ecx, [ebp - 0x634]
call fcn.10002490
mov esi, dword [ebp - 0x634]
add esi, 0xfffffff0
push esi
call fcn.10002a60
add esp, 4
lea ecx, [ebp - 0x658]
add eax, 0x10
mov dword [ebp - 0x65c], eax
push str.EXMN
call fcn.10002490
mov dword [ebp - 0x654], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
or edi, 0xffffffff
mov dword [ebp - 0x660], eax
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101599a2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.10157dd0
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebx + 8], eax
lea eax, [ebp - 0x634]
push eax
call fcn.10159420
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x640], ecx
push dword [eax]
call fcn.1009e3c0
mov edx, dword [ebp - 0x634]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101599ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [0x1025ab20]
test ebx, ebx
jne 0x10159a3e
push 0x1025ab08
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1025ab20], ebx
jne 0x10159a2d
push 4
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10159a23
mov ecx, eax
call fcn.101578b0
mov dword [0x1025ab20], eax
jmp 0x10159a2d
mov dword [0x1025ab20], 0
push 0x1025ab08
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [0x1025ab20]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x10159a4b
xor esi, esi
jmp 0x10159fd4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov eax, dword [ebx]
xor esi, esi
mov ecx, ebx
mov dword [ebp - 0x638], esi
call dword [eax + 0x10]
test eax, eax
jle 0x10159bc0
lea esp, [esp]
mov eax, dword [ebx]
lea ecx, [ebp - 0x644]
push ecx
push esi
mov ecx, ebx
mov dword [ebp - 0x644], 0
call dword [eax + 0x14]
mov esi, dword [ebp - 0x644]
test esi, esi
je 0x10159ba1
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
add esp, 0xc
push 0x104
push ecx
push str.PluginID
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x640]
lea eax, [ebp - 0x20c]
push eax
call fcn.1009e420
test eax, eax
je 0x10159ba1
mov esi, dword [ebp - 0x648]
lea edi, [esi + 0x430]
test edi, edi
je 0x10159af6
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wtol
lea edx, [esi + 0x424]
mov dword [ebp - 0x650], eax
mov esi, dword [edx]
add esp, 4
mov dword [ebp - 0x634], esi
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x10159b36
cmp dword [ecx + 0x10], eax
jae 0x10159b2c
mov ecx, dword [ecx + 8]
jmp 0x10159b30
mov esi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x10159b22
cmp esi, dword [ebp - 0x634]
je 0x10159b43
cmp eax, dword [esi + 0x10]
jae 0x10159b8d
lea eax, [ebp - 0x650]
mov ecx, edx
mov dword [ebp - 0x634], eax
lea eax, [ebp - 0x639]
push eax
lea eax, [ebp - 0x634]
push eax
push 0x1021a3bc
call fcn.1002ddb0
mov ecx, dword [ebp - 0x648]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ecx + 0x424]
call fcn.1009e440
mov esi, dword [ebp - 0x64c]
mov eax, dword [ebp - 0x644]
mov dword [esi + 0x14], eax
test edi, edi
je 0x10159ba1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x638]
mov ecx, ebx
mov eax, dword [ebx]
inc esi
mov dword [ebp - 0x638], esi
call dword [eax + 0x10]
cmp esi, eax
jl 0x10159a70
or edi, 0xffffffff
push str.Init_2
lea ecx, [ebp - 0x638]
call fcn.10002490
lea ecx, [ebp - 0x660]
call fcn.10057dc0
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x65c]
call fcn.10002790
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x638]
mov dword [ebp - 0x660], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10159c16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x640]
mov ecx, ebx
push 0
push str.groupSize
push str.Group
call fcn.1009e260
mov esi, 1
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x634], esi
cmp eax, esi
jl 0x10159fb7
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 0
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
push esi
mov dword [ebp - 0x644], eax
lea eax, [ebp - 0x644]
push str.group__d
push eax
call fcn.10002cb0
mov esi, dword [ebp - 0x644]
add esp, 0xc
mov ecx, ebx
push 0
push 0x1020e514
push esi
call fcn.1009e260
mov ebx, eax
lea eax, [ebp - 0x414]
push 0x208
push 0
push eax
mov dword [ebp - 0x64c], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x640]
lea eax, [ebp - 0x414]
add esp, 0x18
push 0x104
push eax
push str.title
push esi
call fcn.1009e350
mov ecx, dword [ebp - 0x640]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.extIds
push esi
call fcn.1009e350
mov ecx, dword [ebp - 0x640]
lea eax, [ebp - 0x61e]
push 0x104
push eax
push str.innerIcon
push esi
call fcn.1009e350
test ebx, ebx
jle 0x10159f59
cmp word [ebp - 0x414], 0
je 0x10159f59
cmp word [ebp - 0x20c], 0
je 0x10159f59
mov ecx, dword [ebp - 0x640]
push 1
push str.category
push esi
call fcn.1009e260
lea ecx, [ebp - 0x414]
mov ebx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10159d84
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x630]
call fcn.10003740
mov eax, dword [ebp - 0x64c]
lea ecx, [ebp - 0x650]
push 0x10202c44
mov word [ebp - 0x620], ax
call fcn.10002490
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x638]
call fcn.10002490
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x638]
push eax
call fcn.101b1a50
mov edx, dword [ebp - 0x638]
add esp, 0xc
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10159e0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x650]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10159e2c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x648]
lea edi, [esi + 0x430]
mov dword [ebp - 0x66c], edi
test edi, edi
je 0x10159e49
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x484]
mov dword [ebp - 0x64c], ebx
mov esi, dword [ecx]
mov edx, esi
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10159e76
cmp dword [eax + 0x10], ebx
jae 0x10159e6c
mov eax, dword [eax + 8]
jmp 0x10159e70
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10159e62
cmp esi, edx
je 0x10159e7f
cmp ebx, dword [esi + 0x10]
jae 0x10159ec7
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x664], eax
lea eax, [ebp - 0x639]
push eax
lea eax, [ebp - 0x664]
push eax
push 0x1021a3bc
call fcn.10059000
mov ecx, dword [ebp - 0x648]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x668]
push eax
lea ecx, [ecx + 0x484]
call fcn.10157570
mov esi, dword [ebp - 0x668]
lea ebx, [esi + 0x14]
mov esi, dword [ebx + 4]
cmp dword [ebx + 8], esi
je 0x10159f22
mov eax, dword [ebp - 0x630]
add eax, 0xfffffff0
push eax
call fcn.10002a60
add eax, 0x10
lea ecx, [esi + 4]
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x62c]
push eax
call fcn.10020590
mov ax, word [ebp - 0x620]
lea edi, [esi + 0x12]
mov word [esi + 0x10], ax
mov ecx, 0x82
lea esi, [ebp - 0x61e]
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x21c
mov edi, dword [ebp - 0x66c]
jmp 0x10159f31
lea eax, [ebp - 0x630]
mov ecx, ebx
push eax
push esi
call fcn.101571d0
test edi, edi
je 0x10159f3c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x644]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10159f70
mov ecx, dword [edx]
push edx
jmp 0x10159f6b
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10159f70
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x62c]
call fcn.1002a3c0
mov edx, dword [ebp - 0x630]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10159f98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x634]
mov ebx, dword [ebp - 0x640]
inc esi
mov dword [ebp - 0x634], esi
cmp esi, dword [ebp - 0x670]
jle 0x10159c48
mov eax, dword [ebp - 0x648]
lea ecx, [ebp - 0x660]
mov dword [eax + 4], 1
call fcn.10057dc0
mov esi, 1
mov edx, dword [ebp - 0x658]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10159ff1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x65c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1015a00c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8