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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102982f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
mov dword [eax], 0
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x30], eax
mov dword [edx], 0
test ecx, ecx
je 0x101841d6
cmp dword [ebp + 0xc], 1
jb 0x101841d6
lea edi, [ebx + 0x108]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], edi
test edi, edi
je 0x10183e64
mov eax, dword [edi]
test eax, eax
je 0x10183e64
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [ebx + 0x12d], 0
jne 0x101841cf
mov eax, dword [ebx + 0x13c]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x101841cf
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x10183e97
cmp dword [ecx + 4], 0
jmp 0x10183ea6
mov eax, dword [eax + 4]
test eax, eax
je 0x101841cf
cmp dword [eax + 8], 0
setne al
test al, al
je 0x101841cf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lea ecx, [ebp - 0x18]
call fcn.100930a0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x80004005
nop dword [eax]
mov ecx, dword [ebx + 0x140]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x10183ee8
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 1
cmp byte [ebx + 0x12d], 0
mov esi, dword [ebp - 0x14]
jne 0x10183f03
test esi, esi
je 0x10183f13
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test esi, esi
je 0x10183f13
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x30]
mov dword [eax], 0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x10183f33
cmp dword [eax + 4], 0
jne 0x10183f33
xor eax, eax
jmp 0x10184002
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x2c], eax
xor cl, cl
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov byte [ebp - 0x21], cl
test eax, eax
je 0x10183fe2
mov esi, dword [ebp - 0x2c]
mov ecx, eax
mov edx, 0x1000
sub ecx, ebx
cmp ecx, edx
cmovb edx, ecx
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ecx]
mov edi, dword [ecx]
cmp edi, eax
je 0x10183f8e
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
mov eax, dword [ebp - 0x40]
push edx
add eax, ebx
push eax
call fcn.10258210
mov cl, al
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x21], cl
jmp 0x10183fb5
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x10183fb2
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x40]
push edx
add eax, ebx
push eax
call fcn.1025a990
mov cl, al
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x21], cl
jmp 0x10183fb5
mov cl, byte [ebp - 0x21]
add ebx, eax
test cl, cl
je 0x10183fdc
test eax, eax
je 0x10183fdc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0xbb8
ja 0x10183fd9
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jb 0x10183f51
mov cl, byte [ebp - 0x21]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov dword [eax], ebx
test cl, cl
jne 0x10184136
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
cmp eax, 0x2efe
je 0x10184130
mov ebx, dword [ebp - 0x28]
cmp eax, 0x2eff
je 0x10184130
cmp eax, 0x2ee2
je 0x10184130
cmp dword [ebp - 0x34], 0x1d
jae 0x101840f8
mov ebx, dword [ebx + 0x140]
cmp esi, ebx
je 0x10184044
test ebx, ebx
je 0x10184036
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test esi, esi
je 0x10184041
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x28]
cmp byte [ebx + 0x12d], 0
mov esi, dword [ebp - 0x14]
jne 0x1018405e
test esi, esi
je 0x1018406e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test esi, esi
je 0x1018406e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor esi, esi
mov dword [ebp - 0x14], esi
push 0x7d0
lea ecx, [ebx + 0x10c]
call fcn.10103930
mov ebx, dword [ebx + 0x140]
cmp esi, ebx
je 0x101840a0
test ebx, ebx
je 0x10184092
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test esi, esi
je 0x1018409d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x28]
cmp byte [ebx + 0x12d], 0
mov esi, dword [ebp - 0x14]
jne 0x101840ba
test esi, esi
je 0x101840cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test esi, esi
je 0x101840cc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0x14], 0
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.10025bb0
mov byte [ebp - 4], 2
cmp byte [ebx + 0x12d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jne 0x10184119
call fcn.10025be0
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test esi, esi
je 0x10184107
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, 0x1e
jb 0x10183ed0
jmp 0x10184152
call fcn.10025be0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10184152
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10184152
mov byte [ebp - 4], 0
jmp 0x10184144
mov byte [ebp - 4], 0
xor eax, eax
test ebx, ebx
sete al
mov dword [ebp - 0x38], eax
test esi, esi
je 0x1018414f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], edi
test edi, edi
je 0x1018416d
mov eax, dword [edi]
test eax, eax
je 0x1018416d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 3
mov ecx, ebx
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
add dword [ebx + 0x130], eax
mov eax, dword [ebx]
adc dword [ebx + 0x134], 0
call dword [eax + 4]
mov byte [ebp - 4], 0
test edi, edi
je 0x101841a6
mov eax, dword [edi]
test eax, eax
je 0x1018419f
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x101841cb
mov ecx, dword [eax]
test ecx, ecx
je 0x101841c4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x18], 0
mov eax, ebx
jmp 0x101841db
mov ebx, 0x80004005
jmp 0x101841a9
mov eax, 0x80030009
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret 0x10