Function at 0x403143
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0x80
mov dword [ebp - 0xc], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jbe 0x40345e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
add ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
jmp 0x4031c3
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [ebp - 0x10], eax
push 0x14
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40345e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x40345e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x403249
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
and dword [ebp - 4], 0
jmp 0x40345e
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00403882
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
push 0x40ba60
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x4032b5
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
and dword [ebp - 4], 0
jmp 0x40345e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
push 0x40ba60
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x403346
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
jmp 0x403378
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
jmp 0x40338c
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x403428
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0x80000000
test eax, eax
je 0x4033dd
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0xffff
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x403408
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [ebp - 0x20]
inc eax
inc eax
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jne 0x403423
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
and dword [ebp - 4], 0
jmp 0x403428
jmp 0x40337a
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
cmp dword [ebp - 4], 0
jne 0x403459
jmp 0x40345e
jmp 0x4031ba
push 0x40ba60
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 4]
leave
ret