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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
mov esi, ecx
mov eax, edx
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], ecx
push edi
test esi, esi
je 0x463168
mov edi, dword [ebp + 8]
test edi, edi
je 0x463168
mov dword [edi], ecx
cmp byte [esi + 0x1572], cl
je 0x462754
lea ecx, [esi + 0xd70]
call fcn.0049fc70
test al, al
mov eax, dword [ebp - 0xc]
jne 0x46276f
cmp byte [esi + 0x694], 0
je 0x4627b5
cmp byte [esi + 0x695], 0
je 0x4627b5
cmp byte [esi + 0x1572], 0
je 0x4627b5
test eax, eax
je 0x46277b
mov ecx, dword [esi + 0xfc]
jmp 0x462781
mov ecx, dword [esi + 0xe4]
test eax, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, 0xe8
mov ecx, 0x100
mov dword [ebp - 0x18], 0xf
cmove ecx, edx
mov ebx, 0xec
mov edx, 0x104
cmove edx, ebx
mov ebx, 8
cmove ebx, dword [ebp - 0x18]
jmp 0x4627e1
test eax, eax
je 0x4627ce
mov eax, dword [esi + 0xcc]
mov ecx, 0xd0
mov ebx, 6
lea edx, [ecx + 4]
jmp 0x4627e1
mov eax, dword [esi + 0xb4]
mov ecx, 0xb8
mov ebx, 0xd
lea edx, [ecx + 4]
add ecx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx + esi]
mov edx, dword [ebp - 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
jne 0x462804
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
add eax, edx
push eax
push dword [esi + 0xa4]
call fcn.006dccc0
mov eax, dword [esi + 0x15dc]
add esp, 0xc
test eax, eax
je 0x46283e
push edi
push dword [ebp - 0x18]
push dword [esi + 0xa4]
push dword [ebp - 0xc]
push dword [esi + 0x15e0]
push esi
call eax
add esp, 0x18
mov dword [ebp - 0x1c], eax
jmp 0x462840
xor eax, eax
lea ecx, [eax + 3]
cmp ecx, 3
ja case.0x46284c.2
jmp dword [ecx*4 + 0x463174]
cmp dword [edi], 0
je 0x46304e
cmp dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov ecx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x3c], xmm0
je 0x462956
lea eax, [esi + 0x88]
test eax, eax
je 0x462a1f
cmp dword [0x7efe40], 0
jne 0x4628a3
cmp dword [0x7efe44], 0
je 0x462a1f
lea eax, [ebp - 0x34]
push eax
call ecx
lea eax, [ebp - 0x3c]
push eax
call ebx
mov ecx, dword [ebp - 0x34]
sub ecx, dword [0x7efe48]
mov eax, dword [ebp - 0x30]
sbb eax, dword [0x7efe4c]
push 0
push 0x3b9aca00
push eax
push ecx
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
add eax, dword [0x7efe38]
push 0
adc edx, dword [0x7efe3c]
push 0x3b9aca00
push edx
push eax
call fcn.006dc0b0
mov ecx, dword [ebp - 0x34]
mov edi, eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x8c], edx
mov dword [esi + 0x88], edi
sub ecx, dword [0x7efe48]
push 0
sbb eax, dword [0x7efe4c]
push 0x3b9aca00
push eax
push ecx
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
imul ecx, edi, 0x3b9aca00
sub eax, ecx
add eax, dword [0x7efe38]
mov dword [esi + 0x90], eax
jmp 0x462a1c
lea eax, [esi + 0x68]
test eax, eax
je 0x462a1f
cmp dword [0x7efe40], 0
jne 0x462977
cmp dword [0x7efe44], 0
je 0x462a1f
lea eax, [ebp - 0x34]
push eax
call ecx
lea eax, [ebp - 0x3c]
push eax
call ebx
mov ecx, dword [ebp - 0x34]
sub ecx, dword [0x7efe48]
mov eax, dword [ebp - 0x30]
sbb eax, dword [0x7efe4c]
push 0
push 0x3b9aca00
push eax
push ecx
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
add eax, dword [0x7efe38]
push 0
adc edx, dword [0x7efe3c]
push 0x3b9aca00
push edx
push eax
call fcn.006dc0b0
mov ecx, dword [ebp - 0x34]
mov edi, eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x6c], edx
mov dword [esi + 0x68], edi
sub ecx, dword [0x7efe48]
push 0
sbb eax, dword [0x7efe4c]
push 0x3b9aca00
push eax
push ecx
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
imul ecx, edi, 0x3b9aca00
sub eax, ecx
add eax, dword [0x7efe38]
mov dword [esi + 0x70], eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi]
add dword [ecx], eax
cmp byte [esi + 0x1572], 0
je 0x462a42
lea ecx, [esi + 0xd70]
call fcn.0049fc70
test al, al
jne 0x462c49
cmp byte [esi + 0x694], 0
je 0x462a61
cmp byte [esi + 0x695], 0
je 0x462a61
cmp byte [esi + 0x1572], 0
jne 0x462c49
mov eax, dword [esi + 0x15bc]
mov ebx, dword [ebp - 8]
test eax, eax
je 0x462a83
push dword [edi]
push dword [esi + 0xa4]
push ebx
push dword [esi + 0x15c0]
push esi
call eax
add esp, 0x14
cmp byte [esi + 0x160b], 0
xorps xmm0, xmm0
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
movups xmmword [ebp - 0x4c], xmm0
je 0x462c49
mov eax, dword [esi + 0x1610]
test eax, eax
je 0x462ab9
mov ecx, dword [esi + 0x160c]
test ecx, ecx
je 0x462ab9
cmp dword [ecx + 4], eax
jae 0x462c49
cmp dword [0x7efe40], 0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x14], xmm0
jne 0x462ae3
cmp dword [0x7efe44], 0
jne 0x462ae3
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
jmp 0x462b62
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [0x7efe48]
mov eax, dword [ebp - 0x20]
sbb eax, dword [0x7efe4c]
push 0
push 0x3b9aca00
push eax
push ecx
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
mov edi, eax
push 0
mov dword [ebp - 8], edi
add edi, dword [0x7efe38]
push 0x3b9aca00
adc edx, dword [0x7efe3c]
push edx
push edi
call fcn.006dc0b0
imul ecx, eax, 0x3b9aca00
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
sub eax, ecx
add eax, dword [0x7efe38]
mov dword [ebp - 8], eax
mov edi, eax
mov eax, edx
mov ecx, 0x3b9aca00
mul ecx
mov edx, 0x3b9aca00
mov ecx, eax
mov eax, dword [ebp - 0x10]
mul edx
push 0x18
mov dword [ebp - 8], eax
add ecx, edx
mov eax, edi
cdq
add dword [ebp - 8], eax
push 1
adc ecx, edx
mov dword [ebp - 0x20], ecx
call fcn.006e6b64
mov edi, eax
add esp, 8
mov dword [ebp - 0x10], edi
test edi, edi
je 0x462c46
mov eax, dword [edi + 0x10]
test eax, eax
je 0x462bb7
push eax
call fcn.006e60fe
add esp, 4
mov dword [edi + 0x10], 0
mov eax, dword [ebp - 8]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [edi], ebx
mov dword [edi + 0x14], eax
mov edi, dword [esi + 0x160c]
test edi, edi
je 0x462c46
cmp byte [edi + 0x10], 0
je 0x462beb
mov eax, dword [edi + 0x14]
test eax, eax
je 0x462beb
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
mov ecx, eax
test ebx, ebx
je 0x462c1e
test ecx, ecx
je 0x462c30
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebx + 8]
mov dword [ecx + 8], eax
mov dword [ebx + 8], ecx
mov dword [ecx + 4], ebx
test eax, eax
je 0x462c2a
mov dword [eax + 4], ecx
jmp 0x462c2d
test ecx, ecx
je 0x462c30
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
inc dword [edi + 4]
cmp byte [edi + 0x10], 0
je 0x462c46
mov eax, dword [edi + 0x14]
test eax, eax
je 0x462c46
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp + 8]
mov eax, dword [0x7efe24]
test eax, eax
je 0x46304e
cmp dword [eax + 0x14], 7
jl 0x46304e
push dword [ebp - 0x18]
cmp dword [ebp - 0xc], 0
mov ecx, str.server
push dword [edi]
mov eax, str.client
cmove eax, ecx
push eax
push dword [esi + 0x9c]
push dword [esi + 0x98]
push esi
push 0xc2f
push str.d:_srcmaster_2022ClientOSSServicecsproxy_srcconn.c
push str.__s:_d_:_n___s_n__client__03d__server__03d___s_tx__6zu____6zu
push 7
call fcn.00472f60
mov ebx, eax
add esp, 0x28
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x46304e
mov ebx, dword [0x7efe24]
test ebx, ebx
je 0x462de3
cmp byte [ebx + 8], 0
je 0x462de3
cmp dword [ebx + 0x14], 7
jl 0x462de3
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x462cd1
mov eax, dword [ebx + 0x20]
sub edi, ecx
add eax, edi
cmp dword [ebx + 0x28], eax
jb 0x462de3
test edi, edi
je 0x462de3
push 8
push 1
call fcn.006e6b64
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x462de3
push 1
push edi
call fcn.006e6b64
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
test ecx, ecx
jne 0x462d30
push dword [ebp - 8]
mov dword [eax + 4], ecx
call fcn.006e60fe
add esp, 4
jmp 0x46304e
push edi
push dword [ebp - 8]
push ecx
call fcn.006dccc0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [eax + 4], edi
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x462d56
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x24]
add dword [ebx + 0x20], edi
test eax, eax
je 0x462d66
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebx + 0x1c]
test edi, edi
je 0x462de3
cmp byte [edi + 0x10], 0
je 0x462d83
mov eax, dword [edi + 0x14]
test eax, eax
je 0x462d83
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [edi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test ebx, ebx
je 0x462db9
test eax, eax
je 0x462dcd
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 8], ecx
mov dword [ebx + 8], eax
mov dword [eax + 4], ebx
test ecx, ecx
je 0x462db4
mov dword [ecx + 4], eax
jmp 0x462dca
mov dword [edi + 0xc], eax
jmp 0x462dca
mov ecx, eax
test ecx, ecx
je 0x462dcd
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
inc dword [edi + 4]
cmp byte [edi + 0x10], 0
je 0x462de3
mov eax, dword [edi + 0x14]
test eax, eax
je 0x462de3
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 8]
call fcn.006e60fe
add esp, 4
jmp 0x46304e
mov eax, dword [esi + 0x15bc]
test eax, eax
je 0x462e12
push 0
push dword [esi + 0xa4]
push ebx
push dword [esi + 0x15c0]
push esi
call eax
add esp, 0x14
cmp byte [esi + 0x160b], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
je 0x46304e
mov eax, dword [esi + 0x1610]
test eax, eax
je 0x462e43
mov ecx, dword [esi + 0x160c]
test ecx, ecx
je 0x462e43
cmp dword [ecx + 4], eax
jae 0x46304e
cmp dword [0x7efe40], 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x3c], xmm0
jne 0x462e6a
cmp dword [0x7efe44], 0
jne 0x462e6a
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
jmp 0x462ee0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [0x7efe48]
mov eax, dword [ebp - 0x30]
sbb eax, dword [0x7efe4c]
push 0
push 0x3b9aca00
push eax
push ecx
call fcn.006dbcd0
push dword [0x7efe44]
push dword [0x7efe40]
push edx
push eax
call fcn.006dc0b0
mov ebx, eax
add eax, dword [0x7efe38]
push 0
adc edx, dword [0x7efe3c]
push 0x3b9aca00
push edx
push eax
call fcn.006dc0b0
imul ecx, eax, 0x3b9aca00
mov dword [ebp - 0x28], eax
sub ebx, ecx
mov ecx, eax
add ebx, dword [0x7efe38]
mov eax, edx
mov edi, 0x3b9aca00
mul edi
push 0x18
mov edi, eax
mov eax, ecx
mov ecx, 0x3b9aca00
mul ecx
push 1
mov ecx, eax
add edi, edx
mov eax, ebx
cdq
add ecx, eax
mov dword [ebp - 0x28], ecx
adc edi, edx
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46304e
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x462f2f
push eax
call fcn.006e60fe
add esp, 4
mov dword [ebx + 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], edi
mov edi, dword [esi + 0x160c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x14], 0
mov dword [ebx + 8], eax
test edi, edi
je 0x46304e
cmp byte [edi + 0x10], 0
je 0x462f68
mov eax, dword [edi + 0x14]
test eax, eax
je 0x462f68
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
push 0xc
push 1
test eax, eax
je 0x463021
call fcn.006e6b64
add esp, 8
test eax, eax
je 0x463038
mov ecx, dword [ebp - 0x28]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov dword [ecx + 8], eax
test edx, edx
je 0x463032
mov dword [edx + 4], eax
jmp 0x463035
mov eax, dword [esi + 0x15bc]
test eax, eax
je 0x462fc6
push 0
push 0
push ebx
push dword [esi + 0x15c0]
push esi
call eax
add esp, 0x14
cmp byte [esi + 0x160b], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x6c], xmm0
je 0x46304e
mov eax, dword [esi + 0x1610]
test eax, eax
je 0x462fef
mov ecx, dword [esi + 0x160c]
test ecx, ecx
je 0x462fef
cmp dword [ecx + 4], eax
jae 0x46304e
cmp dword [0x7efe40], 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x3c], xmm0
jne 0x462e6a
cmp dword [0x7efe44], 0
jne 0x462e6a
mov ebx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
jmp 0x462ee0
call fcn.006e6b64
add esp, 8
test eax, eax
je 0x463038
mov dword [eax], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
inc dword [edi + 4]
cmp byte [edi + 0x10], 0
je 0x46304e
mov eax, dword [edi + 0x14]
test eax, eax
je 0x46304e
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xac]
cmp eax, dword [esi + 0xb0]
jne 0x463070
mov dword [esi + 0xb0], 0
mov dword [esi + 0xac], 0
mov eax, dword [esi + 0xb8]
cmp eax, dword [esi + 0xbc]
jne 0x463092
mov dword [esi + 0xbc], 0
mov dword [esi + 0xb8], 0
mov eax, dword [esi + 0xc4]
cmp eax, dword [esi + 0xc8]
jne 0x4630b4
mov dword [esi + 0xc8], 0
mov dword [esi + 0xc4], 0
mov eax, dword [esi + 0xd0]
cmp eax, dword [esi + 0xd4]
jne 0x4630d6
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd0], 0
mov eax, dword [esi + 0xdc]
cmp eax, dword [esi + 0xe0]
jne 0x4630f8
mov dword [esi + 0xe0], 0
mov dword [esi + 0xdc], 0
mov eax, dword [esi + 0xe8]
cmp eax, dword [esi + 0xec]
jne 0x46311a
mov dword [esi + 0xec], 0
mov dword [esi + 0xe8], 0
mov eax, dword [esi + 0xf4]
cmp eax, dword [esi + 0xf8]
jne 0x46313c
mov dword [esi + 0xf8], 0
mov dword [esi + 0xf4], 0
mov eax, dword [esi + 0x100]
cmp eax, dword [esi + 0x104]
jne 0x46315e
mov dword [esi + 0x104], 0
mov dword [esi + 0x100], 0
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret