Function at 0x103450f
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 0x103452e
mov eax, 0x8007045b
jmp 0x10348eb
cmp dword [esi + 0x5c], 0
jne 0x103453b
xor eax, eax
jmp 0x10348eb
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0x20
ja 0x10348e5
call fcn.01049c36
test eax, eax
je 0x10348de
call fcn.01049bdb
test eax, eax
je 0x10348de
cmp dword [esi + 4], 1
jne 0x1034572
mov eax, 0x8007045b
jmp 0x10348ea
lea eax, [esi + 0x30]
push eax
mov dword [ebp - 0x18], eax
call dword [fcn.010011c4]
cmp dword [esi + 4], 1
jne 0x1034591
mov dword [ebp - 4], 0x8007045b
jmp 0x10348bb
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10345ca
mov eax, dword [esi + 0x58]
test eax, eax
je 0x10345ab
push eax
call fcn.0107a407
and dword [esi + 0x58], 0
pop ecx
cmp dword [esi + 0x50], 0
je 0x10345ca
push 0
push edi
push dword [esi + 0x4c]
call dword [0x1001304]
cmp edi, dword [esi + 0x50]
jne 0x10347c0
and dword [esi + 0x50], 0
cmp dword [esi + 8], 0
je 0x10347c0
xor ecx, ecx
push 4
pop edx
lea eax, [ebx + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0107a4e3
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
je 0x103484e
and dword [ebp - 8], 0
xor eax, eax
lea edi, [ebp + 0x10]
stosw word es:[edi], ax
call dword [fcn.010011d8]
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 0x10], eax
jle 0x1034697
mov edx, dword [ebp + 0xc]
xor edi, edi
cmp edi, dword [esi + 0x2c]
mov dword [ebp - 0x14], edi
jge 0x103463b
mov ebx, dword [edx + ecx*4]
lea eax, [esi + 0xc]
cmp dword [eax], ebx
je 0x1034638
inc edi
add eax, 0x10
cmp edi, dword [esi + 0x2c]
mov dword [ebp - 0x14], edi
jl 0x1034628
cmp edi, dword [esi + 0x2c]
jne 0x103464b
mov eax, dword [edx + ecx*4]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov dword [edi + ebx*4], eax
jmp 0x103468e
shl edi, 4
lea eax, [edi + esi]
cmp byte [eax + 0x18], 1
jne 0x103466f
mov edi, dword [ebp - 0x10]
cmp edi, dword [eax + 0x14]
jb 0x1034669
or ebx, 0xffffffff
sub ebx, dword [eax + 0x10]
cmp edi, ebx
jbe 0x103466f
mov byte [eax + 0x19], 1
jmp 0x1034691
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 0x1034618
or dword [ebp + 0xc], 0xffffffff
xor ecx, ecx
cmp dword [esi + 0x2c], ecx
jle 0x10346ed
lea eax, [esi + 0x19]
cmp byte [eax], 0
je 0x10346e4
mov edx, dword [ebp - 0x10]
cmp edx, dword [eax - 5]
jb 0x10346d9
or edi, 0xffffffff
sub edi, dword [eax - 9]
cmp edx, edi
ja 0x10346d9
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 0x10346e4
mov edx, dword [eax - 9]
cmp dword [ebp + 0xc], edx
jbe 0x10346e4
mov dword [ebp + 0xc], edx
inc ecx
add eax, 0x10
cmp ecx, dword [esi + 0x2c]
jl 0x10346a5
cmp dword [esi + 4], 1
je 0x1034819
xor edi, edi
cmp dword [ebp - 8], edi
jle 0x1034782
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 0x1007a48
push dword [esi + 8]
call dword [0x1001588]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x10347c9
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 0x10347c9
call dword [fcn.010011d8]
xor edx, edx
cmp dword [esi + 0x2c], edi
jle 0x103477f
lea ecx, [esi + 0x14]
cmp byte [ebp + edx + 0x10], 0
je 0x1034776
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 0x1034760
mov dword [esi + 0x48], edi
cmp dword [ebp + 0xc], 0xffffffff
je 0x10348ba
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x10348ba
mov eax, dword [esi + 0x50]
xor ebx, ebx
cmp eax, ebx
je 0x1034813
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
add edi, edx
cmp edi, dword [esi + 0x54]
jae 0x103480b
push ebx
push edx
push eax
push ecx
call dword [0x10012f8]
test eax, eax
jne 0x10348ba
and dword [ebp - 4], 0
jmp 0x10348ba
mov eax, dword [esi + 0x48]
cmp eax, 3
lea ecx, [eax + 1]
mov dword [esi + 0x48], ecx
jae 0x103477f
xor ecx, ecx
cmp dword [esi + 0x2c], edi
jle 0x1034803
push 0x64
lea eax, [esi + 0x18]
pop edx
cmp byte [ebp + ecx + 0x10], 0
je 0x10347fa
cmp dword [ebp + 0xc], edx
mov byte [eax + 1], 1
mov byte [eax], 1
jbe 0x10347fa
mov dword [ebp + 0xc], edx
inc ecx
add eax, 0x10
cmp ecx, dword [esi + 0x2c]
jl 0x10347e4
mov dword [ebp - 4], edi
jmp 0x1034782
mov dword [ebp - 4], ebx
jmp 0x10348ba
cmp dword [esi + 4], 1
jne 0x1034825
mov dword [ebp - 4], 0x8007045b
jmp 0x10348ba
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x1034836
push eax
call fcn.0107a407
pop ecx
mov dword [esi + 0x58], ebx
push 8
call fcn.0107a468
cmp eax, ebx
pop ecx
je 0x1034848
mov dword [eax], esi
mov edi, eax
jmp 0x103484a
xor edi, edi
cmp edi, ebx
jne 0x1034857
mov dword [ebp - 4], 0x8007000e
jmp 0x10348ba
call dword [fcn.010011d8]
push 0x28
push 0
push dword [ebp + 0xc]
lea ebx, [edi + 4]
push edi
push 0x10348f5
push dword [esi + 0x4c]
mov dword [ebp + 8], eax
push ebx
mov dword [esi + 0x58], edi
call dword [0x10012fc]
test eax, eax
jne 0x10348aa
call dword [fcn.010011dc]
test eax, eax
jle 0x1034895
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.0107a407
pop ecx
jmp 0x10348ba
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 [fcn.010011c0]
cmp dword [ebp - 0xc], 0
je 0x10348d3
push dword [ebp - 0xc]
call fcn.0107a4d2
pop ecx
mov eax, dword [ebp - 4]
test eax, eax
jl 0x10348ea
xor eax, eax
jmp 0x10348ea
mov eax, 0x8000ffff
jmp 0x10348ea
mov eax, 0x80070057
pop ebx
pop esi
leave
ret 0xc