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

Disassembly:
push 0xad8
mov eax, 0x10a558a
call fcn.0107a74e
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x30]
and dword [ebp - 0x128], 0
mov dword [ebp - 0x170], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp + 0x28]
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x150], edx
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
mov edi, 0x1003658
je 0x103b1b7
test byte [eax + 0x1c], 1
je 0x103b17d
cmp byte [eax + 0x19], 5
jb 0x103b17d
push edx
push dword [ebp - 0x144]
push dword [ebp - 0x14c]
push dword [ebp - 0x178]
push dword [ebp - 0x168]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x16c]
push dword [ebp - 0x170]
push ebx
push ecx
push edi
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01036eff
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x103b1b7
test byte [eax + 0x1c], 2
je 0x103b1b7
cmp byte [eax + 0x19], 4
jb 0x103b1b7
push dword [ebp - 0x168]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x16c]
push dword [ebp - 0x170]
push ebx
push edi
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01036cfc
xor ebx, ebx
mov edi, 0x10b7af8
push edi
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x12c], ebx
mov byte [ebp - 0x188], bl
call fcn.0104078f
lea ecx, [ebp - 0x124]
mov dword [ebp - 4], ebx
call fcn.0104b173
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x18c], 0x49
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x180], ebx
push 0xa
lea ecx, [ebp - 0x1c4]
call fcn.0104df96
push dword [ebp - 0x154]
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 3
call fcn.01027916
push 0x1002364
push 0x1003884
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 4
call fcn.0102d3f2
push 0x1003880
push 0x1003874
lea ecx, [ebp - 0x148]
call fcn.0102d3f2
push 0x1003870
push 0x1003864
lea ecx, [ebp - 0x148]
call fcn.0102d3f2
push 0x1003860
push 0x1003854
lea ecx, [ebp - 0x148]
call fcn.0102d3f2
push edi
lea ecx, [ebp - 0x190]
call fcn.0104078f
push edi
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 5
call fcn.0104078f
push 0x7e
lea eax, [ebp - 0x8e]
push ebx
push eax
mov word [ebp - 0x90], bx
call fcn.0107aa60
add esp, 0xc
push 0xa
lea ecx, [ebp - 0x1ac]
call fcn.0104df96
mov byte [ebp - 4], 7
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x194], ebx
call dword [fcn.010011d8]
push 0x80000001
mov dword [ebp - 0x184], eax
call dword [0x1001310]
mov ebx, dword [fcn.010011c4]
mov dword [ebp - 0x164], eax
lea eax, [esi + 0x128]
push eax
call ebx
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x103b315
call fcn.01032313
jmp 0x103b34b
mov ecx, 0x80040378
mov dword [ebp - 0x12c], ecx
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x103b34b
test byte [eax + 0x1c], 2
je 0x103b34b
cmp byte [eax + 0x19], 2
jb 0x103b34b
push ecx
push 0x1003658
push 0x5b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
lea eax, [esi + 0x128]
push eax
call dword [fcn.010011c0]
cmp dword [ebp - 0x12c], 0
jl 0x103b3e5
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x160]
mov ecx, esi
mov dword [ebp - 0x134], 1
call fcn.010380ee
mov ecx, dword [esi + 0x140]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x130], eax
call fcn.0103303e
mov eax, dword [eax]
lea ecx, [ebp - 0x194]
push ecx
lea ecx, [ebp - 0x140]
push ecx
push dword [ebp - 0x130]
push eax
call fcn.01079c63
cmp dword [ebp - 0x194], 0
je 0x103b3e5
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x140]
call fcn.01041fd3
push edi
lea ecx, [ebp - 0x174]
call fcn.0104078f
cmp dword [ebp - 0x12c], 0
mov byte [ebp - 4], 8
jl 0x103b630
push dword [ebp - 0x170]
lea ecx, [ebp - 0x174]
call fcn.01027858
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0xae4]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x90]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x13c]
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp - 0x168]
push dword [ebp - 0x16c]
push eax
call fcn.01039c84
test eax, eax
mov dword [ebp - 0x12c], eax
jl 0x103b630
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.0105da63
push 0x8004036c
push eax
call fcn.01049f58
test eax, eax
mov dword [ebp - 0x12c], eax
jl 0x103b630
and dword [ebp - 0x130], 0
lea edx, [ebp - 0x130]
push edx
push dword [ebp - 0x150]
mov eax, dword [ebp - 0x180]
push dword [ebp - 0x144]
mov ecx, dword [eax]
push dword [ebp - 0x13c]
lea edx, [ebp - 0xae4]
push dword [ebp + 0x1c]
mov byte [ebp - 4], 9
push dword [ebp + 0x18]
push dword [ebp - 0x15c]
push dword [ebp - 0x138]
push dword [ebp - 0x18c]
push edx
push dword [ebp - 0x174]
push dword [ebp - 0x148]
push eax
call dword [ecx + 0x40]
test eax, eax
mov dword [ebp - 0x12c], eax
jl 0x103b55d
push dword [ebp - 0x14c]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x1c4]
push dword [ebp - 0x13c]
push dword [ebp - 0x160]
push eax
push dword [ebp - 0x130]
call fcn.0103a0cb
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x130]
test eax, eax
mov byte [ebp - 4], 8
je 0x103b571
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x12c], 0
jl 0x103b630
lea eax, [esi + 0x94]
push eax
call ebx
push dword [ebp - 0x154]
lea ecx, [esi + 0x104]
call fcn.010278b6
push dword [ebp - 0x170]
lea ecx, [esi + 0x10c]
call fcn.010278b6
push dword [ebp - 0x16c]
lea ecx, [esi + 0x114]
call fcn.010278b6
mov eax, dword [ebp + 0x18]
push dword [ebp - 0x168]
mov dword [esi + 0x11c], eax
mov eax, dword [ebp + 0x1c]
lea edi, [esi + 0x120]
lea ecx, [esi + 0x118]
mov dword [edi], eax
call fcn.010278b6
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [ebp - 0x150]
mov eax, dword [eax]
mov dword [esi + 0x124], eax
lea eax, [ebp - 0x158]
lea ecx, [esi + 0x108]
push eax
call fcn.010277db
lea eax, [esi + 0x94]
push eax
call dword [fcn.010011c0]
lea ecx, [ebp - 0x158]
call fcn.01035715
mov ecx, dword [ebp - 0x178]
mov dword [ecx], eax
mov dword [ebp - 4], 8
cmp dword [ebp - 0x134], 0
je 0x103b65a
lea edi, [esi + 0x128]
push edi
call ebx
mov esi, dword [esi + 0x140]
test esi, esi
je 0x103b653
mov ecx, esi
call fcn.01032396
push edi
call dword [fcn.010011c0]
push dword [ebp - 0x164]
call dword [0x1001310]
cmp dword [ebp - 0x12c], 0
jge 0x103b67a
push dword [ebp - 0x12c]
call fcn.0104a19b
mov eax, dword [ebp - 0x178]
test eax, eax
je 0x103b7d1
cmp dword [eax], 0
je 0x103b7d1
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x103b6f3
test byte [eax + 0x1c], 2
je 0x103b6f3
cmp byte [eax + 0x19], 4
jb 0x103b6f3
mov ecx, dword [ebp - 0x150]
test ecx, ecx
je 0x103b6b7
mov esi, dword [ecx]
jmp 0x103b6b9
xor esi, esi
mov ecx, dword [ebp - 0x144]
test ecx, ecx
je 0x103b6c7
mov edx, dword [ecx]
jmp 0x103b6c9
xor edx, edx
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x103b6d7
mov ecx, dword [ecx]
jmp 0x103b6d9
xor ecx, ecx
push esi
push edx
push ecx
push 0x1003658
push 0x5d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104412d
mov eax, dword [0x10b30cc]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx - 0xc]
xor ebx, ebx
mov dword [ebp - 0x130], edx
mov edi, ecx
mov esi, 0xfa0
cmp eax, 0x10b30cc
je 0x103b76a
test byte [eax + 0x1c], 2
je 0x103b76a
cmp byte [eax + 0x19], 4
jb 0x103b76a
push edi
lea ecx, [ebp - 0x134]
call fcn.01027916
or dword [ebp - 0x128], 1
push esi
lea ecx, [ebp - 0x164]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.01027562
push dword [eax]
mov eax, dword [0x10b30cc]
or dword [ebp - 0x128], 2
push ebx
push 0x1003658
push 0x5e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104cb61
mov eax, dword [0x10b30cc]
test byte [ebp - 0x128], 2
je 0x103b78d
mov ecx, dword [ebp - 0x164]
and dword [ebp - 0x128], 0xfffffffd
add ecx, 0xfffffff0
call fcn.01026e74
mov eax, dword [0x10b30cc]
test byte [ebp - 0x128], 1
mov dword [ebp - 4], 8
je 0x103b7b7
mov ecx, dword [ebp - 0x134]
and dword [ebp - 0x128], 0xfffffffe
add ecx, 0xfffffff0
call fcn.01026e74
mov eax, dword [0x10b30cc]
cmp dword [ebp - 0x130], esi
jbe 0x103b833
sub dword [ebp - 0x130], esi
add edi, 0x1f40
inc ebx
jmp 0x103b70b
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x103b833
test byte [eax + 0x1c], 2
je 0x103b833
cmp byte [eax + 0x19], 4
jb 0x103b833
mov ecx, dword [ebp - 0x150]
test ecx, ecx
je 0x103b7f7
mov esi, dword [ecx]
jmp 0x103b7f9
xor esi, esi
mov ecx, dword [ebp - 0x144]
test ecx, ecx
je 0x103b807
mov edx, dword [ecx]
jmp 0x103b809
xor edx, edx
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x103b817
mov ecx, dword [ecx]
jmp 0x103b819
xor ecx, ecx
push esi
push edx
push ecx
push 0x1003658
push 0x5f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104412d
mov eax, dword [0x10b30cc]
xor ebx, ebx
cmp dword [ebp - 0x140], ebx
je 0x103b8d9
call dword [fcn.010011d8]
sub eax, dword [ebp - 0x184]
mov dword [ebp - 0x160], ebx
mov esi, eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x15c]
mov dword [ebp - 0x154], ebx
push dword [ebp - 0x138]
mov dword [ebp - 0x134], ebx
push dword [ebp - 0x17c]
call fcn.0103f84d
cmp eax, ebx
jl 0x103b8c3
push dword [ebp - 0x134]
mov eax, dword [ebp - 0x144]
push dword [ebp - 0x154]
push dword [ebp - 0x160]
push dword [ebp - 0x12c]
push esi
push dword [eax]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x140]
call fcn.01042553
push dword [ebp - 0x140]
call fcn.01079236
mov eax, dword [0x10b30cc]
mov dword [ebp - 0x140], ebx
cmp dword [ebp - 0x138], ebx
je 0x103b92f
cmp dword [ebp - 0x15c], ebx
jbe 0x103b915
mov esi, dword [fcn.010013a4]
xor edi, edi
mov eax, dword [ebp - 0x138]
lea eax, [edi + eax + 0x10]
push eax
call esi
mov eax, dword [ebp - 0x138]
add eax, edi
push eax
call esi
inc ebx
add edi, 0x28
cmp ebx, dword [ebp - 0x15c]
jb 0x103b8f1
push dword [ebp - 0x138]
call fcn.0107a4d2
and dword [ebp - 0x138], 0
mov eax, dword [0x10b30cc]
pop ecx
xor ebx, ebx
cmp eax, 0x10b30cc
je 0x103ba08
test byte [eax + 0x1c], 1
je 0x103ba08
movzx eax, byte [eax + 0x19]
xor ecx, ecx
cmp dword [ebp - 0x12c], ebx
setl cl
dec ecx
and ecx, 3
inc ecx
inc ecx
cmp eax, ecx
jl 0x103ba08
mov eax, dword [ebp - 0x178]
cmp eax, ebx
je 0x103b99f
push dword [eax]
lea ecx, [ebp - 0x134]
call fcn.01027916
or dword [ebp - 0x128], 4
push 0xf3c
lea ecx, [ebp - 0x164]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xd
call fcn.01027562
or dword [ebp - 0x128], 8
jmp 0x103b9b6
push 0x1001f78
lea ecx, [ebp - 0x184]
call fcn.01027916
or dword [ebp - 0x128], 0x10
mov ecx, dword [ebp - 0x150]
cmp ecx, ebx
je 0x103b9c4
mov esi, dword [ecx]
jmp 0x103b9c6
xor esi, esi
mov ecx, dword [ebp - 0x144]
cmp ecx, ebx
je 0x103b9d4
mov edx, dword [ecx]
jmp 0x103b9d6
xor edx, edx
mov ecx, dword [ebp - 0x14c]
cmp ecx, ebx
je 0x103b9e4
mov ecx, dword [ecx]
jmp 0x103b9e6
xor ecx, ecx
push dword [eax]
mov eax, dword [0x10b30cc]
push esi
push edx
push ecx
push dword [ebp - 0x12c]
push 0x1003658
push 0x60
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01036e7b
test byte [ebp - 0x128], 0x10
je 0x103ba26
mov ecx, dword [ebp - 0x184]
and dword [ebp - 0x128], 0xffffffef
add ecx, 0xfffffff0
call fcn.01026e74
test byte [ebp - 0x128], 8
je 0x103ba44
mov ecx, dword [ebp - 0x164]
and dword [ebp - 0x128], 0xfffffff7
add ecx, 0xfffffff0
call fcn.01026e74
test byte [ebp - 0x128], 4
mov dword [ebp - 4], 8
je 0x103ba62
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffffff0
call fcn.01026e74
mov ecx, dword [ebp - 0x174]
add ecx, 0xfffffff0
call fcn.01026e74
lea ecx, [ebp - 0x1ac]
call fcn.0102b762
mov ecx, dword [ebp - 0x13c]
add ecx, 0xfffffff0
call fcn.01026e74
mov ecx, dword [ebp - 0x190]
add ecx, 0xfffffff0
call fcn.01026e74
mov ecx, dword [ebp - 0x148]
add ecx, 0xfffffff0
call fcn.01026e74
lea ecx, [ebp - 0x1c4]
call fcn.0105e6a7
mov eax, dword [ebp - 0x180]
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x103bac4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x17c]
cmp eax, ebx
mov byte [ebp - 4], 0
je 0x103bad8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x158]
add ecx, 0xfffffff0
call fcn.01026e74
mov eax, dword [ebp - 0x12c]
call fcn.0107a7e0
ret 0x2c