Function at 0x520200
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, 0xfffffff8
sub esp, 0x40
mov ebx, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x38], eax
mov eax, dword [0x64783c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax + 0xbc]
mov eax, esi
shr eax, 0xe
mov ecx, esi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x64c804]
bt ecx, eax
jb 0x520456
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x654804], 1
mov dword [ebx], esi
mov eax, dword [0x64783c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax + 0xc0]
mov ecx, esi
shr ecx, 0xe
mov edx, esi
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c804]
bt edx, ecx
mov edx, dword [ebp + 8]
lea edi, [eax + 0xc0]
jb 0x520e74
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x654804], 1
mov dword [ebx + 4], esi
mov dword [ebx + 8], edi
mov eax, dword [edi]
mov dword [edi], ebx
mov dword [ebx + 0xc], eax
cmp edx, 1
je 0x520a74
mov eax, dword [ebx + 4]
test eax, eax
jne 0x520464
xor eax, eax
mov byte [ebx + 0x10], al
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x28], 0
mov eax, dword [0x64783c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x144], 0
je 0x52046c
cmp dword [ebp + 0xc], 0
jne 0x52041f
mov eax, dword [ebx + 4]
cmp byte [ebx + 0x10], 0
jne 0x520422
test eax, eax
jne 0x5203fe
lea edi, [ebx + 0x18]
cmp byte [ebx + 0x28], 0
jne 0x520fa6
mov ecx, dword [fcn.005515a0]
cmp ecx, 0x522100
jne 0x52042b
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
cmp ebx, 0x7bd05af7
mov eax, esi
sbb eax, 0x863
jge 0x52102c
mov ecx, 0xf4240
mov eax, ebx
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x6496bc]
push dword [0x6496b8]
push ecx
push eax
call fcn.00588630
mov dword [edi], eax
mov dword [edi + 4], edx
mov ebx, dword [esp + 0x20]
mov eax, dword [0x655078]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x520b48
push 0x655074
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x520bc5
mov eax, dword [0x65507c]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x520ae8
mov dword [ebx + 0x20], 0
push 0x655074
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
jne 0x52043c
mov byte [ebx + 0x28], 1
mov edx, dword [ebp + 8]
mov edi, dword [ebx]
test edi, edi
jne 0x5204c7
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.00568175
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x5203fe
jmp 0x520c72
call dword [0x63e63c]
push edi
call ecx
add esp, 4
jmp 0x520389
mov eax, dword [ecx + 0xf8]
mov ecx, dword [ecx + 0xfc]
mov edx, dword [edi + 4]
cmp dword [edi], eax
sbb edx, ecx
jge 0x5203f7
jmp 0x520fd3
push esi
call fcn.004f0de0
add esp, 4
jmp 0x520254
mov al, byte [eax + 0x10]
jmp 0x5202bd
mov esi, edx
mov eax, dword [0x6567a8]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x520b7e
cmp byte [0x6567a4], 0
mov edx, esi
jne 0x5203fe
jmp 0x5202e4
cmp edx, 1
jne 0x520408
jmp 0x52110b
mov ecx, esi
call dword [0x63e63c]
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call esi
jmp 0x520564
mov eax, dword [ebx + 4]
test eax, eax
jne 0x5204a3
cmp byte [edi + 0x11], 0
je 0x520408
mov dword [esp + 0x20], ebx
mov esi, dword [edi + 4]
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test al, 1
jne 0x520a7b
mov ebx, dword [esi + 0x30]
cmp dword [esi + 0x34], ebx
jne 0x520e9b
mov dword [esp + 0x24], 0xffffffff
mov ebx, dword [edi + 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 0x24]
cmp esi, 0x55dc20
jne 0x5204b1
push 0x30
call fcn.00564ea5
add esp, 4
mov esi, eax
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x64c804]
bt ecx, eax
jb 0x520ff5
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x654804], 1
mov dword [esi + 4], ebx
mov byte [esi + 0x20], 0
xorps xmm0, xmm0
movups xmmword [esi + 8], xmm0
mov dword [esi], 0x622a9c
mov dword [esi + 0x24], 0
mov dword [esp + 0x24], esi
mov esi, dword [edi + 0x20]
add esi, 0x50
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x520a85
mov dword [esp + 0x18], esi
mov ecx, dword [0x646080]
cmp ecx, 0x522100
jne 0x520645
xor eax, eax
lea esi, [esp + 0x30]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi]
mov esi, dword [esi + 4]
cmp ebx, 0x7bd05af7
mov eax, esi
sbb eax, 0x863
jge 0x521154
mov ecx, 0xf4240
mov eax, ebx
mul ecx
imul ecx, esi, 0xf4240
add ecx, edx
push dword [0x6496bc]
push dword [0x6496b8]
push ecx
push eax
call fcn.00588630
jmp 0x52065a
mov ecx, edi
jmp 0x5206ba
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x5206ba
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebx + 0x60]
je 0x520fe6
cmp byte [eax + 8], 0
jne 0x5205df
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 4], ecx
call dword [0x63e63c]
mov ecx, dword [esp]
call dword [esp + 4]
lea ecx, [edi + eax]
add eax, edi
dec eax
cmp eax, 1
adc ecx, 0xffffffff
jmp 0x5206ba
mov eax, dword [edi + 0x20]
inc dword [eax + 0xb8]
jmp 0x52067d
xor eax, eax
inc eax
jmp 0x520747
call dword [0x63e63c]
lea esi, [esp + 0x30]
push esi
call ecx
add esp, 4
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], edx
cmp byte [edi + 0x2b], 0
jne 0x52076c
cmp byte [edi + 0x11], 0
mov ecx, dword [ebp + 8]
je 0x520fc4
cmp byte [edi + 0x10], 0
je 0x520632
cmp ecx, 1
je 0x520a9b
mov eax, dword [edi + 0x20]
inc dword [eax + 0xb4]
mov ebx, dword [edi + 0x20]
cmp byte [ebx + 0xc0], 0
jne 0x52076c
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov edi, dword [ebx + 0x68]
mov esi, dword [ebx + 0xb0]
xor ecx, ecx
test edi, edi
jne 0x5205e6
add ecx, esi
cmp ecx, dword [ebx + 0xa8]
ja 0x520e33
mov esi, dword [ebx + 0x68]
mov edx, dword [ebx + 0xac]
xor edi, edi
mov ecx, 0
test esi, esi
jne 0x520a19
mov esi, dword [ebx + 0x70]
add esi, dword [ebx + 0x6c]
je 0x52075a
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x10]
cmp eax, 1
ja 0x52075a
mov dword [esp], ecx
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebx + 0x60]
je 0x520fe6
mov dword [esp + 4], esi
mov cl, byte [eax + 8]
dec cl
cmp cl, 1
ja 0x520fdd
mov edi, dword [eax]
mov eax, dword [edi]
mov esi, dword [eax + 4]
cmp esi, 0x5318e0
je 0x52063d
cmp esi, 0x564cb0
mov dword [esp + 8], edx
je 0x520923
mov ecx, esi
call dword [0x63e63c]
mov ecx, edi
call esi
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edi, [ecx + eax]
add eax, ecx
dec eax
cmp eax, 1
adc edi, 0xffffffff
mov ecx, dword [esp]
add edx, ecx
lea eax, [edi + edx]
inc eax
cmp eax, dword [ebx + 0xa4]
ja 0x520866
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x24], 0
test edi, edi
mov ebx, dword [esp + 0x20]
je 0x520408
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, 0x55fff0
jne 0x520878
mov dword [edi], 0x622a9c
mov ebx, dword [edi + 0x24]
lea eax, [edi + 0x28]
test bl, 1
jne 0x520fb6
lea ecx, [edi + 0x24]
cmp ebx, 2
jae 0x52088b
test ebx, ebx
jne 0x52085c
mov dword [edi], 0x6229e8
mov edx, dword [edi + 0x14]
lea esi, [edi + 0x18]
mov eax, edx
mov dword [esp], esi
and eax, 1
jne 0x520eed
lea ecx, [edi + 0x14]
mov dword [esp + 0x18], ecx
mov ebx, edx
shr ebx, 1
mov cl, 1
cmp edx, 2
jae 0x520bd5
mov edx, esi
test eax, eax
jne 0x520fbd
test cl, cl
je 0x520b14
test eax, eax
jne 0x521003
mov dword [edi + 0x14], 0
cmp byte [edi + 0x20], 0
jne 0x520e54
mov ebx, dword [edi + 8]
test ebx, ebx
jne 0x52099c
mov eax, dword [edi + 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c804]
bt edx, ecx
jb 0x521012
push edi
call fcn.00564ea0
add esp, 4
mov ebx, dword [esp + 0x20]
jmp 0x520408
call fcn.005311c0
jmp 0x5207c7
cmp dword [ebx + 0xb4], 0
jle 0x52076c
jmp 0x520e40
mov ecx, esi
call dword [0x63e63c]
mov ecx, edi
push 1
call esi
jmp 0x520408
mov dword [esp + 0x18], ecx
shr ebx, 1
shl ebx, 2
xor esi, esi
mov dword [esp], eax
mov ecx, dword [eax + esi]
test ecx, ecx
je 0x5210ba
xor eax, eax
inc eax
lock xadd dword [ecx + 4], eax
cmp eax, 0x7fffffff
je 0x521020
mov dword [esp + 0x28], 0x9c
mov al, byte [0x6494d8]
test al, al
mov dword [esp + 0xc], ecx
jne 0x5211e2
mov eax, dword [ecx + 0x48]
lea edx, [eax + 0x10]
cmp byte [eax + 0x14], 0
je 0x52090d
lea eax, [ecx + 4]
mov dword [esp + 4], eax
push dword [edx]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 4]
lock dec dword [eax]
je 0x5210c6
add esi, 4
cmp ebx, esi
mov eax, dword [esp]
jne 0x520899
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx]
jmp 0x5207bf
mov dword [esp + 0x28], 0x1a8
mov al, byte [0x6495e4]
test al, al
je 0x5208dc
jmp 0x52122a
mov eax, dword [edi + 0x24]
test al, 1
jne 0x520ee6
mov dword [esp + 0x10], edi
mov edi, dword [edi + 0x34]
test edi, edi
je 0x521023
xor ecx, ecx
inc ecx
lock xadd dword [edi], ecx
test ecx, ecx
jle 0x521026
cmp ecx, 0x7fffffff
je 0x521029
shr eax, 1
movzx esi, al
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax + 4]
call dword [0x63e63c]
mov dword [esp + 0x10], esi
push esi
push edi
call ecx
add esp, 8
mov esi, eax
lock dec dword [edi]
je 0x5210d6
cmp esi, 0x20
mov eax, 0x20
cmovb eax, esi
xor ecx, ecx
sub eax, dword [esp + 0x10]
cmovb eax, ecx
jmp 0x520743
mov ecx, dword [edi + 0xc]
mov eax, ebx
cmp ecx, ebx
je 0x520a08
mov edx, ecx
add ecx, 0xfffffff8
je 0x521121
mov esi, dword [ecx]
test esi, esi
mov dword [esp + 0x18], ecx
jne 0x520cc9
mov dword [ecx], 0
test esi, esi
jne 0x520cf3
mov eax, dword [edx - 4]
mov ecx, eax
shr ecx, 0xe
mov esi, edx
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c804]
bt edx, ecx
jb 0x521146
mov dword [esi - 4], 0
mov ecx, dword [esi - 8]
test ecx, ecx
jne 0x521130
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x5209a5
mov eax, dword [edi + 8]
mov dword [edi + 0xc], ebx
push eax
call fcn.00564ea0
add esp, 4
jmp 0x52082d
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x5206e0
mov eax, dword [ebx + 0x5c]
cmp eax, dword [ebx + 0x60]
je 0x520fe6
cmp byte [eax + 8], 0
jne 0x520a6d
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call dword [0x63e63c]
mov ecx, dword [esp]
call dword [esp + 4]
mov edx, dword [esp + 8]
lea ecx, [esi + eax]
add eax, esi
dec eax
cmp eax, 1
adc ecx, 0xffffffff
jmp 0x5206e0
mov ecx, esi
jmp 0x5206e0
mov al, 1
jmp 0x5202bd
mov ebx, 3
jmp 0x5204f2
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x520579
movzx ecx, word [ecx + 8]
mov word [eax + 0x78], cx
jmp 0x520ac5
mov byte [edi + 0x29], 1
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0x5c]
mov edx, dword [eax + 0xa4]
inc edx
mov dword [eax + 0xa4], edx
cmp ecx, dword [eax + 0x60]
je 0x520abf
cmp dword [eax + 0xac], edx
jae 0x520a91
mov word [eax + 0x78], 0
mov esi, dword [edi + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov eax, dword [esi]
mov ebx, dword [eax + 0x28]
mov ecx, ebx
call dword [0x63e63c]
mov ecx, esi
push dword [esp]
call ebx
jmp 0x52068f
push 0x65507c
call fcn.00564ee8
add esp, 4
cmp dword [0x65507c], 0xffffffff
jne 0x5203de
push 0x65507c
call fcn.00564f37
add esp, 4
jmp 0x5203de
lea eax, [edx + ebx*4]
add eax, 0xfffffffc
neg ebx
test eax, eax
je 0x521121
mov ecx, dword [eax]
test ecx, ecx
je 0x520b34
lock dec dword [ecx + 4]
je 0x521461
add eax, 0xfffffffc
inc ebx
jne 0x520b1c
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
and eax, 1
jmp 0x520809
push 0x655078
call fcn.00564ee8
add esp, 4
cmp dword [0x655078], 0xffffffff
jne 0x5203aa
mov dword [0x655074], 0
push 0x655078
call fcn.00564f37
add esp, 4
jmp 0x5203aa
push 0x6567a8
call fcn.00564ee8
add esp, 4
cmp dword [0x6567a8], 0xffffffff
jne 0x52048f
mov ecx, dword [0x64a7d4]
test ecx, ecx
je 0x520bac
push str.enable_background_thread_pool
call fcn.005305b0
mov byte [0x6567a4], 1
push 0x6567a8
call fcn.00564f37
add esp, 4
jmp 0x52048f
push 0x655074
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x5203bd
shl ebx, 2
xor ecx, ecx
mov eax, dword [esp]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + ecx]
test ecx, ecx
je 0x520bfb
xor eax, eax
inc eax
lock xadd dword [ecx + 4], eax
cmp eax, 0x7fffffff
je 0x52127a
mov dword [esp + 4], ecx
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x30]
mov edx, dword [ecx + 0x34]
test eax, eax
je 0x520c20
xor ecx, ecx
inc ecx
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
je 0x52127d
mov ecx, dword [esp + 4]
push edx
push eax
call fcn.00434660
mov ecx, dword [edi + 4]
cmp byte [ecx + 0xe0], 0
jne 0x521280
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x520c4d
lock dec dword [ecx + 4]
je 0x521290
mov ecx, dword [esp + 0xc]
add ecx, 4
cmp ebx, ecx
jne 0x520bda
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov ebx, ecx
shr ebx, 1
mov eax, ecx
and eax, 1
cmp ecx, 2
setb cl
jmp 0x5207f7
cmp byte [eax + 0x28], 0
je 0x5203fe
mov esi, dword [eax + 0x20]
mov dword [eax + 0x20], 0
test esi, esi
je 0x5203fe
lock dec dword [esi]
jne 0x5203fe
mov ecx, esi
mov edi, edx
call fcn.004ed960
push esi
call fcn.00564ea0
mov edx, edi
add esp, 4
jmp 0x5203fe
mov eax, dword [esp]
mov eax, dword [eax + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
jne 0x520ce6
jmp 0x520f6b
mov eax, dword [edx - 4]
mov dword [esp], eax
test eax, eax
je 0x5209be
mov dword [ecx], 0
mov al, byte [esi + 9]
and al, 0x7f
cmp al, 2
je 0x520cb0
mov eax, dword [esp]
lock dec dword [eax + 0xc]
je 0x520d91
lock dec dword [esi + 4]
jne 0x5209cc
mov dword [esp + 0xc], edx
mov dword [esi], 0x6229f0
mov eax, dword [esi + 0x5c]
mov dword [esp], eax
test eax, eax
jne 0x520ef7
lea eax, [esi + 0x3c]
mov dword [esp], eax
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov eax, ecx
mov dword [esp + 4], edx
cmp edx, ecx
jne 0x521474
mov dword [esi + 0x40], ecx
test eax, eax
jne 0x5214a7
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [esp], ecx
cmp ecx, eax
jne 0x5213a1
push 0
push dword [esi + 0x28]
push 0x635c90
call fcn.005087f0
add esp, 0xc
mov eax, dword [esi + 0x24]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x64c804]
bt edx, ecx
jae 0x520d7f
push eax
call fcn.004f1260
add esp, 4
push esi
call fcn.00564ea0
add esp, 4
mov edx, dword [esp + 0xc]
jmp 0x5209cc
mov dword [esp + 0xc], edx
lea ecx, [eax + 0x14]
mov dword [esp + 4], ecx
push ecx
mov eax, dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
call eax
test al, al
je 0x520f5c
mov eax, dword [esp]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push dword [esp + 4]
mov eax, dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
call eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x521392
mov eax, dword [esp]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 8], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [eax + 0x1c], xmm0
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, ecx
cmp ecx, eax
jne 0x52129c
push 0
push dword [esp + 0xc]
push 0x635c90
call fcn.005087f0
add esp, 0xc
mov edx, dword [esp + 0xc]
jmp 0x5209c4
cmp dword [ebx + 0xb8], 0
jle 0x5206c8
mov al, 1
mov ecx, dword [esp + 0xc]
mov byte [ecx + 0x20], al
mov byte [ebx + 0xc0], al
jmp 0x52076c
mov ecx, dword [edi + 4]
call fcn.00434840
cmp dword [edi + 0x14], 0
je 0x520822
mov ecx, dword [esp + 0x18]
call fcn.005d1d20
jmp 0x520822
push esi
call fcn.004f0de0
mov edx, dword [ebp + 8]
add esp, 4
jmp 0x52029a
mov ecx, dword [ecx + 0x24]
cmp ecx, 3
je 0x5214c1
xor eax, eax
cmp ecx, 1
sete al
jmp 0x520eb6
mov eax, dword [0x64783c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0xb8]
xor eax, eax
test ecx, ecx
jne 0x520e85
cmp ebx, 7
jge 0x5214a4
push eax
push ebx
call fcn.00410840
add esp, 8
mov eax, dword [0x64783c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0xb0], ebx
mov dword [esi + 0x34], ebx
jmp 0x5204fb
xor eax, eax
jmp 0x520747
mov ecx, dword [esi]
mov dword [esp], ecx
jmp 0x5207e1
mov eax, dword [esi + 0x60]
mov ecx, dword [esp]
mov dword [esp + 4], ecx
cmp eax, ecx
je 0x520f45
mov edx, eax
mov dword [esp + 4], eax
add dword [esp + 4], 0xfffffff4
je 0x521121
mov ecx, dword [edx - 4]
test ecx, ecx
je 0x520f33
add edx, 0xfffffff8
mov dword [esp + 8], edx
call dword [0x63e63c]
push dword [esp + 8]
call ecx
add esp, 4
mov eax, dword [esp + 4]
mov edx, eax
cmp eax, dword [esp]
jne 0x520f0b
mov eax, dword [esi + 0x5c]
mov dword [esp + 4], eax
mov ecx, dword [esp]
mov dword [esi + 0x60], ecx
push dword [esp + 4]
call fcn.00564ea0
add esp, 4
jmp 0x520d15
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x520dac
mov dword [esp + 0xc], edx
mov eax, dword [esp]
add eax, 0x2c
mov dword [esp + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5214cb
mov eax, dword [esp]
mov ecx, dword [eax + 0x30]
call fcn.0053f280
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov edx, dword [esp + 0xc]
jmp 0x520ce6
mov ecx, edi
call fcn.005c6f10
mov byte [ebx + 0x28], 0
jmp 0x520310
mov eax, dword [eax]
jmp 0x5207b3
mov edx, dword [esi]
jmp 0x520801
push str....._third_partylibc_srcincludeoptional:801:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
push 0x624173
call fcn.00591ed0
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x5203f7
mov edi, dword [esp + 4]
jmp 0x520757
push str....._third_partylibc_srcinclude_vector:618:_assertion__empty___failed:_front___called_on_an_empty_vector_n
push 0x624173
call fcn.00591ed0
push ebx
call fcn.004f0de0
add esp, 4
jmp 0x520545
push dword [esi]
call fcn.00564ea0
add esp, 4
jmp 0x520811
push eax
call fcn.004f0f10
add esp, 4
jmp 0x52084a
int3
int3
int3
int3
mov eax, dword [0x6496b8]
mov dword [esp + 0x18], eax
mov ecx, dword [0x6496bc]
mov dword [esp], ecx
push ecx
push eax
push esi
push ebx
call fcn.00588630
mov dword [esp + 4], eax
mov dword [esp + 0x10], edx
mul dword [esp + 0x18]
mov dword [esp + 8], eax
mov ecx, dword [esp + 4]
imul ecx, dword [esp]
add edx, ecx
mov eax, dword [esp + 0x10]
imul ecx, eax, 0xf4240
mov dword [esp + 0xc], ecx
imul eax, dword [esp + 0x18]
add eax, edx
sub ebx, dword [esp + 8]
sbb esi, eax
mov ecx, 0xf4240
mov eax, dword [esp + 4]
mul ecx
mov dword [esp + 4], eax
add edx, dword [esp + 0xc]
mov dword [esp + 0xc], edx
mov eax, ebx
mul ecx
imul ecx, esi, 0xf4240
add edx, ecx
push dword [esp]
push dword [esp + 0x1c]
push edx
push eax
call fcn.00588630
add eax, dword [esp + 4]
adc edx, dword [esp + 0xc]
jmp 0x520380
xor ecx, ecx
call fcn.00523cf0
jmp 0x5208f8
mov ecx, dword [esp + 0xc]
push 1
call fcn.004036f0
jmp 0x5208f8
push edi
call fcn.004ed190
add esp, 4
jmp 0x520983
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
cmp byte [eax + 0x10], 0
jne 0x520408
mov ecx, edi
call fcn.005e2d20
jmp 0x520408
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
push 0x624173
call fcn.00591ed0
lock dec dword [ecx + 4]
jne 0x5209fd
push 1
call fcn.0053f300
jmp 0x5209fd
push eax
call fcn.004f1260
add esp, 4
jmp 0x5209eb
mov eax, dword [0x6496b8]
mov dword [esp], eax
mov ecx, dword [0x6496bc]
mov dword [esp + 4], ecx
push ecx
push eax
push esi
push ebx
call fcn.00588630
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
mul dword [esp]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0xc]
imul ecx, dword [esp + 4]
add edx, ecx
mov eax, dword [esp + 0x14]
imul ecx, eax, 0xf4240
mov dword [esp + 8], ecx
imul eax, dword [esp]
add eax, edx
sub ebx, dword [esp + 0x10]
sbb esi, eax
mov ecx, 0xf4240
mov eax, dword [esp + 0xc]
mul ecx
mov dword [esp + 0xc], eax
add edx, dword [esp + 8]
mov dword [esp + 8], edx
mov eax, ebx
mul ecx
imul ecx, esi, 0xf4240
add edx, ecx
push dword [esp + 4]
push dword [esp + 4]
push edx
push eax
call fcn.00588630
add eax, dword [esp + 0xc]
adc edx, dword [esp + 8]
jmp 0x52065a
movzx eax, al
mov dword [esp + 4], eax
mov ecx, dword [0x648784]
mov edx, dword [0x648780]
xor edx, dword [esp + 0xc]
lea eax, [esp + 0x30]
mov dword [eax + 4], ecx
mov dword [eax], edx
lea ecx, [esp + 0x2c]
mov dword [ecx], str.WorkerThreadWaitableEvent::WakeUp
lea edx, [esp + 0x28]
push eax
push 3
push ecx
push edx
push dword [esp + 0x14]
call fcn.005c0c80
mov ecx, dword [esp + 0x20]
add esp, 0x14
jmp 0x5208d0
movzx eax, al
mov dword [esp + 8], eax
mov ecx, dword [0x648784]
mov dword [esp + 4], edx
mov edx, dword [0x648780]
xor edx, dword [esp + 4]
lea eax, [esp + 0x30]
mov dword [eax + 4], ecx
mov dword [eax], edx
lea ecx, [esp + 0x2c]
mov dword [ecx], str.WaitableEvent::Signal
lea edx, [esp + 0x28]
push eax
push 3
push ecx
push edx
push dword [esp + 0x18]
call fcn.005c0c80
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 0x14
jmp 0x5208dc
int3
int3
add ecx, 0xd8
call fcn.005342b0
jmp 0x520c3b
push 1
call fcn.004036f0
jmp 0x520c4d
mov eax, edx
mov dword [esp + 4], edx
cmp dword [esp + 0x1c], edx
jb 0x5210e4
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov eax, dword [eax + ecx*4]
mov dword [esp], eax
test eax, eax
je 0x5210e7
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [eax + ecx*4], 0
mov eax, dword [esp]
mov ecx, dword [eax + 4]
call dword [0x63e63c]
push dword [esp]
call ecx
add esp, 4
mov eax, dword [esp]
lock dec dword [eax]
jne 0x521301
mov eax, dword [esp]
mov ecx, dword [eax + 8]
call dword [0x63e63c]
push dword [esp]
call ecx
add esp, 4
mov edx, dword [esp + 4]
inc edx
xor eax, eax
cmp edx, dword [esp + 0x1c]
cmove edx, eax
mov eax, dword [esp + 0x10]
cmp edx, eax
mov ecx, dword [esp + 0x14]
jne 0x52129c
cmp eax, ecx
jbe 0x5214da
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x10]
jb 0x5210ea
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jg 0x5210ed
mov eax, dword [esp + 0x10]
shl eax, 2
mov ecx, dword [esp + 0x14]
shl ecx, 2
mov dword [esp + 0x10], eax
jmp 0x52137a
mov dword [esp], eax
mov ecx, dword [eax + 8]
call dword [0x63e63c]
push dword [esp]
call ecx
add esp, 4
mov ecx, dword [esp + 0x14]
add ecx, 4
mov eax, dword [esp + 0x10]
cmp eax, ecx
je 0x520e17
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 8]
mov ecx, dword [eax + ecx]
test ecx, ecx
je 0x521367
mov eax, ecx
lock dec dword [ecx]
je 0x521353
jmp 0x521367
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x520dd5
mov ecx, dword [esi + 0x2c]
jbe 0x5213e4
cmp ecx, dword [esp]
jb 0x5210f0
cmp eax, dword [esp]
jg 0x5210f3
imul eax, eax, 0x58
mov ecx, dword [esi + 0x28]
add ecx, eax
imul edx, dword [esp], 0x58
sub edx, eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.005647d0
mov ecx, dword [esp]
add ecx, 0x58
add dword [esp + 4], 0xffffffa8
jne 0x5213ca
jmp 0x520d4b
cmp ecx, eax
jb 0x5210f6
jl 0x5210f9
je 0x521421
imul eax, eax, 0x58
mov edx, dword [esi + 0x28]
add edx, eax
imul ecx, ecx, 0x58
sub ecx, eax
mov dword [esp + 8], ecx
mov ecx, edx
mov dword [esp + 4], edx
call fcn.005647d0
mov edx, dword [esp + 4]
add edx, 0x58
add dword [esp + 8], 0xffffffa8
jne 0x521405
mov eax, dword [esi + 0x2c]
cmp eax, dword [esp]
jb 0x5210fc
cmp dword [esp], 0
js 0x5210ff
je 0x520d4b
mov eax, dword [esi + 0x28]
imul ecx, dword [esp], 0x58
mov dword [esp + 4], ecx
mov ecx, eax
mov dword [esp], eax
call fcn.005647d0
mov eax, dword [esp]
add eax, 0x58
add dword [esp + 4], 0xffffffa8
jne 0x521445
jmp 0x520d4b
push 1
mov dword [esp + 4], eax
call fcn.004036f0
mov eax, dword [esp]
jmp 0x520b34
mov dword [esp + 8], ecx
add dword [esp + 4], 0xffffffa8
je 0x521121
mov ecx, dword [esp + 4]
call fcn.005647d0
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
jne 0x521478
mov eax, dword [esp]
mov eax, dword [eax]
mov ecx, dword [esp + 8]
jmp 0x520d2f
int3
mov ecx, dword [esp]
call fcn.005d2de0
mov eax, dword [esp]
push dword [eax]
call fcn.00564ea0
add esp, 4
jmp 0x520d3a
mov eax, 3
jmp 0x520eb6
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x520f88
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x14]
jb 0x521102
jl 0x521105
je 0x521537
shl dword [esp + 0x1c], 2
shl dword [esp + 0x14], 2
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov ecx, dword [eax + ecx]
test ecx, ecx
je 0x521524
mov eax, ecx
lock dec dword [ecx]
jne 0x521524
mov dword [esp], eax
mov ecx, dword [eax + 8]
call dword [0x63e63c]
push dword [esp]
call ecx
add esp, 4
mov ecx, dword [esp + 0x14]
add ecx, 4
mov eax, ecx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x1c], ecx
jne 0x5214fa
cmp dword [esp + 0x10], 0
js 0x521108
mov eax, dword [esp + 0x10]
je 0x520e17
shl eax, 2
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp]
mov ecx, dword [eax + ecx]
test ecx, ecx
je 0x521585
mov eax, ecx
lock dec dword [ecx]
jne 0x521585
mov dword [esp + 4], eax
mov ecx, dword [eax + 8]
call dword [0x63e63c]
push dword [esp + 4]
call ecx
add esp, 4
mov edx, dword [esp]
add edx, 4
mov eax, dword [esp + 0x10]
mov ecx, edx
mov dword [esp], edx
cmp eax, edx
jne 0x521556
jmp 0x520e17