Function at 0x501c70
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 0x50376f
mov dword [esi + 0x90], 0xa
mov al, byte [0x649456]
test al, al
jne 0x50379f
mov edi, dword [ebx + 0x2c]
test edi, edi
mov dword [esi + 0x10], ebx
jne 0x503706
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
call edi
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x63e19c]
mov ecx, edi
mov edi, dword [esi + 0x10]
push edi
call ebx
mov eax, dword [0x6550a0]
test eax, eax
je 0x501d64
mov eax, dword [edi + 0x24]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test al, 1
mov ebx, edi
jne 0x501d11
cmp dword [ebx + 0x30], 0
je 0x501d54
mov ecx, dword [0x65509c]
test ecx, ecx
je 0x5036b0
lea edi, [esi + 0xd0]
push 2
push edi
call fcn.00590150
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 0x502668
mov dword [esi + 0x44], 0
mov dword [esi + 0x38], 0
jmp 0x501d37
mov dword [esi + 0x44], 0
mov dword [esi + 0x38], 0
mov ebx, edi
jmp 0x501d37
call dword [0x63e19c]
lea eax, [esi + 0xc0]
push eax
call ecx
add esp, 4
mov eax, dword [esi + 0xc0]
mov edx, dword [esi + 0xc4]
jmp 0x501e10
cmp eax, 0x102
jne 0x5036b7
mov ecx, dword [0x646080]
cmp ecx, 0x5536d0
jne 0x501d76
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 0x5038b6
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.005866e0
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 0x502177
xor ecx, ecx
jmp 0x5021f5
mov dword [esi + 0xc], eax
mov ecx, dword [fcn.0055fb00]
cmp ecx, 0x5536d0
jne 0x502c9b
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 0x503837
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.005866e0
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 0x502f4b
mov ebx, dword [esi + 0xf0]
test ebx, ebx
je 0x502011
lock dec dword [ebx]
jne 0x502011
jmp 0x5031cd
mov dword [esi + 8], ecx
mov dword [esi + 0x118], 0xa
mov al, byte [0x649456]
test al, al
jne 0x503560
call fcn.00562f95
mov edi, dword [eax]
call fcn.00562f95
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 0x501fea
cmp dword [esi + 0xd4], 0
jne 0x501fea
cmp byte [ebx + 0x11], 1
jne 0x501fea
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 0x502e5c
xor eax, eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], eax
cmp byte [ebx + 0x2b], 0
jne 0x501fdb
mov eax, dword [ebx + 0x20]
cmp byte [ebx + 0x29], 1
je 0x502ea2
dec dword [eax + 0xb0]
cmp byte [ebx + 0x11], 0
je 0x50358b
cmp byte [ebx + 0x10], 0
je 0x502c61
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.00562f95
mov dword [eax], edi
cmp byte [esi + 0xf8], 1
jne 0x502011
mov eax, dword [esi + 0xf0]
test eax, eax
jne 0x501e5a
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x502023
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 0x5031b5
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 0x502202
push eax
call fcn.004ff910
mov ecx, dword [esi + 8]
add esp, 4
jmp 0x502202
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
mov ebx, dword [esi + 0x10]
push ebx
lea eax, [esi + 0xd0]
push eax
call edi
jmp 0x502308
mov ecx, ebx
call fcn.00403e50
mov ebx, dword [esi + 0x10]
jmp 0x50220a
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
call edi
mov ebx, eax
jmp 0x5022e5
mov dword [esi + 0x124], 0x1aa
mov al, byte [0x6495f6]
test al, al
je 0x5021f5
jmp 0x5035da
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
call edi
jmp 0x502240
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 0x503633
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.005866e0
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 0x5021d2
push 0
mov eax, edi
mov dword [esi + 0xc], edi
mov edi, 0x3e8
push edi
push eax
push dword [esi + 8]
call fcn.00582980
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 0x501d96
mov cl, 1
mov eax, dword [esi + 0x30]
cmp byte [eax + 0x14], 0
je 0x5020c2
cmp byte [esi + 0x100], 1
je 0x501f3b
test cl, cl
je 0x502d32
mov dword [esi + 0x118], 0xa
mov al, byte [0x649456]
test al, al
jne 0x50343c
mov al, byte [ebx + 0x20]
test al, al
jne 0x502ae5
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
cmp edi, 0x503a00
jne 0x5020de
mov al, byte [ebx + 0x4c]
test al, al
jne 0x502ae5
mov ebx, dword [ebx + 0x24]
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x502c8f
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x502e6a
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [esi + 0x38], 0
mov ebx, dword [esi + 0x10]
je 0x5022a6
cmp byte [esi + 0xa8], 1
je 0x5032ab
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 0x502c79
mov edi, dword [ebx + 0x30]
xor eax, eax
dec eax
cmp dword [ebx + 0x34], edi
jne 0x502ef9
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
cmp edi, 0x5039f0
jne 0x5020af
mov ebx, dword [ebx + 0x48]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
cmp edi, fcn.00503a10
jne 0x502084
mov ecx, ebx
mov ebx, dword [esi + 0x10]
push ebx
lea eax, [esi + 0xd0]
push eax
call fcn.00503a10
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x502aec
mov dword [esi + 0xb8], eax
lea eax, [esi + 0xb8]
push eax
call fcn.005017e0
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.005040f0
mov esp, edi
mov eax, dword [esi + 0xd0]
test eax, eax
jne 0x503324
mov dword [esi + 0x118], eax
mov dword [esi + 0xd0], 0
test eax, eax
mov ebx, dword [esi + 0x10]
jne 0x503293
mov eax, dword [esi + 0xc0]
mov dword [esi + 0xc0], 0
mov ecx, dword [esi + 0xd0]
mov dword [esi + 0xd0], eax
test ecx, ecx
jne 0x5032bb
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.005017e0
add esp, 4
cmp byte [esi + 0x38], 0
je 0x5024d0
cmp byte [esi + 0xa8], 1
jne 0x5024af
cmp byte [esi + 0x90], 1
jne 0x5024af
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax]
test ecx, ecx
je 0x5024af
movq xmm0, qword [ecx + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
test eax, eax
mov dword [esi + 8], ecx
js 0x5031e2
cmp dword [ecx + 0x1c], 1
jne 0x50320d
cmp dword [ecx + 0x10], 0
jne 0x503388
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 0x502440
mov edi, dword [esi + 0x98]
mov ebx, dword [esi + 0x9c]
cmp dword [ecx + 0x10], 0
jne 0x5033c5
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, 0x5039f0
jne 0x502abf
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.00505770
jne 0x502aae
mov ecx, ebx
call fcn.00505770
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 0x502b64
mov edi, dword [ebx + 0x30]
cmp dword [ebx + 0x34], edi
jne 0x503151
cmp dword [esi + 0xd0], 0
jne 0x503290
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], ecx
test eax, eax
jne 0x502316
mov cl, 1
cmp byte [esi + 0xa8], 1
jne 0x502660
cmp byte [esi + 0x90], 1
jne 0x502660
mov eax, dword [esi + 0x4c]
mov edi, dword [eax]
test edi, edi
je 0x502660
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd eax, xmm0
test eax, eax
js 0x5031f5
cmp dword [edi + 0x1c], 1
mov dword [esi + 0xc], ecx
mov dword [esi + 8], edi
jne 0x50324a
cmp dword [edi + 0x10], 0
jne 0x503408
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 0x5025f0
mov edx, dword [esi + 0x98]
mov ebx, dword [esi + 0x9c]
mov edi, dword [esi + 8]
cmp dword [edi + 0x10], 0
jne 0x503489
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 0x502ba3
mov al, byte [ebx + 0x20]
test al, al
jne 0x502ba3
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
cmp edi, 0x503a00
jne 0x502ad4
mov al, byte [ebx + 0x4c]
test al, al
jne 0x502ba3
mov ebx, dword [ebx + 0x24]
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x502c83
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x502b7d
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 0x503354
mov ecx, dword [0x645d64]
test ecx, ecx
jne 0x503286
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
cmp edi, 0x5039f0
jne 0x502a9b
mov ebx, dword [ebx + 0x48]
mov eax, dword [ebx]
cmp dword [eax + 0x18], 0x403e50
jne 0x5020a0
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, 0x5096a0
jne 0x502a21
cmp byte [ebx - 8], 1
mov eax, ecx
mov ecx, 0x7fffffff
mov edi, 0x7fffffff
je 0x502cbe
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], ecx
mov ecx, dword [fcn.0055fb00]
cmp ecx, 0x5536d0
mov dword [esi + 0x30], ebx
jne 0x502a0a
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 0x5034e3
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.005866e0
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], 0x5e24f0
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 0x502e1e
cmp byte [0x6586f4], 1
jne 0x503318
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 0x502de2
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov edx, ecx
or edx, eax
jne 0x502871
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.005872b0
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 0x502d22
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 0x502a3e
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 0x5029fb
mov ecx, dword [0x646080]
cmp ecx, 0x5536d0
je 0x5020ef
call dword [0x63e19c]
lea eax, [esi + 0x118]
push eax
call ecx
add esp, 4
mov eax, dword [esi + 0x118]
mov edx, dword [esi + 0x11c]
jmp 0x502150
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], 0x7fffffff
jmp 0x502177
call dword [0x63e19c]
lea eax, [esi + 0xb0]
push eax
call ecx
add esp, 4
jmp 0x5027ef
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
lea eax, [esi + 0xb8]
push eax
call edi
mov edi, 0x7fffffff
jmp 0x502765
push 0x40
push str.waitable_event.cc
push str.TimedWait
lea eax, [esi + 0xc0]
push eax
call fcn.0050b5e0
add esp, 0x10
cmp byte [esi + 0x100], 1
je 0x5034c7
lea ecx, [esi + 0xd0]
push 1
push 0
call fcn.005224f0
mov dword [esi + 0x114], 0xa
mov al, byte [0x649456]
test al, al
jne 0x50359a
mov byte [esi + 0x100], 1
xor ecx, ecx
dec ecx
jmp 0x5029b2
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
call edi
mov ebx, eax
jmp 0x502714
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
call edi
jmp 0x502541
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
call edi
mov edx, ebx
mov ebx, eax
jmp 0x5024f5
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
call edi
jmp 0x502687
xor ecx, ecx
jmp 0x502592
mov al, byte [ebx + 0x20]
test al, al
jne 0x502b59
mov eax, dword [ebx]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
call edi
test al, al
jne 0x502b59
mov ebx, dword [ebx + 0x24]
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x502ed7
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x503162
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 [0x63e19c]
mov ecx, ebx
call edi
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x63e19c]
mov ecx, edi
call ebx
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 0xd0]
jmp 0x502588
mov edi, 3
jmp 0x50255a
lock dec dword [ecx + 4]
jne 0x502be6
push 1
call fcn.004051d0
jmp 0x502be6
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x50319d
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
mov ebx, dword [esi + 0x10]
jne 0x5026b9
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x63e19c]
mov ecx, ebx
call edi
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 0x1c]
mov ecx, ebx
call dword [0x63e19c]
mov ecx, edi
push dword [esi + 0x10]
call ebx
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x50371f
mov ecx, dword [eax + 8]
mov dword [eax + 8], 0
test ecx, ecx
jne 0x502b6e
mov dword [esi + 0x90], 0xa
mov al, byte [0x649456]
test al, al
mov edi, dword [esi + 0x44]
jne 0x5037cf
mov dword [esi + 0x90], 0xa
mov al, byte [0x649456]
test al, al
jne 0x503803
mov ecx, dword [0x645d64]
test ecx, ecx
jne 0x503629
test edi, edi
je 0x502c4c
mov ecx, dword [edi + 4]
call dword [0x63e19c]
push edi
call ecx
add esp, 4
lock dec dword [edi]
jne 0x502c4c
mov ecx, dword [edi + 8]
call dword [0x63e19c]
push edi
call ecx
add esp, 4
mov ecx, dword [esi + 0x128]
xor ecx, ebp
call fcn.00566245
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebx + 0x20]
cmp byte [ebx + 0x2a], 1
je 0x5031c3
dec dword [ecx + 0xb4]
jmp 0x501fdb
mov edi, 3
jmp 0x5022b9
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x5026a4
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x50225d
call dword [0x63e19c]
lea eax, [esi + 0x118]
push eax
call ecx
add esp, 4
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x11c]
jmp 0x501ede
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 0x502759
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
jmp 0x502759
mov ecx, dword [esi + 0x14]
call fcn.004f2cb0
test al, al
jne 0x50220a
call fcn.0050a620
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
cmp dword [esi + 0x48], eax
mov edx, dword [esi + 0x34]
sbb edx, ecx
jge 0x50220a
mov edx, eax
xor ebx, ebx
dec ebx
xor edx, ebx
mov edi, ecx
mov ebx, 0x7fffffff
xor edi, ebx
or edi, edx
jne 0x502d99
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.00509720
jmp 0x50220a
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 0x502d65
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 0x502d79
push 0x658708
call fcn.00562fa8
add esp, 4
cmp dword [0x658708], 0xffffffff
jne 0x50285a
mov eax, dword [esi + 0xc]
mov dword [0x658700], eax
mov eax, dword [esi + 8]
mov dword [0x658704], eax
push 0x658708
call fcn.00562ff7
add esp, 4
jmp 0x50285a
push 0x6586f8
call fcn.00562fa8
add esp, 4
cmp dword [0x6586f8], 0xffffffff
jne 0x50282c
push 0x6460f0
call fcn.0050a840
add esp, 4
mov byte [0x6586f4], al
push 0x6586f8
call fcn.00562ff7
add esp, 4
jmp 0x50282c
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x501fa6
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x502e8e
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
jne 0x50226f
jmp 0x503933
cmp ebx, 0x102
je 0x502e7a
mov ecx, ebx
call fcn.005c06c0
jmp 0x502268
mov ecx, dword [eax + 0x5c]
mov edx, dword [eax + 0xa0]
dec edx
mov dword [eax + 0xa0], edx
cmp ecx, dword [eax + 0x60]
je 0x502ebf
cmp dword [eax + 0xa8], edx
jae 0x502eca
mov word [eax + 0x78], 0
jmp 0x501fc7
movzx ecx, word [ecx + 8]
mov word [eax + 0x78], cx
jmp 0x501fc7
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x502b1d
mov ecx, dword [ecx + 0x24]
cmp ecx, 3
je 0x50396b
xor eax, eax
cmp ecx, 1
sete al
jmp 0x502f14
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 0x502ee3
cmp edi, 7
jge 0x5034e0
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 0x5022c5
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 0x503975
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 0x50394b
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.0058fbc0
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 0x503093
movsd xmm0, qword [0x62e300]
jmp 0x5030a0
movsd xmm0, qword [esi + 0x68]
divsd xmm0, qword [0x62dcc0]
sub esp, 8
movsd qword [esp], xmm0
call fcn.0058fcbd
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 0x50393d
cmp ebx, edi
mov eax, dword [esi + 0xc]
jge 0x50311e
inc dword [eax + ebx*4 + 8]
inc ebx
cmp edi, ebx
jne 0x503115
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esi + 0x1c]
cmp ecx, 0x3d
jl 0x501f1f
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 0x5030e3
jmp 0x501f1f
push edi
call fcn.004054a0
add esp, 4
mov dword [ebx + 0x34], edi
jmp 0x502563
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x503189
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
mov ebx, dword [esi + 0x10]
jne 0x502b32
jmp 0x502b59
cmp ebx, 0x102
je 0x503172
mov ecx, ebx
call fcn.005c06c0
jmp 0x502b28
cmp ebx, 0x102
je 0x502b91
mov ecx, ebx
call fcn.005c06c0
jmp 0x5026af
push eax
call fcn.004ff910
add esp, 4
jmp 0x502046
call fcn.00590b00
jmp 0x501fdb
mov ecx, ebx
call fcn.00411a60
push ebx
call fcn.00562f60
add esp, 4
jmp 0x502011
mov ecx, dword [0x65509c]
call fcn.0058fe70
mov ecx, dword [esi + 8]
jmp 0x502422
mov ebx, edi
mov edi, ecx
mov ecx, dword [0x65509c]
call fcn.0058fe70
mov ecx, edi
mov edi, ebx
jmp 0x5025cf
cmp byte [esi + 0xa0], 1
jne 0x50245d
cmp dword [ecx + 0x10], 0
jne 0x5036cf
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 0x50322d
jmp 0x50245d
cmp byte [esi + 0xa0], 1
jne 0x50260a
mov eax, dword [esi + 8]
mov edi, eax
cmp dword [eax + 0x10], 0
jne 0x503738
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 0x50326c
jmp 0x50260a
call fcn.005c2d20
jmp 0x502700
int3
lock dec dword [eax + 4]
jne 0x50238d
mov ecx, eax
push 1
call fcn.00507e50
jmp 0x50238d
lea ecx, [esi + 0x90]
call fcn.00501640
jmp 0x502285
lock dec dword [ecx + 4]
jne 0x5032c8
push 1
call fcn.00507e50
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 0x5023bd
lock dec dword [ecx + 4]
je 0x50330f
mov ecx, dword [esi + 0xc0]
test ecx, ecx
mov ebx, dword [esi + 0x10]
je 0x5023bd
jmp 0x5039cb
push 1
call fcn.00507e50
jmp 0x5032f9
xor ebx, ebx
mov edx, 0xf4240
jmp 0x50292a
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x502372
mov dword [esi + 0xd0], 0
push eax
lea eax, [esi + 0x118]
push eax
call fcn.00408e00
mov eax, dword [esi + 0x118]
jmp 0x502382
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.005b42b0
add esp, 0x1c
jmp 0x5026f2
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.0058ffb0
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 0x502436
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.0058ffb0
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 0x502473
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd ebx, xmm0
call fcn.0058ffb0
and ebx, 0xff000000
or ebx, edx
movd xmm0, ebx
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x5025e9
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.005c0750
add esp, 0x14
jmp 0x502221
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.0058ffb0
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 0x502623
lea ebx, [esi + 0xd0]
mov ecx, ebx
call fcn.00535730
mov byte [ebx + 0x30], 0
mov ebx, dword [esi + 0x10]
jmp 0x502a66
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.005866e0
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.005866e0
add eax, dword [esi + 0x14]
adc edx, dword [esi + 0x1c]
jmp 0x5027db
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.0058ff60
add esp, 0x10
jmp 0x501f55
push str....._third_partylibc_srcincludeoptional:795:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
push 0x622e92
call fcn.00590170
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.005b64a0
add esp, 8
jmp 0x502a8c
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.005c0750
mov cl, 1
add esp, 0x14
jmp 0x5021f5
call fcn.005c2d20
jmp 0x502c25
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.005866e0
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.005866e0
add eax, dword [esi + 0x20]
adc edx, dword [esi + 0x24]
jmp 0x502150
xor eax, eax
jmp 0x501d2f
mov ecx, dword [esi + 0x28]
or ecx, dword [esi + 0x2c]
jne 0x501da1
mov ecx, eax
call fcn.005c06c0
jmp 0x501da1
mov edi, dword [esi + 8]
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd ebx, xmm0
call fcn.0058ffb0
and ebx, 0xff000000
or ebx, edx
movd xmm0, ebx
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [edi + 8], xmm1
jmp 0x503224
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x63e19c]
mov ecx, edi
call ebx
mov ebx, dword [esi + 0x10]
jmp 0x501ccc
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x63e19c]
mov ecx, edi
call ebx
mov eax, dword [esi + 0x10]
jmp 0x502bd8
lea ecx, [edi + 0x10]
movq xmm0, qword [edi + 8]
pshufd xmm0, xmm0, 0x55
movd ebx, xmm0
call fcn.0058ffb0
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 0x503266
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.005b42b0
add esp, 0x1c
jmp 0x501ca7
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.005b42b0
add esp, 0x1c
jmp 0x501cbe
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.005b42b0
add esp, 0x1c
jmp 0x502c00
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.005b42b0
add esp, 0x1c
jmp 0x502c17
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.005866e0
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.005866e0
mov ecx, edx
add eax, dword [esi + 0x18]
adc ecx, dword [esi + 0x28]
jmp 0x501ed2
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.005866e0
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.005866e0
add eax, dword [esi + 0x20]
adc edx, dword [esi + 0x24]
jmp 0x501e10
xor ecx, ecx
mov ebx, dword [esi + 0x10]
jmp 0x502592
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x50310e
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 0x503000
mov eax, 3
jmp 0x502f14
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.004f3190
add esp, 0xc
mov ebx, dword [ebx]
test ebx, ebx
je 0x502f8a
lock dec dword [ebx]
jne 0x502f8a
mov ecx, ebx
call fcn.00411a60
push ebx
call fcn.00562f60
add esp, 4
jmp 0x502f8a
lock dec dword [ecx + 4]
jne 0x5023bd
push 1
call fcn.00507e50
jmp 0x5023bd