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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028e5e0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10314008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x58], ebx
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1013e57e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov dword [ebp - 4], 0
test esi, esi
je 0x1013e596
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x2c]
mov dword [ebp - 0x54], eax
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x38], edi
test edi, edi
je 0x1013e5b0
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
mov byte [ebp - 4], 1
lea esi, [ebx + 0x1c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x28], esi
test esi, esi
je 0x1013e5d2
mov eax, dword [esi]
test eax, eax
je 0x1013e5d2
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x24]
mov ecx, dword [ebx + 0x14]
push eax
add ecx, 0x48
call fcn.1017b270
mov ecx, dword [ebp - 0x20]
test al, al
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
cmove ecx, dword [ebp - 0x24]
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 4
xor al, al
movlpd qword [ebp - 0x18], xmm0
mov byte [ebp - 0x3d], al
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100eafe0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
lea edx, [ebx + 0x30]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x48], edx
cmp eax, edx
mov eax, dword [ebp - 0x18]
je 0x1013e68d
mov ecx, dword [edx]
mov dword [ebp - 0x18], ecx
mov dword [edx], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov dword [edx + 4], ecx
jmp 0x1013e690
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x24]
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov eax, 0x92492493
mov ecx, dword [ebp - 0x20]
sub ecx, ebx
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x44]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1013e76c
mov esi, dword [ebp - 0x48]
xor edi, edi
nop
mov eax, dword [ecx + 4]
mov edx, dword [ebx + edi + 4]
mov dword [ebp - 0x48], edx
cmp byte [eax + 0xd], 0
jne 0x1013e6ee
cmp dword [eax + 0x10], edx
jae 0x1013e6da
mov eax, dword [eax + 8]
jmp 0x1013e6de
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x1013e6d0
cmp ecx, dword [ebp - 0x44]
je 0x1013e6ee
cmp edx, dword [ecx + 0x10]
jae 0x1013e6f2
mov byte [ebp - 0x3d], 1
push dword [ebp - 0x54]
lea eax, [ebp - 0x48]
push eax
push ecx
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
call fcn.100ebfc0
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], ecx
je 0x1013e718
mov eax, dword [ebp - 0x48]
mov dword [ecx], eax
add dword [ebp - 0x30], 4
jmp 0x1013e725
lea eax, [ebp - 0x48]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.10021140
mov ecx, dword [ebp - 0x20]
mov eax, 0x92492493
mov ebx, dword [ebp - 0x24]
add edi, 0x1c
inc dword [ebp - 0x4c]
sub ecx, ebx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x4c], eax
jae 0x1013e756
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x44], ecx
jmp 0x1013e6c0
cmp byte [ebp - 0x3d], 0
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x50]
jne 0x1013e8a1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x34]
cmp dword [ebp - 0x14], eax
jne 0x1013e8a1
mov eax, dword [ecx]
cmp eax, ecx
je 0x1013e815
mov ecx, dword [edx + 0x30]
nop dword [eax + eax]
mov ebx, ecx
mov edx, dword [ebx + 4]
cmp byte [edx + 0xd], 0
jne 0x1013e7c3
mov edi, dword [eax + 0x10]
nop
cmp dword [edx + 0x10], edi
jae 0x1013e7aa
mov edx, dword [edx + 8]
jmp 0x1013e7ae
mov ebx, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x1013e7a0
mov edi, dword [ebp - 0x50]
cmp ebx, ecx
je 0x1013e7c3
mov edx, dword [eax + 0x10]
cmp edx, dword [ebx + 0x10]
jae 0x1013e7c5
mov ebx, ecx
cmp ebx, ecx
je 0x1013e8a1
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
je 0x1013e7f4
mov edx, dword [eax + 4]
cmp byte [edx + 0xd], 0
jne 0x1013e7f0
nop
cmp eax, dword [edx + 8]
jne 0x1013e7f0
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x1013e7e0
mov eax, edx
jmp 0x1013e80c
mov eax, edx
mov ebx, dword [eax]
cmp byte [ebx + 0xd], 0
jne 0x1013e80c
nop
mov edx, dword [ebx]
mov eax, ebx
mov ebx, edx
cmp byte [edx + 0xd], 0
je 0x1013e800
cmp eax, dword [ebp - 0x44]
jne 0x1013e790
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x18]
push eax
push dword [eax]
lea eax, [ebp - 0x50]
push eax
call fcn.100ea850
mov byte [ebp - 4], 4
push 0x14
push dword [ebp - 0x18]
call fcn.1025b427
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.10020fe0
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x1013e8f0
mov ecx, dword [ebp - 0x1c]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
shl ecx, 2
cmp ecx, 0x1000
jb 0x1013e8d1
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1013e8d1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test edi, edi
je 0x1013e815
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1013e8c1
mov eax, dword [esi]
test eax, eax
je 0x1013e8bc
push eax
call ebx
xor esi, esi
mov dword [ebp - 0x28], esi
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call dword [eax + 0x10]
jmp 0x1013e81b
push ecx
push edi
call fcn.1025b427
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 1
test esi, esi
je 0x1013e908
mov eax, dword [esi]
test eax, eax
je 0x1013e901
push eax
call ebx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x58]
cmp byte [eax + 0x40], 0
je 0x1013e94f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [eax - 4]
call ebx
mov edi, eax
cmp edi, dword [esi + 0x30]
jae 0x1013e931
call ebx
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1013e94f
jmp 0x1013e934
mov eax, dword [ebp + 8]
sub edi, dword [esi + 0x30]
test eax, eax
je 0x1013e943
cmp edi, 0x3e8
jbe 0x1013e94f
call ebx
mov ecx, esi
mov dword [esi + 0x30], eax
call fcn.1013e160
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x1013e95f
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1013e972
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1025b3e6
mov esp, ebp
pop ebp
ret 4