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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [ebx + 0x1f8f4]
lea ebp, [ebx + 0x10800]
cmp dword [ebx + 0x2b454], 2
mov dword [esp + 0x28], ebp
lea ebp, [ebx + 0x19bc0]
mov dword [esp + 0x40], ebp
lea ebp, [ebx + 0x114a0]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x7c], 0
je 0xc4f8e2
mov ecx, dword [ebx + 0x1ce68]
test ecx, ecx
jne 0xc4f484
mov eax, dword [ebx + 0x1e8b4]
mov dword [ebx + 0x12594], eax
mov eax, dword [ebx + 0x1e8b0]
mov dword [ebx + 0x12598], eax
mov eax, dword [ebx + 0x1e8ac]
mov dword [ebx + 0x1259c], eax
mov eax, dword [ebx + 0x1e8a8]
mov dword [ebx + 0x125a0], eax
mov eax, dword [ebx + 0x1ce5c]
lea edi, [ebx + 0x27d08]
mov dword [ebx + 0x2c55c], 0
mov dword [ebx + 0x23b98], 0
mov dword [ebx + 0x23b9c], 0
mov dword [ebx + 0x1252c], eax
lea eax, [ebx + 0x23d10]
mov dword [ebx + 0x23ba8], 0
mov dword [ebx + 0x23bac], 0
mov dword [ebx + 0x2c568], 0
mov dword [ebx + 0x2c56c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 8], 0x3ff8
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
test edi, 1
mov edx, 0x1200
jne 0xc4fb97
test edi, 2
jne 0xc4fb87
mov ecx, edx
xor eax, eax
shr ecx, 2
test dl, 2
rep stosd dword es:[edi], eax
je 0xc4f2a5
mov word [edi], 0
add edi, 2
and edx, 1
je 0xc4f2ad
mov byte [edi], 0
mov dword [esp], ebx
call fcn.00c40620
mov eax, dword [ebx + 0x1ce3c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x1ce34]
mov dword [esp], eax
call fcn.00c65060
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00c5fd10
mov eax, dword [ebx + 0x1ce34]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00c5fce0
cmp dword [ebx + 0x1f784], 1
je 0xc4f9f6
mov dword [esp], ebx
call fcn.00c4ddc0
lea eax, [esp + 0x50]
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceCounter
mov eax, dword [ebx + 0x2c5b0]
sub esp, 4
test eax, eax
jne 0xc4f5e3
mov ebp, dword [ebx + 0x1ce18]
test ebp, ebp
jle 0xc4f3ca
lea ebp, [esp + 0x7c]
xor edi, edi
mov dword [esp + 0x4c], ebp
lea ebp, [esp + 0x60]
mov dword [esp + 0x34], ebp
lea ebp, [esp + 0x78]
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x4c]
lea esi, [ebx + 0x1dbb8]
nop
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi], 0
mov ecx, dword [esp + 0x44]
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 4], ecx
mov ecx, edi
add edi, 1
mov dword [esp + 0x10], ebp
mov dword [esp], eax
mov eax, ebx
call fcn.00c4eab0
mov edx, dword [ebx + 0x1ce1c]
mov eax, dword [ebx + 0x11460]
sub eax, edx
shl eax, 4
add dword [ebx + 0x11470], eax
mov eax, dword [ebx + 0x1146c]
sub eax, edx
shl eax, 3
add dword [ebx + 0x11474], eax
add dword [ebx + 0x11478], eax
cmp dword [ebx + 0x1ce18], edi
jg 0xc4f350
mov eax, dword [esp + 0x78]
sub eax, dword [ebx + 0x1f8f4]
sar eax, 3
mov dword [ebx + 0x1f8f8], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceCounter
mov ebp, dword [ebx + 0x2c6ec]
sub esp, 4
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceFrequency
mov edx, 0xf4240
sub esp, 4
test eax, eax
je 0xc4f443
mov ecx, dword [esp + 0x70]
sub esi, dword [esp + 0x28]
sbb edi, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x74]
cmp edi, ecx
jle 0xc4f5a3
mov edx, 0xf4240
add edx, ebp
cmp byte [ebx + 0x12548], 0
mov dword [ebx + 0x2c6ec], edx
jne 0xc4f830
mov eax, dword [esp + 0x7c]
mov ecx, dword [ebx + 0x1ce08]
sar eax, 8
test ecx, ecx
mov dword [ebx + 0x23bbc], eax
jne 0xc4f4c0
mov dword [ebx + 0x2b4c4], 0x64
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x1e8c4]
mov dword [ebx + 0x12594], eax
mov eax, dword [ebx + 0x1e8c0]
mov dword [ebx + 0x12598], eax
mov eax, dword [ebx + 0x1e8bc]
mov dword [ebx + 0x1259c], eax
mov eax, dword [ebx + 0x1e8b8]
mov dword [ebx + 0x125a0], eax
jmp 0xc4f1dc
mov eax, dword [ebx + 0x2b4b4]
mov ecx, dword [ebx + 0x2b4b8]
add ecx, eax
add ecx, dword [ebx + 0x2b4bc]
add ecx, dword [ebx + 0x2b4c0]
je 0xc4f4ec
imul eax, eax, 0x64
mov edx, eax
sar edx, 0x1f
idiv ecx
mov dword [ebx + 0x2b4c4], eax
cmp dword [ebx + 0x1f788], 1
jbe 0xc4f940
mov ebp, dword [ebx + 0x2b4b8]
mov ecx, dword [ebx + 0x2b4bc]
mov eax, dword [ebx + 0x2b4c0]
mov edx, dword [ebx + 0x2b4b4]
lea esi, [ebp + ecx]
add esi, eax
lea edi, [edx + esi]
test edi, edi
mov dword [esp + 0x28], eax
jle 0xc4f479
mov eax, edx
shl eax, 8
sub eax, edx
mov edx, eax
sar edx, 0x1f
idiv edi
mov edx, 1
test eax, eax
cmovg edx, eax
mov eax, dword [ebx + 0x1ce50]
mov dword [ebx + 0x2b47c], edx
test eax, eax
jne 0xc4f55c
mov eax, dword [ebx + 0x1f8a4]
test eax, eax
je 0xc4f479
test esi, esi
jne 0xc4f900
mov esi, dword [esp + 0x28]
mov dword [ebx + 0x2b480], 0x80
add esi, ecx
je 0xc4f92a
mov eax, ecx
shl eax, 8
sub eax, ecx
mov edx, eax
sar edx, 0x1f
idiv esi
mov edx, 1
test eax, eax
cmovg edx, eax
mov dword [ebx + 0x2b484], edx
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
jge 0xc4f9e7
imul eax, edi, 0xf4240
mov edi, 0xf4240
mov dword [esp + 0xc], ecx
mov dword [esp + 0x34], eax
mov eax, esi
mul edi
mov edi, dword [esp + 0x34]
add edi, edx
mov edx, dword [esp + 0x28]
mov esi, eax
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
call fcn.00de3110
mov edx, eax
jmp 0xc4f443
mov eax, dword [ebx + 0x2c5b4]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x2c5c0]
mov dword [esp + 4], ebp
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00c41950
mov edx, dword [ebx + 0x1ce18]
test edx, edx
jle 0xc4f635
mov ecx, dword [ebx + 0x2c5a8]
xor eax, eax
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [ebx + 0x1ce18]
add eax, 1
cmp edx, eax
jg 0xc4f621
mov edi, dword [ebx + 0x2c5b4]
test edi, edi
jle 0xc4f676
xor esi, esi
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x2c5d0]
mov eax, dword [eax + esi*4]
add esi, 1
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
cmp dword [ebx + 0x2c5b4], esi
jg 0xc4f641
mov edx, dword [ebx + 0x1ce18]
test edx, edx
jle 0xc4f78c
mov edx, dword [ebx + 0x1ce1c]
lea ebp, [esp + 0x60]
xor edi, edi
lea esi, [ebx + 0x1dbb8]
lea eax, [esp + 0x7c]
mov dword [esp + 0x34], ebp
lea ebp, [esp + 0x78]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x3c]
mov ecx, edi
mov ebp, dword [esp + 0x34]
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [eax + 8], 0
mov esi, dword [ebx + 0x1f8f4]
lea eax, [edx + edx*2]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp + 0x38]
shl eax, 7
mov edx, dword [esp + 0x4c]
imul eax, edi
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x40]
lea eax, [esi + eax*8]
mov dword [esp + 0x78], eax
mov eax, ebx
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp], ebp
call fcn.00c4eab0
mov esi, dword [ebx + 0x2c5b4]
mov eax, dword [ebx + 0x11460]
mov edx, dword [ebx + 0x1ce1c]
lea ecx, [esi + 1]
shl eax, 4
add edi, ecx
imul eax, ecx
mov ebp, edx
neg ebp
mov dword [esp + 0x24], ebp
shl ebp, 4
add eax, ebp
mov ebp, dword [esp + 0x24]
add dword [ebx + 0x11470], eax
mov eax, dword [ebx + 0x1146c]
shl eax, 3
imul eax, ecx
lea eax, [eax + ebp*8]
add dword [ebx + 0x11474], eax
add dword [ebx + 0x11478], eax
mov eax, dword [ebx + 0x12530]
imul eax, esi
imul esi, edx
add dword [ebx + 0x18980], esi
imul ebp, eax, 0x54
add dword [ebx + 0x1252c], ebp
mov ebp, eax
shl ebp, 7
lea eax, [ebp + eax*4]
add dword [ebx + 0x128a0], eax
cmp dword [ebx + 0x1ce18], edi
jg 0xc4f6a8
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x2c5d4]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
mov edi, dword [ebx + 0x1ce18]
mov dword [ebx + 0x1f8f8], 0
sub esp, 8
test edi, edi
jle 0xc4f7dd
mov edx, dword [ebx + 0x2c5e0]
xor esi, esi
xor ecx, ecx
mov eax, dword [edx + 4]
add ecx, 1
sub eax, dword [edx]
add edx, 8
sar eax, 3
add esi, eax
cmp ecx, edi
jne 0xc4f7c3
mov dword [ebx + 0x1f8f8], esi
cmp byte [ebx + 0x12548], 0
mov edx, dword [ebx + 0x2c5b4]
jne 0xc4f961
test edx, edx
jle 0xc4f3dd
mov eax, dword [ebx + 0x2c5c0]
mov dword [esp + 0x28], eax
mov ecx, eax
mov esi, dword [esp + 0x7c]
xor eax, eax
lea esi, [esi]
add eax, 1
add esi, dword [ecx + 0x93d0]
add ecx, 0x93e0
cmp eax, edx
jne 0xc4f810
mov dword [esp + 0x7c], esi
jmp 0xc4f3dd
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov word [ebx + 0x1254c], 0xffff
add ecx, edi
lea eax, [ecx + esi]
add eax, ebp
mov byte [ebx + 0x1254e], 0xff
mov dword [esp + 0x28], eax
je 0xc4f458
mov eax, ecx
shl eax, 8
sub eax, ecx
mov edx, eax
sar edx, 0x1f
idiv dword [esp + 0x28]
test ecx, ecx
mov byte [ebx + 0x1254c], al
jle 0xc4f88f
mov eax, edi
shl eax, 8
sub eax, edi
mov edx, eax
sar edx, 0x1f
idiv ecx
mov byte [ebx + 0x1254d], al
add ebp, esi
test ebp, ebp
jle 0xc4f8a9
mov eax, esi
shl eax, 8
sub eax, esi
mov edx, eax
sar edx, 0x1f
idiv ebp
mov byte [ebx + 0x1254e], al
cmp byte [ebx + 0x1254c], 0
jne 0xc4f8b9
mov byte [ebx + 0x1254c], 1
cmp byte [ebx + 0x1254d], 0
jne 0xc4f8c9
mov byte [ebx + 0x1254d], 1
cmp byte [ebx + 0x1254e], 0
jne 0xc4f458
mov byte [ebx + 0x1254e], 1
jmp 0xc4f458
mov eax, dword [ebx + 0x1f6d8]
test eax, eax
js 0xc4f9da
mov dword [esp], ebx
call fcn.00c60b80
jmp 0xc4f19e
mov eax, ebp
shl eax, 8
sub eax, ebp
mov edx, eax
sar edx, 0x1f
idiv esi
mov esi, dword [esp + 0x28]
mov edx, 1
test eax, eax
cmovg edx, eax
add esi, ecx
mov dword [ebx + 0x2b480], edx
jne 0xc4f57a
mov dword [ebx + 0x2b484], 0x80
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0x1db94]
test edx, edx
jne 0xc4f479
mov eax, dword [ebx + 0x1db90]
test eax, eax
je 0xc4f4f9
jmp 0xc4f479
test edx, edx
jle 0xc4f3dd
mov ecx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x2c5c0]
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x34], ecx
mov esi, dword [esp + 0x68]
xor ecx, ecx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
add ecx, 1
add ebp, dword [eax + 0x93c0]
add edi, dword [eax + 0x93c4]
add esi, dword [eax + 0x93c8]
add ebx, dword [eax + 0x93cc]
add eax, 0x93e0
cmp ecx, edx
jne 0xc4f991
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], esi
jmp 0xc4f804
neg eax
mov dword [ebx + 0x2b44c], eax
jmp 0xc4f19e
cmp esi, dword [esp + 0x28]
jae 0xc4f43e
jmp 0xc4f5a9
mov dword [esp], ebx
call fcn.00c4ddc0
mov ebp, dword [esp + 0x40]
imul eax, dword [ebx + 0x1cd7c], 0x3c
mov edx, dword [ebx + 0x1ce18]
lea eax, [ebp + eax + 0x30bc]
test edx, edx
mov dword [esp + 0x34], eax
mov eax, dword [eax + 8]
jle 0xc4fb70
shl eax, 4
xor ebp, ebp
lea ecx, [ebx + 0x10e40]
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ecx
mov edx, dword [ebx + 0x1ce1c]
xor eax, eax
test ebp, ebp
setne al
mov dword [ebx + 0x12538], eax
test edx, edx
jle 0xc4fb7f
mov edi, dword [esp + 0x3c]
xor esi, esi
mov eax, dword [ebx + 0x11470]
mov ecx, dword [esp + 0x34]
mov edx, edi
add edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x12508], edx
xor edx, edx
test esi, esi
setne dl
add edi, 0x10
mov dword [ebx + 0x1253c], edx
mov edx, dword [ebx + 0x12880]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 0x11460]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x10]
mov edx, esi
xor eax, eax
or edx, ebp
je 0xc4fac3
test esi, esi
sete al
test ebp, ebp
sete dl
or eax, edx
movzx eax, al
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.00c64b00
mov edx, 0x40
cmp eax, 0x3f
cmovbe eax, edx
mov edx, dword [ebx + 0x128cc]
add esi, 1
mov dword [edx], eax
add edx, 4
mov eax, dword [ebx + 0x11470]
mov dword [ebx + 0x128cc], edx
mov edx, dword [ebx + 0x1ce1c]
add eax, 0x10
cmp esi, edx
mov dword [ebx + 0x11470], eax
jl 0xc4fa67
mov ecx, dword [ebx + 0x11460]
add ebp, 1
sub ecx, edx
shl ecx, 4
add eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x11470], eax
mov eax, dword [ebx + 0x12510]
add eax, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1250c]
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x12508]
mov dword [esp], ecx
add eax, 0x10
mov dword [esp + 4], eax
call fcn.00c5cfc0
mov edx, dword [esp + 0x48]
add dword [esp + 0x3c], edx
cmp ebp, dword [ebx + 0x1ce18]
jl 0xc4fa40
mov dword [ebx + 0x2d33c], 0x186a0
jmp 0xc4f2f8
mov eax, dword [ebx + 0x11470]
jmp 0xc4fb13
mov word [edi], 0
sub edx, 2
add edi, 2
jmp 0xc4f28f
mov byte [ebx + 0x27d08], 0
lea edi, [ebx + 0x27d09]
mov dx, 0x11ff
jmp 0xc4f283