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

Disassembly:
push 0x2c
mov eax, 0x10a53a0
call fcn.0107a6db
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x10b30cc]
mov edi, 0x10b30cc
cmp eax, edi
je 0x103a128
test byte [eax + 0x1c], 1
je 0x103a128
cmp byte [eax + 0x19], 5
jb 0x103a128
push dword [ebp + 0x28]
movzx esi, byte [ebp + 0x18]
push dword [ebp + 0x24]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x1c]
mov ecx, dword [edx + 8]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push ecx
push edx
push dword [ebp + 8]
push 0x1003658
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010370aa
call dword [fcn.010011d8]
push 0xa
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], eax
call fcn.0104df96
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 4], ebx
xor esi, esi
call fcn.0104a64b
cmp al, 1
jne 0x103a197
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x20]
call fcn.01049858
mov esi, eax
mov ecx, dword [0x10b30cc]
cmp ecx, edi
je 0x103a1a8
test byte [ecx + 0x1c], 2
je 0x103a1a8
movzx eax, byte [ecx + 0x19]
xor edx, edx
cmp esi, ebx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp eax, edx
jl 0x103a1a8
push dword [ebp - 0x30]
push esi
push 0x1003658
push 0x44
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104cb2f
jmp 0x103a1a2
push dword [ebp + 0x20]
lea ecx, [ebp - 0x38]
call fcn.0103a08e
mov ecx, dword [0x10b30cc]
cmp esi, ebx
mov dword [ebp - 0x10], ebx
jl 0x103a1ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x20]
mov esi, eax
mov ecx, dword [0x10b30cc]
cmp ecx, edi
je 0x103a1ff
test byte [ecx + 0x1c], 2
je 0x103a1ff
movzx eax, byte [ecx + 0x19]
xor edx, edx
cmp esi, ebx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp eax, edx
jl 0x103a1ff
push dword [ebp - 0x10]
push esi
push 0x1003658
push 0x45
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104cb2f
mov ecx, dword [0x10b30cc]
cmp esi, ebx
mov dword [ebp - 0x14], ebx
jl 0x103a414
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.01056213
cmp eax, ebx
mov dword [ebp + 0x20], eax
jl 0x103a41d
cmp dword [ebp - 0x10], ebx
jge 0x103a22c
mov dword [ebp - 0x10], ebx
mov eax, 0x10037ec
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x103a234
sub eax, edx
sar eax, 1
mov esi, 0x10036a0
mov ebx, eax
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x103a24e
and dword [ebp + 0x10], 0
sub eax, ecx
mov ecx, dword [ebp + 0x24]
sar eax, 1
mov dword [ebp + 0x14], eax
call fcn.01026f68
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x24]
imul eax, eax, 0xdac
add eax, dword [ebp + 0x14]
lea eax, [eax + ebx + 1]
push eax
call fcn.01027450
mov ecx, dword [ebp + 0x24]
push esi
call fcn.01027832
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
jle 0x103a3b2
cmp dword [ebp - 0x10], 1
jne 0x103a2a5
and dword [ebp - 0x14], 0xffffefff
call dword [fcn.010011d8]
sub eax, dword [ebp - 0x18]
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
jbe 0x103a37d
and dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x14]
push edx
push ebx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x1c]
mov dword [ebp + 0x20], eax
mov eax, dword [0x10b30cc]
cmp eax, edi
je 0x103a311
test byte [eax + 0x1c], 2
je 0x103a311
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp + 0x20], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x103a311
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x20]
push 0x1003658
push 0x46
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104412d
cmp dword [ebp + 0x20], 0
jl 0x103a36c
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x24]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp + 0x14]
mov esi, dword [ecx - 0xc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x38]
push dword [ebp - 0x14]
push eax
call fcn.01051a22
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
cmp esi, dword [eax - 0xc]
jge 0x103a34f
inc dword [ebp + 0x10]
push 0x1003694
call fcn.01027832
mov eax, dword [ebp + 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x103a360
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x103a2ba
jmp 0x103a37d
mov eax, dword [ebp + 0x14]
test eax, eax
mov byte [ebp - 4], 0
je 0x103a37d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [fcn.010011d8]
sub eax, dword [ebp - 0x18]
mov ecx, dword [0x10b30cc]
cmp ecx, edi
je 0x103a3b2
test byte [ecx + 0x1c], 2
je 0x103a3b2
cmp byte [ecx + 0x19], 5
jb 0x103a3b2
push eax
push dword [ebp - 0x20]
push 0x1003658
push 0x47
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104cb2f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
push 0x10037ec
call fcn.01027832
mov ecx, dword [ebp + 0x24]
push 0xffffffffffffffff
call fcn.0102c428
call dword [fcn.010011d8]
sub eax, dword [ebp - 0x18]
mov ecx, dword [0x10b30cc]
cmp ecx, edi
je 0x103a40c
test byte [ecx + 0x1c], 2
je 0x103a40c
cmp byte [ecx + 0x19], 5
jb 0x103a40c
push eax
push dword [ebp - 0x18]
push 0x1003658
push 0x48
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0104cb2f
mov ecx, dword [0x10b30cc]
cmp dword [ebp + 0x20], 0
jge 0x103a425
xor ebx, ebx
mov dword [ebp + 0x20], 0x80040365
jmp 0x103a427
mov ecx, dword [0x10b30cc]
jmp 0x103a414
xor ebx, ebx
cmp ecx, edi
je 0x103a480
test byte [ecx + 0x1c], 1
je 0x103a480
movzx eax, byte [ecx + 0x19]
xor ecx, ecx
cmp dword [ebp + 0x20], ebx
setl cl
dec ecx
and ecx, 3
inc ecx
inc ecx
cmp eax, ecx
jl 0x103a480
mov ecx, dword [ebp + 0x24]
push 0xf3c
lea eax, [ebp + 0x24]
push eax
call fcn.01027562
mov ecx, dword [ebp + 0x28]
push dword [ecx]
mov dword [ebp - 0x1c], 1
push dword [eax]
mov eax, dword [0x10b30cc]
push dword [ebp + 0x20]
push 0x1003658
push 0x49
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0105ef0f
test byte [ebp - 0x1c], 1
je 0x103a491
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.01026e74
lea ecx, [ebp - 0x38]
call fcn.0102b762
mov eax, dword [ebp + 0x20]
call fcn.0107a7c7
ret 0x24