Function at 0x103d920
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 0x103d93f
mov eax, 0x8007045b
jmp 0x103dcfc
cmp dword [esi + 0x5c], 0
jne 0x103d94c
xor eax, eax
jmp 0x103dcfc
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0x20
ja 0x103dcf6
call fcn.01056cb8
test eax, eax
je 0x103dcef
call fcn.01056c5d
test eax, eax
je 0x103dcef
cmp dword [esi + 4], 1
jne 0x103d983
mov eax, 0x8007045b
jmp 0x103dcfb
lea eax, [esi + 0x30]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 1
jne 0x103d9a2
mov dword [ebp - 4], 0x8007045b
jmp 0x103dccc
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x103d9db
mov eax, dword [esi + 0x58]
test eax, eax
je 0x103d9bc
push eax
call fcn.010a0986
and dword [esi + 0x58], 0
pop ecx
cmp dword [esi + 0x50], 0
je 0x103d9db
push 0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
cmp edi, dword [esi + 0x50]
jne 0x103dbd1
and dword [esi + 0x50], 0
cmp dword [esi + 8], 0
je 0x103dbd1
xor ecx, ecx
push 4
pop edx
lea eax, [ebx + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a0a62
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x103dc5f
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 0x103daa8
mov edx, dword [ebp + 0xc]
xor edi, edi
cmp edi, dword [esi + 0x2c]
mov dword [ebp - 0x14], edi
jge 0x103da4c
mov ebx, dword [edx + ecx*4]
lea eax, [esi + 0xc]
cmp dword [eax], ebx
je 0x103da49
inc edi
add eax, 0x10
cmp edi, dword [esi + 0x2c]
mov dword [ebp - 0x14], edi
jl 0x103da39
cmp edi, dword [esi + 0x2c]
jne 0x103da5c
mov eax, dword [edx + ecx*4]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [edi + ebx*4], eax
jmp 0x103da9f
shl edi, 4
lea eax, [edi + esi]
cmp byte [eax + 0x18], 1
jne 0x103da80
mov edi, dword [ebp - 0x10]
cmp edi, dword [eax + 0x14]
jb 0x103da7a
or ebx, 0xffffffff
sub ebx, dword [eax + 0x10]
cmp edi, ebx
jbe 0x103da80
mov byte [eax + 0x19], 1
jmp 0x103daa2
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 0x103da29
or dword [ebp + 0xc], 0xffffffff
xor ecx, ecx
cmp dword [esi + 0x2c], ecx
jle 0x103dafe
lea eax, [esi + 0x19]
cmp byte [eax], 0
je 0x103daf5
mov edx, dword [ebp - 0x10]
cmp edx, dword [eax - 5]
jb 0x103daea
or edi, 0xffffffff
sub edi, dword [eax - 9]
cmp edx, edi
ja 0x103daea
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 0x103daf5
mov edx, dword [eax - 9]
cmp dword [ebp + 0xc], edx
jbe 0x103daf5
mov dword [ebp + 0xc], edx
inc ecx
add eax, 0x10
cmp ecx, dword [esi + 0x2c]
jl 0x103dab6
cmp dword [esi + 4], 1
je 0x103dc2a
xor edi, edi
cmp dword [ebp - 8], edi
jle 0x103db93
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 0x100a758
push dword [esi + 8]
call dword [sym.imp.ole32.dll_CoUnmarshalInterface]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x103dbda
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 0x103dbda
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
cmp dword [esi + 0x2c], edi
jle 0x103db90
lea ecx, [esi + 0x14]
cmp byte [ebp + edx + 0x10], 0
je 0x103db87
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 0x103db71
mov dword [esi + 0x48], edi
cmp dword [ebp + 0xc], 0xffffffff
je 0x103dccb
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x103dccb
mov eax, dword [esi + 0x50]
xor ebx, ebx
cmp eax, ebx
je 0x103dc24
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
add edi, edx
cmp edi, dword [esi + 0x54]
jae 0x103dc1c
push ebx
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
test eax, eax
jne 0x103dccb
and dword [ebp - 4], 0
jmp 0x103dccb
mov eax, dword [esi + 0x48]
lea ecx, [eax + 1]
mov dword [esi + 0x48], ecx
cmp eax, 3
jae 0x103db90
xor ecx, ecx
cmp dword [esi + 0x2c], edi
jle 0x103dc14
push 0x64
lea eax, [esi + 0x18]
pop edx
cmp byte [ebp + ecx + 0x10], 0
je 0x103dc0b
mov byte [eax + 1], 1
mov byte [eax], 1
cmp dword [ebp + 0xc], edx
jbe 0x103dc0b
mov dword [ebp + 0xc], edx
inc ecx
add eax, 0x10
cmp ecx, dword [esi + 0x2c]
jl 0x103dbf5
mov dword [ebp - 4], edi
jmp 0x103db93
mov dword [ebp - 4], ebx
jmp 0x103dccb
cmp dword [esi + 4], 1
jne 0x103dc36
mov dword [ebp - 4], 0x8007045b
jmp 0x103dccb
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x103dc47
push eax
call fcn.010a0986
pop ecx
mov dword [esi + 0x58], ebx
push 8
call fcn.010a09e7
pop ecx
cmp eax, ebx
je 0x103dc59
mov dword [eax], esi
mov edi, eax
jmp 0x103dc5b
xor edi, edi
cmp edi, ebx
jne 0x103dc68
mov dword [ebp - 4], 0x8007000e
jmp 0x103dccb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x28
push 0
push dword [ebp + 0xc]
lea ebx, [edi + 4]
push edi
push 0x103dd06
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 0x103dcbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x103dca6
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.010a0986
pop ecx
jmp 0x103dccb
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 0x103dce4
push dword [ebp - 0xc]
call fcn.010a0a51
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
jl 0x103dcfb
xor eax, eax
jmp 0x103dcfb
mov eax, 0x8000ffff
jmp 0x103dcfb
mov eax, 0x80070057
pop ebx
pop esi
leave
ret 0xc