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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xa0]
lea eax, [ebx + 0x10800]
mov dword [esp + 0x38], eax
lea edx, [ebx + 0x19660]
mov dword [esp + 0x44], edx
lea ecx, [ebx + 0x11440]
mov dword [esp + 0x48], ecx
mov eax, dword [ebx + 0x1c954]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x2c], eax
mov ecx, 0x10
xor eax, eax
mov edi, dword [esp + 0x2c]
rep stosb byte es:[edi], al
mov dword [esp + 0x54], 0
cmp dword [ebx + 0x288dc], 2
je 0x6a82d384
mov ebp, dword [ebx + 0x19f48]
test ebp, ebp
jne 0x6a82cfb8
mov eax, dword [0x6b33a4e4]
mov dword [ebx + 0x12054], eax
mov eax, dword [0x6b33a4e8]
mov dword [ebx + 0x12058], eax
mov eax, dword [0x6b33a4ec]
mov dword [ebx + 0x1205c], eax
mov eax, dword [0x6b33a4f0]
mov dword [ebx + 0x12060], eax
mov dword [ebx + 0x299dc], 0
mov dword [ebx + 0x20bf8], 0
mov dword [ebx + 0x20bfc], 0
mov dword [ebx + 0x20c08], 0
mov dword [ebx + 0x20c0c], 0
mov dword [ebx + 0x299e8], 0
mov dword [ebx + 0x1c958], 0
mov eax, dword [ebx + 0x19f3c]
mov dword [ebx + 0x11fd8], eax
lea edx, [ebx + 0x20d78]
xor eax, eax
mov ecx, 0x3ff8
mov edi, edx
rep stosb byte es:[edi], al
lea edx, [ebx + 0x24d70]
mov cx, 0x1200
mov edi, edx
rep stosb byte es:[edi], al
mov dword [esp], ebx
call fcn.6a8155dc
mov eax, dword [ebx + 0x19f1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x19f14]
mov dword [esp], eax
call fcn.6a833f14
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6a8702a0
mov eax, dword [ebx + 0x19f14]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6a87027c
cmp dword [ebx + 0x1c7dc], 1
je 0x6a82d440
mov eax, ebx
call fcn.6a82bb38
lea eax, [esp + 0x60]
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceCounter
push edx
mov ecx, dword [ebx + 0x29a2c]
test ecx, ecx
jne 0x6a82d108
mov eax, dword [ebx + 0x19ef8]
test eax, eax
jle 0x6a82cf08
xor esi, esi
lea edx, [ebx + 0x1ac98]
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], ecx
lea ebp, [esp + 0x50]
lea esi, [esi]
mov edi, dword [esp + 0x34]
mov ecx, 9
xor eax, eax
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x70]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov ecx, esi
mov edx, dword [esp + 0x44]
mov eax, ebx
call fcn.6a82c514
mov edx, dword [ebx + 0x19efc]
mov eax, dword [ebx + 0x113fc]
sub eax, edx
shl eax, 4
add dword [ebx + 0x1140c], eax
mov eax, dword [ebx + 0x11408]
sub eax, edx
shl eax, 3
add dword [ebx + 0x11410], eax
add dword [ebx + 0x11414], eax
inc esi
cmp dword [ebx + 0x19ef8], esi
jg 0x6a82ce94
mov eax, dword [esp + 0x50]
sub eax, dword [ebx + 0x1c954]
sar eax, 3
mov dword [ebx + 0x1c958], eax
lea eax, [esp + 0x68]
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceCounter
push eax
mov ebp, dword [ebx + 0x29bb4]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
sub esi, dword [esp + 0x60]
sbb edi, dword [esp + 0x64]
lea eax, [esp + 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_QueryPerformanceFrequency
push eax
imul ecx, edi, 0xf4240
mov eax, 0xf4240
mul esi
add edx, ecx
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.6aa7e29c
add ebp, eax
mov dword [ebx + 0x29bb4], ebp
cmp byte [ebx + 0x12020], 0
jne 0x6a82d060
mov eax, dword [esp + 0x54]
sar eax, 8
mov dword [ebx + 0x20c1c], eax
mov eax, dword [ebx + 0x19ee8]
test eax, eax
jne 0x6a82cfec
mov dword [ebx + 0x28944], 0x64
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x6b33a4d4]
mov dword [ebx + 0x12054], eax
mov eax, dword [0x6b33a4d8]
mov dword [ebx + 0x12058], eax
mov eax, dword [0x6b33a4dc]
mov dword [ebx + 0x1205c], eax
mov eax, dword [0x6b33a4e0]
mov dword [ebx + 0x12060], eax
jmp 0x6a82cd8d
mov edx, dword [ebx + 0x28934]
mov eax, dword [ebx + 0x28938]
add eax, edx
add eax, dword [ebx + 0x2893c]
mov ecx, eax
add ecx, dword [ebx + 0x28940]
je 0x6a82d01c
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ecx
mov dword [ebx + 0x28944], eax
cmp dword [ebx + 0x1c7e0], 1
jbe 0x6a82d038
mov dword [esp], ebx
call fcn.6a80a158
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x1ac74]
test eax, eax
jne 0x6a82cfac
mov ebp, dword [ebx + 0x1ac70]
test ebp, ebp
jne 0x6a82cfac
mov dword [esp], ebx
call fcn.6a80a158
jmp 0x6a82d02d
mov word [ebx + 0x12024], 0xffff
mov byte [ebx + 0x12026], 0xff
mov ebp, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
add ecx, ebp
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
lea eax, [ecx + edi]
add eax, esi
mov dword [esp + 0x30], eax
je 0x6a82cf8b
mov eax, ecx
shl eax, 8
sub eax, ecx
cdq
idiv dword [esp + 0x30]
mov byte [ebx + 0x12024], al
test ecx, ecx
jle 0x6a82d0b7
mov eax, ebp
shl eax, 8
sub eax, ebp
cdq
idiv ecx
mov byte [ebx + 0x12025], al
add esi, edi
test esi, esi
jle 0x6a82d0cd
mov eax, edi
shl eax, 8
sub eax, edi
cdq
idiv esi
mov byte [ebx + 0x12026], al
cmp byte [ebx + 0x12024], 0
jne 0x6a82d0dd
mov byte [ebx + 0x12024], 1
cmp byte [ebx + 0x12025], 0
jne 0x6a82d0ed
mov byte [ebx + 0x12025], 1
cmp byte [ebx + 0x12026], 0
jne 0x6a82cf8b
mov byte [ebx + 0x12026], 1
jmp 0x6a82cf8b
mov eax, dword [ebx + 0x29a30]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov eax, dword [ebx + 0x29a40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6a822868
mov edx, dword [ebx + 0x19ef8]
test edx, edx
jle 0x6a82d15a
mov ecx, dword [ebx + 0x29a24]
xor eax, eax
nop
mov dword [ecx + eax*4], 0xffffffff
inc eax
mov edx, dword [ebx + 0x19ef8]
cmp edx, eax
jg 0x6a82d148
mov eax, dword [ebx + 0x29a30]
test eax, eax
jle 0x6a82d19b
xor esi, esi
nop
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x29a50]
mov eax, dword [eax + esi*4]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
inc esi
cmp dword [ebx + 0x29a30], esi
jg 0x6a82d168
mov edx, dword [ebx + 0x19ef8]
test edx, edx
jle 0x6a82d2ec
xor esi, esi
lea edx, [ebx + 0x1ac98]
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x30], ecx
lea ebp, [esp + 0x50]
jmp 0x6a82d1ca
add esi, edx
cmp esi, eax
jge 0x6a82d2ec
mov edi, dword [esp + 0x34]
mov ecx, 9
xor eax, eax
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x19efc]
lea eax, [eax + eax*2]
shl eax, 7
imul eax, esi
mov edx, dword [ebx + 0x1c954]
lea eax, [edx + eax*8]
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x70]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x38]
mov dword [esp], edx
mov ecx, esi
mov edx, dword [esp + 0x44]
mov eax, ebx
call fcn.6a82c514
mov edx, dword [ebx + 0x29a30]
inc edx
mov eax, dword [ebx + 0x113fc]
shl eax, 4
imul eax, edx
mov edi, dword [ebx + 0x19efc]
neg edi
mov ecx, edi
shl ecx, 4
add eax, ecx
add dword [ebx + 0x1140c], eax
mov eax, dword [ebx + 0x11408]
shl eax, 3
imul eax, edx
lea eax, [eax + edi*8]
add dword [ebx + 0x11410], eax
add dword [ebx + 0x11414], eax
mov eax, dword [ebx + 0x29a30]
imul eax, dword [ebx + 0x11fdc]
lea edi, [eax + eax*8]
lea edi, [eax + edi*2]
shl edi, 2
add dword [ebx + 0x11fd8], edi
mov edi, eax
shl edi, 7
lea eax, [edi + eax*4]
add dword [ebx + 0x12340], eax
mov ecx, dword [ebx + 0x29a30]
imul ecx, dword [ebx + 0x19efc]
add dword [ebx + 0x1842c], ecx
mov eax, dword [ebx + 0x19ef8]
lea ecx, [eax - 1]
cmp ecx, esi
jne 0x6a82d1c0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x29a54]
mov dword [esp], eax
call sub.KERNEL32.dll_ReleaseSemaphore
sub esp, 0xc
mov eax, dword [ebx + 0x19ef8]
mov edx, dword [ebx + 0x29a30]
inc edx
add esi, edx
cmp esi, eax
jl 0x6a82d1ca
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x29a54]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov eax, dword [ebx + 0x19ef8]
test eax, eax
jle 0x6a82d337
mov ecx, dword [ebx + 0x1c958]
mov edx, dword [ebx + 0x29a60]
lea esi, [edx + eax*8]
nop
mov eax, dword [edx + 4]
sub eax, dword [edx]
sar eax, 3
add ecx, eax
add edx, 8
cmp edx, esi
jne 0x6a82d320
mov dword [ebx + 0x1c958], ecx
cmp byte [ebx + 0x12020], 0
mov edx, dword [ebx + 0x29a30]
jne 0x6a82d3a0
test edx, edx
jle 0x6a82cf1b
mov eax, dword [ebx + 0x29a40]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x54]
lea esi, [edx + edx*8]
shl esi, 3
sub esi, edx
lea edx, [edx + esi*4]
shl edx, 7
add edx, eax
add ecx, dword [eax + 0x8e70]
add eax, 0x8e80
cmp eax, edx
jne 0x6a82d36c
mov dword [esp + 0x54], ecx
jmp 0x6a82cf1b
mov eax, dword [ebx + 0x1c718]
test eax, eax
js 0x6a82d430
mov dword [esp], ebx
call fcn.6a8708a0
jmp 0x6a82cd53
test edx, edx
jle 0x6a82cf1b
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov eax, dword [ebx + 0x29a40]
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
lea eax, [edx + edx*8]
shl eax, 3
sub eax, edx
lea eax, [edx + eax*4]
shl eax, 7
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x34]
add ebp, dword [eax + 0x8e60]
add edi, dword [eax + 0x8e64]
add esi, dword [eax + 0x8e68]
add ecx, dword [eax + 0x8e6c]
add eax, 0x8e80
cmp eax, edx
jne 0x6a82d3f0
mov edx, dword [esp + 0x44]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x38]
jmp 0x6a82d358
neg eax
mov dword [ebx + 0x288d4], eax
jmp 0x6a82cd53
mov eax, ebx
call fcn.6a82bb38
mov eax, dword [ebx + 0x19e1c]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
mov edx, dword [esp + 0x44]
lea ebp, [edx + eax*4 + 0x6bc]
mov eax, dword [ebp + 8]
mov edi, dword [ebx + 0x19ef8]
test edi, edi
jle 0x6a82d5bd
shl eax, 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
lea ecx, [ebx + 0x10e40]
mov dword [esp + 0x34], ecx
mov esi, dword [esp + 0x3c]
test esi, esi
setne dl
movzx eax, dl
mov dword [ebx + 0x11ff0], eax
mov esi, dword [esp + 0x40]
mov ecx, dword [ebx + 0x19efc]
mov eax, dword [ebx + 0x1140c]
test ecx, ecx
jle 0x6a82d55f
xor edi, edi
test dl, dl
jne 0x6a82d664
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x6a82d5cc
mov ecx, dword [ebp + 0x18]
add ecx, esi
mov dword [ebx + 0x11fb4], ecx
xor ecx, ecx
test edi, edi
setne cl
mov dword [ebx + 0x11ff4], ecx
add esi, 0x10
mov dword [esp + 0xc], 0x10
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov ecx, dword [ebx + 0x113fc]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [0x6b33a51c]
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.6a87ade4
cmp eax, 0x3f
ja 0x6a82d530
mov eax, 0x40
mov ecx, dword [ebx + 0x1237c]
mov dword [ecx], eax
add ecx, 4
mov dword [ebx + 0x1237c], ecx
mov eax, dword [ebx + 0x1140c]
add eax, 0x10
mov dword [ebx + 0x1140c], eax
inc edi
mov ecx, dword [ebx + 0x19efc]
cmp edi, ecx
jl 0x6a82d4d0
mov edx, dword [ebx + 0x113fc]
sub edx, ecx
shl edx, 4
add eax, edx
mov dword [ebx + 0x1140c], eax
mov eax, dword [ebx + 0x11fbc]
add eax, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x11fb8]
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x11fb4]
add eax, 0x10
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6a833bf8
inc dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
add dword [esp + 0x40], edx
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [ebx + 0x19ef8]
jl 0x6a82d490
mov dword [ebx + 0x2b644], 0x186a0
jmp 0x6a82ce49
mov ecx, dword [ebp + 0x18]
add ecx, esi
mov dword [ebx + 0x11fb4], ecx
xor ecx, ecx
test edi, edi
setne cl
mov dword [ebx + 0x11ff4], ecx
add esi, 0x10
mov dword [esp + 0xc], 0x10
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov edx, dword [ebx + 0x113fc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call dword [0x6b33a51c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.6a87ade4
cmp eax, 0x3f
ja 0x6a82d630
mov eax, 0x40
mov ecx, dword [ebx + 0x1237c]
mov dword [ecx], eax
add ecx, 4
mov dword [ebx + 0x1237c], ecx
mov eax, dword [ebx + 0x1140c]
add eax, 0x10
mov dword [ebx + 0x1140c], eax
inc edi
mov ecx, dword [ebx + 0x19efc]
cmp edi, ecx
jl 0x6a82d5cc
jmp 0x6a82d55f
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x6a82d710
mov edx, dword [ebp + 0x18]
add edx, esi
mov dword [ebx + 0x11fb4], edx
test edi, edi
setne dl
movzx ecx, dl
mov dword [ebx + 0x11ff4], ecx
add esi, 0x10
mov dword [esp + 0xc], 0x10
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
mov ecx, dword [ebx + 0x113fc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov byte [esp + 0x28], dl
call dword [0x6b33a51c]
mov dl, byte [esp + 0x28]
xor edx, 1
movzx edx, dl
mov dword [esp + 8], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.6a87ade4
cmp eax, 0x3f
ja 0x6a82d6db
mov eax, 0x40
mov edx, dword [ebx + 0x1237c]
mov dword [edx], eax
add edx, 4
mov dword [ebx + 0x1237c], edx
mov eax, dword [ebx + 0x1140c]
add eax, 0x10
mov dword [ebx + 0x1140c], eax
inc edi
mov ecx, dword [ebx + 0x19efc]
cmp edi, ecx
jl 0x6a82d670
jmp 0x6a82d55f
mov ecx, dword [ebp + 0x18]
add ecx, esi
mov dword [ebx + 0x11fb4], ecx
xor ecx, ecx
test edi, edi
setne cl
mov dword [ebx + 0x11ff4], ecx
add esi, 0x10
mov dword [esp + 0xc], 0x10
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov ecx, dword [ebx + 0x113fc]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [0x6b33a51c]
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.6a87ade4
cmp eax, 0x3f
ja 0x6a82d770
mov eax, 0x40
mov ecx, dword [ebx + 0x1237c]
mov dword [ecx], eax
add ecx, 4
mov dword [ebx + 0x1237c], ecx
mov eax, dword [ebx + 0x1140c]
add eax, 0x10
mov dword [ebx + 0x1140c], eax
inc edi
mov ecx, dword [ebx + 0x19efc]
cmp edi, ecx
jl 0x6a82d710
jmp 0x6a82d55f