Function at 0x5018d0
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov esi, esp
mov ebx, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esi + 0x128], eax
mov dword [esi + 0x90], 0xa
mov al, byte [0x649456]
test al, al
jne 0x5033cf
mov dword [esi + 0x90], 0xa
mov al, byte [0x649456]
test al, al
jne 0x5033ff
mov edi, dword [ebx + 0x2c]
test edi, edi
mov dword [esi + 0x10], ebx
jne 0x503366
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x63e1bc]
mov ecx, edi
mov edi, dword [esi + 0x10]
push edi
call ebx
mov eax, dword [0x6550a0]
test eax, eax
je 0x5019c4
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test al, 1
mov ebx, edi
jne 0x501971
cmp dword [ebx + 0x30], 0
je 0x5019b4
mov ecx, dword [0x65509c]
test ecx, ecx
je 0x503310
lea edi, [esi + 0xd0]
push 2
push edi
call fcn.0058fdb0
mov eax, dword [edi]
mov dword [esi + 0x44], eax
mov al, 1
mov dword [esi + 0x38], eax
mov eax, dword [0x64784c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea eax, [eax + 0xb4]
mov dword [esi + 0x4c], eax
jmp 0x5022c8
mov dword [esi + 0x44], 0
mov dword [esi + 0x38], 0
jmp 0x501997
mov dword [esi + 0x44], 0
mov dword [esi + 0x38], 0
mov ebx, edi
jmp 0x501997
call dword [0x63e1bc]
lea eax, [esi + 0xc0]
push eax
call ecx
add esp, 4
mov eax, dword [esi + 0xc0]
mov edx, dword [esi + 0xc4]
jmp 0x501a70
cmp eax, 0x102
jne 0x503317
mov ecx, dword [0x646080]
cmp ecx, 0x552d10
jne 0x5019d6
xor eax, eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc0], eax
lea eax, [esi + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi + 0xc0]
mov edi, dword [esi + 0xc4]
mov eax, 0x7bd05af7
cmp ebx, eax
mov eax, edi
mov ecx, 0x863
sbb eax, ecx
jge 0x503516
mov eax, ebx
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x6496cc]
push dword [0x6496c8]
push ecx
push eax
call fcn.00586340
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
mov ebx, dword [esi + 0x1c]
sub ebx, eax
mov eax, dword [esi + 0x18]
sbb eax, edx
seto dl
mov ecx, eax
sar ecx, 0x1f
test dl, dl
lea edi, [ecx - 0x80000000]
cmove ecx, ebx
mov dword [esi + 8], ecx
test dl, dl
cmove edi, eax
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
sbb eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
jl 0x501dd7
xor ecx, ecx
jmp 0x501e55
mov dword [esi + 0xc], eax
mov ecx, dword [fcn.0055f760]
cmp ecx, 0x552d10
jne 0x5028fb
xor eax, eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc0], eax
lea eax, [esi + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi + 0xc0]
mov edi, dword [esi + 0xc4]
mov eax, 0x7bd05af7
cmp ebx, eax
mov eax, edi
mov ecx, 0x863
sbb eax, ecx
jge 0x503497
mov eax, ebx
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x6496cc]
push dword [0x6496c8]
push ecx
push eax
call fcn.00586340
mov ecx, edx
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], ecx
mov edi, dword [esi + 0xe8]
mov edx, dword [esi + 0xec]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], edi
sub eax, edi
mov dword [esi + 0x18], ecx
sbb ecx, edx
seto bl
mov edi, ecx
sar edi, 0x1f
test bl, bl
cmovne eax, edi
add edi, 0x80000000
test bl, bl
cmove edi, ecx
cmp eax, 0xf4240
mov ecx, edi
sbb ecx, 0
jge 0x502bab
mov ebx, dword [esi + 0xf0]
test ebx, ebx
je 0x501c71
lock dec dword [ebx]
jne 0x501c71
jmp 0x502e2d
mov dword [esi + 8], ecx
mov dword [esi + 0x118], 0xa
mov al, byte [0x649456]
test al, al
jne 0x5031c0
call fcn.00562bf5
mov edi, dword [eax]
call fcn.00562bf5
xor ebx, ebx
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esi + 0xd0]
test ebx, ebx
je 0x501c4a
cmp dword [esi + 0xd4], 0
jne 0x501c4a
cmp byte [ebx + 0x11], 1
jne 0x501c4a
mov eax, dword [ebx + 0x20]
add eax, 0x50
mov dword [esi + 0x14], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x502abc
xor eax, eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], eax
cmp byte [ebx + 0x2b], 0
jne 0x501c3b
mov eax, dword [ebx + 0x20]
cmp byte [ebx + 0x29], 1
je 0x502b02
dec dword [eax + 0xb0]
cmp byte [ebx + 0x11], 0
je 0x5031eb
cmp byte [ebx + 0x10], 0
je 0x5028c1
mov word [ebx + 0x29], 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00562bf5
mov dword [eax], edi
cmp byte [esi + 0xf8], 1
jne 0x501c71
mov eax, dword [esi + 0xf0]
test eax, eax
jne 0x501aba
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x501c83
mov ecx, dword [esi + 0xdc]
mov dword [eax], ecx
mov eax, dword [esi + 0xd4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c810]
bt edx, ecx
mov ebx, dword [esi + 0x10]
jb 0x502e15
mov dword [esi + 0xd4], 0
mov eax, dword [esi + 0xd0]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c810]
bt edx, ecx
mov ecx, dword [esi + 8]
jae 0x501e62
push eax
call fcn.004ff570
mov ecx, dword [esi + 8]
add esp, 4
jmp 0x501e62
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
mov ebx, dword [esi + 0x10]
push ebx
lea eax, [esi + 0xd0]
push eax
call edi
jmp 0x501f68
mov ecx, ebx
call fcn.00403e50
mov ebx, dword [esi + 0x10]
jmp 0x501e6a
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
mov ebx, eax
jmp 0x501f45
mov dword [esi + 0x124], 0x1aa
mov al, byte [0x6495f6]
test al, al
je 0x501e55
jmp 0x50323a
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
jmp 0x501ea0
xor eax, eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc0], eax
lea eax, [esi + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi + 0xc0]
mov edi, dword [esi + 0xc4]
mov eax, 0x7bd05af7
cmp ebx, eax
mov eax, edi
mov ecx, 0x863
sbb eax, ecx
jge 0x503293
mov eax, ebx
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x6496cc]
push dword [0x6496c8]
push ecx
push eax
call fcn.00586340
add eax, dword [esi + 8]
adc edx, dword [esi + 0xc]
seto cl
mov edi, edx
sar edi, 0x1f
test cl, cl
lea ebx, [edi - 0x80000000]
cmove edi, eax
mov dword [esi + 0x1c], edi
test cl, cl
cmove ebx, edx
mov dword [esi + 0x18], ebx
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 8]
xor edx, edx
dec edx
xor eax, edx
mov edi, dword [esi + 0xc]
mov ecx, edi
mov edx, 0x7fffffff
xor ecx, edx
or ecx, eax
mov eax, 0xffffffff
je 0x501e32
push 0
mov eax, edi
mov dword [esi + 0xc], edi
mov edi, 0x3e8
push edi
push eax
push dword [esi + 8]
call fcn.005825e0
mov ecx, eax
mov ebx, edx
mul edi
imul edi, ebx, 0x3e8
add edi, edx
cmp eax, dword [esi + 8]
sbb edi, dword [esi + 0xc]
adc ecx, 0
adc ebx, 0
neg ebx
mov ebx, dword [esi + 0x10]
mov eax, 0
sbb eax, eax
or eax, ecx
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x5019f6
mov cl, 1
mov eax, dword [esi + 0x30]
cmp byte [eax + 0x14], 0
je 0x501d22
cmp byte [esi + 0x100], 1
je 0x501b9b
test cl, cl
je 0x502992
mov dword [esi + 0x118], 0xa
mov al, byte [0x649456]
test al, al
jne 0x50309c
mov al, byte [ebx + 0x20]
test al, al
jne 0x502745
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
cmp edi, 0x503660
jne 0x501d3e
mov al, byte [ebx + 0x4c]
test al, al
jne 0x502745
mov ebx, dword [ebx + 0x24]
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5028ef
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x502aca
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [esi + 0x38], 0
mov ebx, dword [esi + 0x10]
je 0x501f06
cmp byte [esi + 0xa8], 1
je 0x502f0b
xor eax, eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x98], eax
mov byte [esi + 0xa0], al
mov byte [esi + 0x90], al
mov byte [esi + 0xa8], 1
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test al, 1
jne 0x5028d9
mov edi, dword [ebx + 0x30]
xor eax, eax
dec eax
cmp dword [ebx + 0x34], edi
jne 0x502b59
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
cmp edi, 0x503650
jne 0x501d0f
mov ebx, dword [ebx + 0x48]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
cmp edi, fcn.00503670
jne 0x501ce4
mov ecx, ebx
mov ebx, dword [esi + 0x10]
push ebx
lea eax, [esi + 0xd0]
push eax
call fcn.00503670
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x50274c
mov dword [esi + 0xb8], eax
lea eax, [esi + 0xb8]
push eax
call fcn.00501440
add esp, 4
mov edi, esp
mov ecx, dword [ebx + 0x24]
sub esp, 0xc
mov eax, esp
mov edx, dword [esi + 0xd0]
mov dword [eax + 4], edx
xor ebx, ebx
mov dword [esi + 0xd0], ebx
mov edx, dword [esi + 0xd4]
mov dword [esi + 0xd4], ebx
mov dword [eax + 8], edx
lea edx, [esi + 0xc0]
mov dword [eax], edx
call fcn.00503d50
mov esp, edi
mov eax, dword [esi + 0xd0]
test eax, eax
jne 0x502f84
mov dword [esi + 0x118], eax
mov dword [esi + 0xd0], 0
test eax, eax
mov ebx, dword [esi + 0x10]
jne 0x502ef3
mov eax, dword [esi + 0xc0]
mov dword [esi + 0xc0], 0
mov ecx, dword [esi + 0xd0]
mov dword [esi + 0xd0], eax
test ecx, ecx
jne 0x502f1b
mov eax, dword [esi + 0xc4]
mov dword [esi + 0xd4], eax
mov eax, dword [esi + 0xd0]
mov dword [esi + 0x118], eax
lea eax, [esi + 0x118]
push eax
call fcn.00501440
add esp, 4
cmp byte [esi + 0x38], 0
je 0x502130
cmp byte [esi + 0xa8], 1
jne 0x50210f
cmp byte [esi + 0x90], 1
jne 0x50210f
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
test ecx, ecx
je 0x50210f
movq xmm0, qword [ecx + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
test eax, eax
mov dword [esi + 8], ecx
js 0x502e42
cmp dword [ecx + 0x1c], 1
jne 0x502e6d
cmp dword [ecx + 0x10], 0
jne 0x502fe8
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
nop dword [eax]
mov ebx, eax
xor ecx, ecx
dec ecx
and ebx, ecx
mov ecx, edx
mov edi, 0xbfffffff
and ecx, edi
mov edi, dword [esi + 8]
lock cmpxchg8b qword [edi + 8]
mov ecx, dword [esi + 8]
jne 0x5020a0
mov edi, dword [esi + 0x98]
mov ebx, dword [esi + 0x9c]
cmp dword [ecx + 0x10], 0
jne 0x503025
movq xmm0, qword [ecx + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
mov edx, ecx
mov ecx, 0x40000000
and eax, ecx
mov ecx, 0xffffff
and ebx, ecx
or ebx, eax
movd xmm0, ebx
xor eax, eax
dec eax
and edi, eax
movd xmm1, edi
punpckldq xmm1, xmm0
movq qword [edx + 8], xmm1
dec dword [edx + 0x1c]
mov ebx, dword [esi + 0x10]
xor eax, eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0x98], eax
mov byte [esi + 0xa0], al
mov byte [esi + 0x90], al
mov byte [esi + 0xa8], 1
xor eax, eax
dec eax
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
cmp edi, 0x503650
jne 0x50271f
mov edx, ebx
mov ebx, dword [ebx + 0x48]
mov dword [esi + 8], esp
push eax
sub esp, 0xc
mov eax, esp
mov ecx, dword [esi + 0xd0]
mov dword [eax + 4], ecx
xor edi, edi
mov dword [esi + 0xd0], edi
mov ecx, dword [esi + 0xd4]
mov dword [eax + 8], ecx
mov dword [esi + 0xd4], edi
lea ecx, [esi + 0xc0]
mov dword [eax], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
cmp edi, fcn.005053d0
jne 0x50270e
mov ecx, ebx
call fcn.005053d0
mov esp, dword [esi + 8]
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test al, 1
jne 0x5027c4
mov edi, dword [ebx + 0x30]
cmp dword [ebx + 0x34], edi
jne 0x502db1
cmp dword [esi + 0xd0], 0
jne 0x502ef0
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], ecx
test eax, eax
jne 0x501f76
mov cl, 1
cmp byte [esi + 0xa8], 1
jne 0x5022c0
cmp byte [esi + 0x90], 1
jne 0x5022c0
mov eax, dword [esi + 0x4c]
mov edi, dword [eax]
test edi, edi
je 0x5022c0
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
test eax, eax
js 0x502e55
cmp dword [edi + 0x1c], 1
mov dword [esi + 0xc], ecx
mov dword [esi + 8], edi
jne 0x502eaa
cmp dword [edi + 0x10], 0
jne 0x503068
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
nop
mov ebx, eax
xor ecx, ecx
dec ecx
and ebx, ecx
mov ecx, edx
mov edi, 0xbfffffff
and ecx, edi
mov edi, dword [esi + 8]
lock cmpxchg8b qword [edi + 8]
jne 0x502250
mov edx, dword [esi + 0x98]
mov ebx, dword [esi + 0x9c]
mov edi, dword [esi + 8]
cmp dword [edi + 0x10], 0
jne 0x5030e9
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
mov ecx, 0x40000000
and eax, ecx
mov ecx, 0xffffff
and ebx, ecx
or ebx, eax
movd xmm0, ebx
xor eax, eax
dec eax
and edx, eax
movd xmm1, edx
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
dec dword [edi + 0x1c]
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
test cl, cl
je 0x502803
mov al, byte [ebx + 0x20]
test al, al
jne 0x502803
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
cmp edi, 0x503660
jne 0x502734
mov al, byte [ebx + 0x4c]
test al, al
jne 0x502803
mov ebx, dword [ebx + 0x24]
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5028e3
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x5027dd
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ebx, dword [esi + 0x10]
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x90], xmm0
movdqa xmmword [esi + 0xa0], xmm0
xor eax, eax
mov byte [esi + 0x90], al
mov byte [esi + 0xa8], al
mov dword [esi + 0xc0], 0xa
mov al, byte [0x649456]
test al, al
jne 0x502fb4
mov ecx, dword [0x645d64]
test ecx, ecx
jne 0x502ee6
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
cmp edi, 0x503650
jne 0x5026fb
mov ebx, dword [ebx + 0x48]
mov eax, dword [ebx]
cmp dword [eax + 0x18], 0x403e50
jne 0x501d00
xor ecx, ecx
dec ecx
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], ecx
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
cmp edi, 0x509300
jne 0x502681
cmp byte [ebx - 8], 1
mov eax, ecx
mov ecx, 0x7fffffff
mov edi, 0x7fffffff
je 0x50291e
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], ecx
mov ecx, dword [fcn.0055f760]
cmp ecx, 0x552d10
mov dword [esi + 0x30], ebx
jne 0x50266a
xor eax, eax
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd0], eax
lea eax, [esi + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi + 0xd0]
mov edi, dword [esi + 0xd4]
mov eax, 0x7bd05af7
cmp ebx, eax
mov eax, edi
mov ecx, 0x863
sbb eax, ecx
jge 0x503143
mov eax, ebx
mov ecx, 0xf4240
mul ecx
imul ecx, edi, 0xf4240
add ecx, edx
push dword [0x6496cc]
push dword [0x6496c8]
push ecx
push eax
call fcn.00586340
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], edx
mov edi, 0x7fffffff
mov ebx, dword [esi + 0x30]
mov eax, dword [ebx]
cmp dword [eax + 0x28], 0x5e2680
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xb4]
mov dword [esi + 8], eax
mov eax, dword [0x64784c]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x6586f8]
mov ecx, dword [ecx + 4]
cmp eax, ecx
jg 0x502a7e
cmp byte [0x6586f4], 1
jne 0x502f78
mov eax, dword [0x658708]
mov ecx, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x502a42
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov edx, ecx
or edx, eax
jne 0x5024d1
mov eax, dword [0x658704]
mov ecx, dword [0x658700]
mov edx, 0x3938700
add ecx, edx
mov edx, 0
adc eax, edx
cmovo eax, edi
mov edx, 0xffffffff
cmovo ecx, edx
mov ebx, dword [esi + 0xc]
cmp ecx, ebx
mov ecx, dword [esi + 8]
sbb eax, ecx
mov edi, 0x3938700
mov eax, 0xf4240
cmovl edi, eax
add edi, ebx
mov ebx, ecx
mov ecx, 0
adc ebx, ecx
cmovo edi, edx
mov edx, 0x7fffffff
cmovo ebx, edx
push ecx
push eax
push ebx
push edi
call fcn.00586f10
mov dword [esi + 0x14], edx
mov ecx, edi
neg ecx
mov ecx, 0
sbb ecx, ebx
mov edx, 0
mov ecx, 0xf4240
cmovl edx, ecx
sub edx, eax
mov ecx, 0
sbb ecx, dword [esi + 0x14]
or eax, dword [esi + 0x14]
mov eax, 0
cmove ecx, eax
cmove edx, eax
add edx, edi
adc ecx, ebx
seto bl
mov eax, ecx
sar eax, 0x1f
test bl, bl
cmovne edx, eax
mov edi, 0x80000000
xor eax, edi
test bl, bl
cmove eax, ecx
sub edx, dword [esi + 0xc]
sbb eax, dword [esi + 8]
seto cl
mov ebx, eax
sar ebx, 0x1f
test cl, cl
cmovne edx, ebx
xor ebx, edi
test cl, cl
cmove ebx, eax
mov ecx, dword [esi + 0xb8]
mov edi, dword [esi + 0xbc]
cmp ecx, edx
mov eax, edi
sbb eax, ebx
mov dword [esi + 0x34], ebx
cmovge edi, ebx
mov dword [esi + 0x48], edx
cmovge ecx, edx
mov dword [esi + 8], ecx
mov eax, ecx
neg eax
mov eax, 0
mov dword [esi + 0xc], edi
sbb eax, edi
mov edx, dword [esi + 0x30]
lea eax, [edx + 0x10]
mov dword [esi + 0x14], eax
mov ebx, dword [esi + 0x10]
jge 0x502982
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0xd0], xmm0
xor ecx, ecx
dec ecx
mov dword [esi + 0x100], ecx
mov dword [esi + 0x104], ecx
movdqa xmmword [esi + 0xf0], xmm0
movdqa xmmword [esi + 0xe0], xmm0
xor eax, eax
mov byte [esi + 0xd0], al
mov byte [esi + 0x100], al
cmp byte [edx + 0x14], al
mov edi, 0x7fffffff
je 0x50269e
mov eax, dword [esi + 8]
xor eax, ecx
mov edx, dword [esi + 0xc]
xor edx, edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
or eax, edx
je 0x50265b
mov ecx, dword [0x646080]
cmp ecx, 0x552d10
je 0x501d4f
call dword [0x63e1bc]
lea eax, [esi + 0x118]
push eax
call ecx
add esp, 4
mov eax, dword [esi + 0x118]
mov edx, dword [esi + 0x11c]
jmp 0x501db0
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], 0x7fffffff
jmp 0x501dd7
call dword [0x63e1bc]
lea eax, [esi + 0xb0]
push eax
call ecx
add esp, 4
jmp 0x50244f
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
lea eax, [esi + 0xb8]
push eax
call edi
mov edi, 0x7fffffff
jmp 0x5023c5
push 0x40
push str.waitable_event.cc
push str.TimedWait
lea eax, [esi + 0xc0]
push eax
call fcn.0050b300
add esp, 0x10
cmp byte [esi + 0x100], 1
je 0x503127
lea ecx, [esi + 0xd0]
push 1
push 0
call fcn.00522210
mov dword [esi + 0x114], 0xa
mov al, byte [0x649456]
test al, al
jne 0x5031fa
mov byte [esi + 0x100], 1
xor ecx, ecx
dec ecx
jmp 0x502612
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
mov ebx, eax
jmp 0x502374
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
jmp 0x5021a1
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
mov edx, ebx
mov ebx, eax
jmp 0x502155
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
jmp 0x5022e7
xor ecx, ecx
jmp 0x5021f2
mov al, byte [ebx + 0x20]
test al, al
jne 0x5027b9
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
test al, al
jne 0x5027b9
mov ebx, dword [ebx + 0x24]
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x502b37
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x502dc2
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x63e1bc]
mov ecx, edi
call ebx
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 0xd0]
jmp 0x5021e8
mov edi, 3
jmp 0x5021ba
lock dec dword [ecx + 4]
jne 0x502846
push 1
call fcn.004051d0
jmp 0x502846
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x502dfd
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
mov ebx, dword [esi + 0x10]
jne 0x502319
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x63e1bc]
mov ecx, ebx
call edi
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [0x63e1bc]
mov ecx, edi
push dword [esi + 0x10]
call ebx
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x50337f
mov ecx, dword [eax + 8]
mov dword [eax + 8], 0
test ecx, ecx
jne 0x5027ce
mov dword [esi + 0x90], 0xa
mov al, byte [0x649456]
test al, al
mov edi, dword [esi + 0x44]
jne 0x50342f
mov dword [esi + 0x90], 0xa
mov al, byte [0x649456]
test al, al
jne 0x503463
mov ecx, dword [0x645d64]
test ecx, ecx
jne 0x503289
test edi, edi
je 0x5028ac
mov ecx, dword [edi + 4]
call dword [0x63e1bc]
push edi
call ecx
add esp, 4
lock dec dword [edi]
jne 0x5028ac
mov ecx, dword [edi + 8]
call dword [0x63e1bc]
push edi
call ecx
add esp, 4
mov ecx, dword [esi + 0x128]
xor ecx, ebp
call fcn.00565ea5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebx + 0x20]
cmp byte [ebx + 0x2a], 1
je 0x502e23
dec dword [ecx + 0xb4]
jmp 0x501c3b
mov edi, 3
jmp 0x501f19
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x502304
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x501ebd
call dword [0x63e1bc]
lea eax, [esi + 0x118]
push eax
call ecx
add esp, 4
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x11c]
jmp 0x501b3e
mov eax, dword [ebx - 0x10]
fild qword [eax + 0x20]
fstp qword [esi + 0x88]
movsd xmm0, qword [esi + 0x88]
mulsd xmm0, qword [0x637080]
movsd xmm1, qword [0x62ef70]
ucomisd xmm0, xmm1
mov eax, 0xffffffff
mov edx, 0
cmovb eax, edx
cmovb ecx, edx
movsd xmm2, qword [0x62ef68]
ucomisd xmm2, xmm0
maxsd xmm0, xmm1
movsd qword [esi + 0x50], xmm0
fld qword [esi + 0x50]
fisttp qword [esi + 0x50]
jb 0x5023b9
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
jmp 0x5023b9
mov ecx, dword [esi + 0x14]
call fcn.004f2d00
test al, al
jne 0x501e6a
call fcn.0050a280
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
cmp dword [esi + 0x48], eax
mov edx, dword [esi + 0x34]
sbb edx, ecx
jge 0x501e6a
mov edx, eax
xor ebx, ebx
dec ebx
xor edx, ebx
mov edi, ecx
mov ebx, 0x7fffffff
xor edi, ebx
or edi, edx
jne 0x5029f9
xor eax, eax
dec eax
mov dword [esi + 0xd0], eax
mov eax, 0x7fffffff
mov dword [esi + 0xd4], eax
mov ebx, dword [esi + 0x10]
sub esp, 8
movq xmm0, qword [esi + 0xd0]
movq qword [esp], xmm0
mov ecx, dword [esi + 0x30]
call fcn.00509380
jmp 0x501e6a
xor edx, edx
dec edx
mov ebx, dword [esi + 0x48]
add edx, ebx
mov edi, 0x7fffffff
adc edi, dword [esi + 0x34]
add edx, 2
adc edi, 0
cmp edx, 2
sbb edi, 0
jb 0x5029c5
sub eax, ebx
sbb ecx, dword [esi + 0x34]
seto bl
mov edx, ecx
sar edx, 0x1f
test bl, bl
cmovne eax, edx
add edx, 0x80000000
test bl, bl
cmove edx, ecx
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], edx
jmp 0x5029d9
push 0x658708
call fcn.00562c08
add esp, 4
cmp dword [0x658708], 0xffffffff
jne 0x5024ba
mov eax, dword [esi + 0xc]
mov dword [0x658700], eax
mov eax, dword [esi + 8]
mov dword [0x658704], eax
push 0x658708
call fcn.00562c57
add esp, 4
jmp 0x5024ba
push 0x6586f8
call fcn.00562c08
add esp, 4
cmp dword [0x6586f8], 0xffffffff
jne 0x50248c
push 0x6460f0
call fcn.0050a4a0
add esp, 4
mov byte [0x6586f4], al
push 0x6586f8
call fcn.00562c57
add esp, 4
jmp 0x50248c
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x501c06
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x502aee
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
jne 0x501ecf
jmp 0x503593
cmp ebx, 0x102
je 0x502ada
mov ecx, ebx
call fcn.005c0340
jmp 0x501ec8
mov ecx, dword [eax + 0x5c]
mov edx, dword [eax + 0xa0]
dec edx
mov dword [eax + 0xa0], edx
cmp ecx, dword [eax + 0x60]
je 0x502b1f
cmp dword [eax + 0xa8], edx
jae 0x502b2a
mov word [eax + 0x78], 0
jmp 0x501c27
movzx ecx, word [ecx + 8]
mov word [eax + 0x78], cx
jmp 0x501c27
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x50277d
mov ecx, dword [ecx + 0x24]
cmp ecx, 3
je 0x5035cb
xor eax, eax
cmp ecx, 1
sete al
jmp 0x502b74
mov eax, dword [0x64784c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0xb8]
xor eax, eax
test ecx, ecx
jne 0x502b43
cmp edi, 7
jge 0x503140
mov ecx, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov ebx, dword [edx + ecx*4]
push eax
push edi
call fcn.00405510
add esp, 8
mov dword [ebx + 0xac], edi
mov ebx, dword [esi + 0x10]
mov dword [ebx + 0x34], edi
xor eax, eax
dec eax
jmp 0x501f25
mov dword [esi + 0x2c], edx
mov dword [esi + 0x28], eax
xor edx, edx
dec edx
mov ecx, 0x3938700
mov eax, dword [esi + 0xc]
add ecx, dword [eax + 0xf8]
mov ebx, dword [eax + 0xfc]
adc ebx, 0
mov eax, 0x7fffffff
cmovno eax, ebx
mov ebx, eax
cmovo ecx, edx
mov eax, dword [esi + 0x1c]
cmp eax, ecx
mov edx, dword [esi + 0x18]
mov ecx, edx
sbb ecx, ebx
jge 0x5035d5
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xf8]
mov eax, dword [eax + 0xfc]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
sub edx, ecx
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x1c], eax
sbb ecx, eax
seto bl
mov eax, ecx
sar eax, 0x1f
test bl, bl
cmovne edx, eax
add eax, 0x80000000
test bl, bl
cmove eax, ecx
xor ecx, ecx
dec ecx
add ecx, edx
mov ebx, 0x7fffffff
adc ebx, eax
add ecx, 2
adc ebx, 0
cmp ecx, 2
sbb ebx, 0
jb 0x5035ab
movd xmm0, edx
movd xmm1, eax
punpckldq xmm0, xmm1
movq qword [esi + 0x80], xmm0
fild qword [esi + 0x80]
fstp qword [esi + 0x78]
movsd xmm0, qword [esi + 0x78]
mov ebx, dword [esi + 0x28]
divsd xmm0, qword [0x62dcc0]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0058f820
add esp, 8
fstp qword [esi + 0x58]
movsd xmm0, qword [esi + 0x58]
xor ecx, ecx
movsd xmm1, qword [0x62e2f0]
ucomisd xmm0, xmm1
mov eax, 0x7fffffff
cmovb eax, ecx
movsd xmm2, qword [0x62e2f8]
ucomisd xmm2, xmm0
maxsd xmm0, xmm1
cvttsd2si ecx, xmm0
cmovb ecx, eax
mov dword [esi + 0x14], ecx
xor eax, eax
dec eax
add eax, ebx
movd xmm0, ebx
mov ecx, 0x7fffffff
adc ecx, edi
movd xmm1, edi
add eax, 2
adc ecx, 0
cmp eax, 2
sbb ecx, 0
mov ebx, 0x7fffffff
punpckldq xmm0, xmm1
movq qword [esi + 0x70], xmm0
fild qword [esi + 0x70]
fstp qword [esi + 0x68]
jae 0x502cf3
movsd xmm0, qword [0x62e300]
jmp 0x502d00
movsd xmm0, qword [esi + 0x68]
divsd xmm0, qword [0x62dcc0]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0058f91d
add esp, 8
fstp qword [esi + 0x60]
movsd xmm0, qword [esi + 0x60]
movsd xmm1, qword [0x62e2f0]
ucomisd xmm0, xmm1
mov eax, 0
cmovb ebx, eax
movsd xmm2, qword [0x62e2f8]
ucomisd xmm2, xmm0
maxsd xmm0, xmm1
cvttsd2si ecx, xmm0
cmovb ecx, ebx
mov ebx, dword [esi + 0x14]
add ecx, ebx
cmp ecx, 0x3c
mov edi, 0x3c
mov dword [esi + 0x1c], ecx
cmovl edi, ecx
mov eax, dword [esi + 0xc]
add eax, 4
mov dword [esi + 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x50359d
cmp ebx, edi
mov eax, dword [esi + 0xc]
jge 0x502d7e
inc dword [eax + ebx*4 + 8]
inc ebx
cmp edi, ebx
jne 0x502d75
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0x3d
jl 0x501b7f
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x100]
sub ecx, edi
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
test eax, eax
jne 0x502d43
jmp 0x501b7f
push edi
call fcn.004054a0
add esp, 4
mov dword [ebx + 0x34], edi
jmp 0x5021c3
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x502de9
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
mov ebx, dword [esi + 0x10]
jne 0x502792
jmp 0x5027b9
cmp ebx, 0x102
je 0x502dd2
mov ecx, ebx
call fcn.005c0340
jmp 0x502788
cmp ebx, 0x102
je 0x5027f1
mov ecx, ebx
call fcn.005c0340
jmp 0x50230f
push eax
call fcn.004ff570
add esp, 4
jmp 0x501ca6
call fcn.00590760
jmp 0x501c3b
mov ecx, ebx
call fcn.00411f10
push ebx
call fcn.00562bc0
add esp, 4
jmp 0x501c71
mov ecx, dword [0x65509c]
call fcn.0058fad0
mov ecx, dword [esi + 8]
jmp 0x502082
mov ebx, edi
mov edi, ecx
mov ecx, dword [0x65509c]
call fcn.0058fad0
mov ecx, edi
mov edi, ebx
jmp 0x50222f
cmp byte [esi + 0xa0], 1
jne 0x5020bd
cmp dword [ecx + 0x10], 0
jne 0x50332f
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, edx
mov edi, 0x40000000
or ecx, edi
mov ebx, eax
mov edi, dword [esi + 8]
lock cmpxchg8b qword [edi + 8]
mov ecx, dword [esi + 8]
jne 0x502e8d
jmp 0x5020bd
cmp byte [esi + 0xa0], 1
jne 0x50226a
mov eax, dword [esi + 8]
mov edi, eax
cmp dword [eax + 0x10], 0
jne 0x503398
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ecx, edx
mov edi, 0x40000000
or ecx, edi
mov ebx, eax
mov edi, dword [esi + 8]
lock cmpxchg8b qword [edi + 8]
jne 0x502ecc
jmp 0x50226a
call fcn.005c29a0
jmp 0x502360
int3
lock dec dword [eax + 4]
jne 0x501fed
mov ecx, eax
push 1
call fcn.00507ab0
jmp 0x501fed
lea ecx, [esi + 0x90]
call fcn.005012a0
jmp 0x501ee5
lock dec dword [ecx + 4]
jne 0x502f28
push 1
call fcn.00507ab0
mov ecx, dword [esi + 0xc0]
mov eax, dword [esi + 0xc4]
xor edx, edx
mov dword [esi + 0xc4], edx
mov dword [esi + 0xd4], eax
mov dword [esi + 0xc0], edx
test ecx, ecx
mov ebx, dword [esi + 0x10]
je 0x50201d
lock dec dword [ecx + 4]
je 0x502f6f
mov ecx, dword [esi + 0xc0]
test ecx, ecx
mov ebx, dword [esi + 0x10]
je 0x50201d
jmp 0x50362b
push 1
call fcn.00507ab0
jmp 0x502f59
xor ebx, ebx
mov edx, 0xf4240
jmp 0x50258a
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x501fd2
mov dword [esi + 0xd0], 0
push eax
lea eax, [esi + 0x118]
push eax
call fcn.00408e00
mov eax, dword [esi + 0x118]
jmp 0x501fe2
movzx eax, al
mov dword [esi + 0xd0], str.WorkerThread_active
push 0
push 0x45
push 0x625718
push 2
lea ecx, [esi + 0xd0]
push ecx
lea ecx, [esi + 0xc0]
push ecx
push eax
call fcn.005b3f30
add esp, 0x1c
jmp 0x502352
mov eax, dword [esi + 8]
lea ecx, [eax + 0x10]
mov eax, dword [esi + 8]
movq xmm0, qword [eax + 8]
pshufd xmm0, xmm0, 0x55
movd ebx, xmm0
call fcn.0058fc10
mov ecx, dword [esi + 8]
and ebx, 0xff000000
or ebx, edx
movd xmm0, ebx
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [ecx + 8], xmm1
jmp 0x502096
mov eax, dword [esi + 8]
lea ecx, [eax + 0x10]
mov eax, dword [esi + 8]
movq xmm0, qword [eax + 8]
pshufd xmm0, xmm0, 0x55
mov dword [esi + 0xc], edi
movd edi, xmm0
call fcn.0058fc10
mov ecx, dword [esi + 8]
and edi, 0xff000000
or edi, edx
movd xmm0, edi
mov edi, dword [esi + 0xc]
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [ecx + 8], xmm1
jmp 0x5020d3
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd ebx, xmm0
call fcn.0058fc10
and ebx, 0xff000000
or ebx, edx
movd xmm0, ebx
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x502249
movzx eax, al
mov ecx, dword [0x648790]
xor ecx, dword [ebx + 0x3c]
mov edx, dword [0x648794]
mov dword [esi + 0xd4], edx
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xc0], str.WorkerThread_active
lea ecx, [esi + 0xd0]
push ecx
push 1
lea ecx, [esi + 0xc0]
push ecx
lea ecx, [esi + 0x118]
push ecx
push eax
call fcn.005c03d0
add esp, 0x14
jmp 0x501e81
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd dword [esi + 0x14], xmm0
mov dword [esi + 0x30], edx
call fcn.0058fc10
mov ecx, dword [esi + 0x14]
and ecx, 0xff000000
or ecx, edx
mov edx, dword [esi + 0x30]
movd xmm0, ecx
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x502283
lea ebx, [esi + 0xd0]
mov ecx, ebx
call fcn.00535ef0
mov byte [ebx + 0x30], 0
mov ebx, dword [esi + 0x10]
jmp 0x5026c6
int3
mov eax, dword [0x6496c8]
mov dword [esi + 8], eax
mov ecx, dword [0x6496cc]
mov dword [esi + 0xc], ecx
push ecx
push eax
push edi
push ebx
call fcn.00586340
mov dword [esi + 0x14], eax
mov dword [esi + 0x34], edx
mul dword [esi + 8]
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 0x14]
imul ecx, dword [esi + 0xc]
add edx, ecx
mov eax, dword [esi + 0x34]
imul ecx, eax, 0xf4240
mov dword [esi + 0x1c], ecx
imul eax, dword [esi + 8]
add eax, edx
sub ebx, dword [esi + 0x18]
sbb edi, eax
mov ecx, 0xf4240
mov eax, dword [esi + 0x14]
mul ecx
mov dword [esi + 0x14], eax
add edx, dword [esi + 0x1c]
mov dword [esi + 0x1c], edx
mov eax, ebx
mul ecx
imul ecx, edi, 0xf4240
add edx, ecx
push dword [esi + 0xc]
push dword [esi + 8]
push edx
push eax
call fcn.00586340
add eax, dword [esi + 0x14]
adc edx, dword [esi + 0x1c]
jmp 0x50243b
movzx eax, al
mov dword [esi + 0xc0], 0
push 2
lea ecx, [esi + 0xc0]
push ecx
lea ecx, [esi + 0x118]
push ecx
push eax
call fcn.0058fbc0
add esp, 0x10
jmp 0x501bb5
push str....._third_partylibc_srcincludeoptional:795:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
push 0x622e92
call fcn.0058fdd0
movzx ecx, al
lea eax, [esi + 0xc0]
mov dword [esi + 0x118], eax
lea eax, [esi + 0x124]
mov dword [eax], str.ScopedBlockingCallWithBaseSyncPrimitives
lea edx, [esi + 0x114]
mov eax, ebx
lea ebx, [esi + 0x118]
push ebx
mov ebx, eax
lea eax, [esi + 0x124]
push eax
call fcn.005b6120
add esp, 8
jmp 0x5026ec
movzx eax, al
mov edx, dword [esi + 0x14]
xor edx, dword [0x648790]
mov ecx, dword [0x648794]
mov dword [esi + 0xc4], ecx
mov dword [esi + 0xc0], edx
mov dword [esi + 0x118], str.WaitableEvent::Wait_Complete
lea ecx, [esi + 0x124]
lea edx, [esi + 0xc0]
push edx
push 3
lea edx, [esi + 0x118]
push edx
push ecx
push eax
call fcn.005c03d0
mov cl, 1
add esp, 0x14
jmp 0x501e55
call fcn.005c29a0
jmp 0x502885
mov eax, dword [0x6496c8]
mov dword [esi + 0x1c], eax
mov ecx, dword [0x6496cc]
mov dword [esi + 0x18], ecx
push ecx
push eax
push edi
push ebx
call fcn.00586340
mov dword [esi + 0x20], eax
mov dword [esi + 0x3c], edx
mul dword [esi + 0x1c]
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0x18]
add edx, ecx
mov eax, dword [esi + 0x3c]
imul ecx, eax, 0xf4240
mov dword [esi + 0x24], ecx
imul eax, dword [esi + 0x1c]
add eax, edx
sub ebx, dword [esi + 0x40]
sbb edi, eax
mov ecx, 0xf4240
mov eax, dword [esi + 0x20]
mul ecx
mov dword [esi + 0x20], eax
add edx, dword [esi + 0x24]
mov dword [esi + 0x24], edx
mov eax, ebx
mul ecx
imul ecx, edi, 0xf4240
add edx, ecx
push dword [esi + 0x18]
push dword [esi + 0x1c]
push edx
push eax
call fcn.00586340
add eax, dword [esi + 0x20]
adc edx, dword [esi + 0x24]
jmp 0x501db0
xor eax, eax
jmp 0x50198f
mov ecx, dword [esi + 0x28]
or ecx, dword [esi + 0x2c]
jne 0x501a01
mov ecx, eax
call fcn.005c0340
jmp 0x501a01
mov edi, dword [esi + 8]
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd ebx, xmm0
call fcn.0058fc10
and ebx, 0xff000000
or ebx, edx
movd xmm0, ebx
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x502e84
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x63e1bc]
mov ecx, edi
call ebx
mov ebx, dword [esi + 0x10]
jmp 0x50192c
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x63e1bc]
mov ecx, edi
call ebx
mov eax, dword [esi + 0x10]
jmp 0x502838
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd ebx, xmm0
call fcn.0058fc10
and ebx, 0xff000000
or ebx, edx
movd xmm0, ebx
movd xmm1, eax
punpckldq xmm1, xmm0
mov eax, dword [esi + 8]
movq qword [eax + 8], xmm1
jmp 0x502ec6
movzx eax, al
lea ecx, [esi + 0xd0]
mov dword [ecx], str.WorkerThread_born
lea edx, [esi + 0x90]
push 8
push 0x49
push 0x625718
push 3
push ecx
push edx
push eax
call fcn.005b3f30
add esp, 0x1c
jmp 0x501907
movzx eax, al
lea ecx, [esi + 0xd0]
mov dword [ecx], str.WorkerThread_active
lea edx, [esi + 0x90]
push 0
push 0x42
push 0x625718
push 1
push ecx
push edx
push eax
call fcn.005b3f30
add esp, 0x1c
jmp 0x50191e
movzx eax, al
mov dword [esi + 0xd0], str.WorkerThread_active
lea ecx, [esi + 0x90]
push 0
push 0x45
push 0x625718
push 2
lea edx, [esi + 0xd0]
push edx
push ecx
push eax
call fcn.005b3f30
add esp, 0x1c
jmp 0x502860
movzx eax, al
mov dword [esi + 0xd0], str.WorkerThread_dead
lea ecx, [esi + 0x90]
push 8
push 0x49
push 0x625718
push 3
lea edx, [esi + 0xd0]
push edx
push ecx
push eax
call fcn.005b3f30
add esp, 0x1c
jmp 0x502877
mov eax, dword [0x6496c8]
mov dword [esi + 0x14], eax
mov ecx, dword [0x6496cc]
mov dword [esi + 0x1c], ecx
push ecx
push eax
push edi
push ebx
call fcn.00586340
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], edx
mul dword [esi + 0x14]
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x18]
imul ecx, dword [esi + 0x1c]
add edx, ecx
mov eax, dword [esi + 0x20]
imul ecx, eax, 0xf4240
mov dword [esi + 0x28], ecx
imul eax, dword [esi + 0x14]
add eax, edx
sub ebx, dword [esi + 0x2c]
sbb edi, eax
mov ecx, 0xf4240
mov eax, dword [esi + 0x18]
mul ecx
mov dword [esi + 0x18], eax
add edx, dword [esi + 0x28]
mov dword [esi + 0x28], edx
mov eax, ebx
mul ecx
imul ecx, edi, 0xf4240
add edx, ecx
push dword [esi + 0x1c]
push dword [esi + 0x14]
push edx
push eax
call fcn.00586340
mov ecx, edx
add eax, dword [esi + 0x18]
adc ecx, dword [esi + 0x28]
jmp 0x501b32
mov eax, dword [0x6496c8]
mov dword [esi + 8], eax
mov ecx, dword [0x6496cc]
mov dword [esi + 0xc], ecx
push ecx
push eax
push edi
push ebx
call fcn.00586340
mov dword [esi + 0x20], eax
mov dword [esi + 0x3c], edx
mul dword [esi + 8]
mov dword [esi + 0x40], eax
mov ecx, dword [esi + 0x20]
imul ecx, dword [esi + 0xc]
add edx, ecx
mov eax, dword [esi + 0x3c]
imul ecx, eax, 0xf4240
mov dword [esi + 0x24], ecx
imul eax, dword [esi + 8]
add eax, edx
sub ebx, dword [esi + 0x40]
sbb edi, eax
mov ecx, 0xf4240
mov eax, dword [esi + 0x20]
mul ecx
mov dword [esi + 0x20], eax
add edx, dword [esi + 0x24]
mov dword [esi + 0x24], edx
mov eax, ebx
mul ecx
imul ecx, edi, 0xf4240
add edx, ecx
push dword [esi + 0xc]
push dword [esi + 8]
push edx
push eax
call fcn.00586340
add eax, dword [esi + 0x20]
adc edx, dword [esi + 0x24]
jmp 0x501a70
xor ecx, ecx
mov ebx, dword [esi + 0x10]
jmp 0x5021f2
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x502d6e
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
mov eax, dword [esi + 0x2c]
sbb eax, dword [esi + 0x1c]
setl al
movzx eax, al
movsd xmm0, qword [eax*8 + 0x62e2e0]
jmp 0x502c60
mov eax, 3
jmp 0x502b74
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], edx
sub esp, 0xc
movq xmm0, qword [esi + 0xc0]
movq qword [esp + 4], xmm0
lea ebx, [esi + 0x124]
mov dword [esp], ebx
call fcn.004f31e0
add esp, 0xc
mov ebx, dword [ebx]
test ebx, ebx
je 0x502bea
lock dec dword [ebx]
jne 0x502bea
mov ecx, ebx
call fcn.00411f10
push ebx
call fcn.00562bc0
add esp, 4
jmp 0x502bea
lock dec dword [ecx + 4]
jne 0x50201d
push 1
call fcn.00507ab0
jmp 0x50201d