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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push esi
mov esi, ecx
cmp dword [esi + 4], 1
jne 0x103dbf3
mov eax, 0x8007045b
jmp 0x103dfb0
cmp dword [esi + 0x5c], 0
jne 0x103dc00
xor eax, eax
jmp 0x103dfb0
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0x20
ja 0x103dfaa
call fcn.01057138
test eax, eax
je 0x103dfa3
call fcn.010570dd
test eax, eax
je 0x103dfa3
cmp dword [esi + 4], 1
jne 0x103dc37
mov eax, 0x8007045b
jmp 0x103dfaf
lea eax, [esi + 0x30]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 1
jne 0x103dc56
mov dword [ebp - 4], 0x8007045b
jmp 0x103df80
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x103dc8f
mov eax, dword [esi + 0x58]
test eax, eax
je 0x103dc70
push eax
call fcn.010a0872
and dword [esi + 0x58], 0
pop ecx
cmp dword [esi + 0x50], 0
je 0x103dc8f
push 0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
cmp edi, dword [esi + 0x50]
jne 0x103de85
and dword [esi + 0x50], 0
cmp dword [esi + 8], 0
je 0x103de85
xor ecx, ecx
push 4
pop edx
lea eax, [ebx + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a094e
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x103df13
and dword [ebp - 8], 0
xor eax, eax
lea edi, [ebp + 0x10]
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 0x10], eax
test ebx, ebx
jle 0x103dd5c
mov edx, dword [ebp + 0xc]
xor edi, edi
cmp edi, dword [esi + 0x2c]
mov dword [ebp - 0x14], edi
jge 0x103dd00
mov ebx, dword [edx + ecx*4]
lea eax, [esi + 0xc]
cmp dword [eax], ebx
je 0x103dcfd
inc edi
add eax, 0x10
cmp edi, dword [esi + 0x2c]
mov dword [ebp - 0x14], edi
jl 0x103dced
cmp edi, dword [esi + 0x2c]
jne 0x103dd10
mov eax, dword [edx + ecx*4]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [edi + ebx*4], eax
jmp 0x103dd53
shl edi, 4
lea eax, [edi + esi]
cmp byte [eax + 0x18], 1
jne 0x103dd34
mov edi, dword [ebp - 0x10]
cmp edi, dword [eax + 0x14]
jb 0x103dd2e
or ebx, 0xffffffff
sub ebx, dword [eax + 0x10]
cmp edi, ebx
jbe 0x103dd34
mov byte [eax + 0x19], 1
jmp 0x103dd56
mov edx, dword [edx + ecx*4]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [edi + ebx*4], edx
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx + 0x10], 1
mov edx, dword [ebp + 0xc]
mov byte [eax + 0x19], 0
mov byte [eax + 0x18], 0
inc dword [ebp - 8]
inc ecx
cmp ecx, dword [ebp + 8]
jl 0x103dcdd
or dword [ebp + 0xc], 0xffffffff
xor ecx, ecx
cmp dword [esi + 0x2c], ecx
jle 0x103ddb2
lea eax, [esi + 0x19]
cmp byte [eax], 0
je 0x103dda9
mov edx, dword [ebp - 0x10]
cmp edx, dword [eax - 5]
jb 0x103dd9e
or edi, 0xffffffff
sub edi, dword [eax - 9]
cmp edx, edi
ja 0x103dd9e
mov ebx, dword [ebp - 8]
mov edx, dword [eax - 0xd]
mov edi, dword [ebp - 0xc]
inc dword [ebp - 8]
mov dword [edi + ebx*4], edx
mov byte [ebp + ecx + 0x10], 1
mov byte [eax], 0
mov byte [eax - 1], 0
jmp 0x103dda9
mov edx, dword [eax - 9]
cmp dword [ebp + 0xc], edx
jbe 0x103dda9
mov dword [ebp + 0xc], edx
inc ecx
add eax, 0x10
cmp ecx, dword [esi + 0x2c]
jl 0x103dd6a
cmp dword [esi + 4], 1
je 0x103dede
xor edi, edi
cmp dword [ebp - 8], edi
jle 0x103de47
mov eax, dword [esi + 8]
mov ebx, dword [eax]
push edi
push edi
xor edx, edx
push edx
xor ecx, ecx
push ecx
push eax
call dword [ebx + 0x14]
lea eax, [ebp + 8]
push eax
push 0x100a760
push dword [esi + 8]
call dword [sym.imp.ole32.dll_CoUnmarshalInterface]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x103de8e
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 4], edi
jl 0x103de8e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
cmp dword [esi + 0x2c], edi
jle 0x103de44
lea ecx, [esi + 0x14]
cmp byte [ebp + edx + 0x10], 0
je 0x103de3b
mov ebx, dword [ecx - 4]
add ebx, eax
mov dword [ecx], ebx
mov byte [ecx + 4], 1
mov byte [ecx + 5], 0
inc edx
add ecx, 0x10
cmp edx, dword [esi + 0x2c]
jl 0x103de25
mov dword [esi + 0x48], edi
cmp dword [ebp + 0xc], 0xffffffff
je 0x103df7f
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x103df7f
mov eax, dword [esi + 0x50]
xor ebx, ebx
cmp eax, ebx
je 0x103ded8
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
add edi, edx
cmp edi, dword [esi + 0x54]
jae 0x103ded0
push ebx
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
test eax, eax
jne 0x103df7f
and dword [ebp - 4], 0
jmp 0x103df7f
mov eax, dword [esi + 0x48]
lea ecx, [eax + 1]
mov dword [esi + 0x48], ecx
cmp eax, 3
jae 0x103de44
xor ecx, ecx
cmp dword [esi + 0x2c], edi
jle 0x103dec8
push 0x64
lea eax, [esi + 0x18]
pop edx
cmp byte [ebp + ecx + 0x10], 0
je 0x103debf
mov byte [eax + 1], 1
mov byte [eax], 1
cmp dword [ebp + 0xc], edx
jbe 0x103debf
mov dword [ebp + 0xc], edx
inc ecx
add eax, 0x10
cmp ecx, dword [esi + 0x2c]
jl 0x103dea9
mov dword [ebp - 4], edi
jmp 0x103de47
mov dword [ebp - 4], ebx
jmp 0x103df7f
cmp dword [esi + 4], 1
jne 0x103deea
mov dword [ebp - 4], 0x8007045b
jmp 0x103df7f
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x103defb
push eax
call fcn.010a0872
pop ecx
mov dword [esi + 0x58], ebx
push 8
call fcn.010a08d3
pop ecx
cmp eax, ebx
je 0x103df0d
mov dword [eax], esi
mov edi, eax
jmp 0x103df0f
xor edi, edi
cmp edi, ebx
jne 0x103df1c
mov dword [ebp - 4], 0x8007000e
jmp 0x103df7f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x28
push 0
push dword [ebp + 0xc]
lea ebx, [edi + 4]
push edi
push 0x103dfba
push dword [esi + 0x4c]
mov dword [ebp + 8], eax
push ebx
mov dword [esi + 0x58], edi
call dword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
test eax, eax
jne 0x103df6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x103df5a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
xor eax, eax
mov dword [esi + 0x58], eax
push edi
mov dword [ebx], eax
mov dword [edi], eax
call fcn.010a0872
pop ecx
jmp 0x103df7f
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
add eax, ecx
mov dword [esi + 0x54], eax
pop edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x103df98
push dword [ebp - 0xc]
call fcn.010a093d
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
jl 0x103dfaf
xor eax, eax
jmp 0x103dfaf
mov eax, 0x8000ffff
jmp 0x103dfaf
mov eax, 0x80070057
pop ebx
pop esi
leave
ret 0xc