Function at 0x515d50
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1b0
mov esi, esp
lea ebx, [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esi + 0x1a8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 9]
and eax, 0x7f
mov dl, 1
mov dword [esi + 0x14], edx
cmp eax, 1
mov dword [esi + 0x10], ecx
jne 0x515e1f
mov eax, dword [ecx + 8]
mov ecx, 2
lock xadd dword [eax], ecx
test cl, 1
jne 0x516f34
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x140], xmm0
movdqa xmmword [esi + 0x190], xmm0
movdqa xmmword [esi + 0x180], xmm0
movdqa xmmword [esi + 0x170], xmm0
movdqa xmmword [esi + 0x160], xmm0
movdqa xmmword [esi + 0x150], xmm0
mov byte [esi + 0x140], 0
mov byte [esi + 0x198], 0
mov dword [esi + 0x4c], 0x102
mov byte [esi + 0x50], 0
mov edi, dword [ebx + 4]
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6527ec]
bt ecx, eax
jae 0x515ecd
push edi
call fcn.00506e00
add esp, 4
jmp 0x515ed9
cmp eax, 2
je 0x515da7
test eax, eax
jne 0x517200
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax]
test al, 1
sete al
mov dword [esi + 0x14], eax
jmp 0x515da7
mov ecx, edi
call dword [0x6445dc]
lea eax, [esi + 0x54]
lea edx, [esi + 0x80]
mov ecx, ebx
push eax
push edx
call edi
jmp 0x516081
cmp edi, 0x57da90
jne 0x515e41
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x515e87
xor ecx, ecx
inc ecx
lock xadd dword [eax], ecx
test ecx, ecx
jle 0x51720d
cmp ecx, 0x7fffffff
je 0x51720a
movups xmm0, xmmword [ebx + 0x40]
movaps xmmword [esi + 0x80], xmm0
movups xmm0, xmmword [ebx + 0x50]
movdqu xmm1, xmmword [ebx + 0x60]
movaps xmmword [esi + 0x90], xmm0
movdqa xmmword [esi + 0xa0], xmm1
movups xmm0, xmmword [ebx + 0x70]
movaps xmmword [esi + 0xb0], xmm0
movdqu xmm0, xmmword [ebx + 0x79]
movdqu xmmword [esi + 0xb9], xmm0
mov dword [esi + 0xd0], eax
jmp 0x516081
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
mov dword [esi + 0x54], edi
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x516e9e
cmp byte [esi + 0x14], 0
je 0x516fa7
mov ebx, dword [ebx + 4]
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
cmp edi, 0x561a20
jne 0x515e5d
lea edi, [ebx + 0x10]
mov ecx, edi
shr ecx, 0xe
xor eax, eax
inc eax
shl eax, cl
mov dword [esi + 0x38], eax
mov eax, edi
shr eax, 0x13
mov dword [esi + 0x34], eax
mov eax, dword [eax*4 + 0x6527ec]
bt eax, ecx
jae 0x516c17
push edi
call fcn.00506e00
add esp, 4
xor eax, eax
dec eax
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd0], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0xc0], xmm0
movdqa xmmword [esi + 0xb0], xmm0
movdqa xmmword [esi + 0xa0], xmm0
movdqa xmmword [esi + 0x90], xmm0
movdqa xmmword [esi + 0x80], xmm0
mov eax, dword [ebx + 0x30]
lea edx, [ebx + 0x38]
cmp eax, dword [ebx + 0x34]
mov dword [esi + 0x18], edi
je 0x517161
lea ecx, [ebx + 0x28]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebx + 0x40]
jne 0x51710a
cmp dword [ebx + 0x2c], eax
jb 0x517096
mov ecx, dword [ebx + 0x28]
imul eax, eax, 0x58
movups xmm0, xmmword [ecx + eax]
movaps xmmword [esi + 0x80], xmm0
movups xmm0, xmmword [ecx + eax + 0x10]
movdqu xmm1, xmmword [ecx + eax + 0x20]
movaps xmmword [esi + 0x90], xmm0
movdqa xmmword [esi + 0xa0], xmm1
movups xmm0, xmmword [ecx + eax + 0x30]
movaps xmmword [esi + 0xb0], xmm0
movdqu xmm0, xmmword [ecx + eax + 0x39]
movdqu xmmword [esi + 0xb9], xmm0
mov edx, dword [ecx + eax + 0x50]
mov dword [esi + 0xd0], edx
mov dword [ecx + eax + 0x50], 0
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x30]
lea edx, [eax + 1]
cmp ecx, edx
jb 0x517099
cmp ecx, eax
jb 0x51709c
cmp eax, 0x7fffffff
je 0x51709f
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
imul eax, eax, 0x58
mov edi, dword [ecx + eax + 0x50]
test edi, edi
jne 0x516ddd
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x30]
inc edx
xor ecx, ecx
cmp edx, eax
cmove edx, ecx
mov dword [ebx + 0x30], edx
cmp eax, 5
jae 0x516e2e
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jne 0x516b82
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebx + 0x40]
mov edx, dword [esi + 0x18]
jne 0x5171c6
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
test dword [ecx*4 + 0x6527ec], eax
je 0x516081
push edx
call fcn.00506f30
add esp, 4
movaps xmm0, xmmword [esi + 0x80]
movaps xmm1, xmmword [esi + 0x90]
movaps xmmword [esi + 0xe0], xmm0
movaps xmmword [esi + 0xf0], xmm1
movaps xmm0, xmmword [esi + 0xa0]
movaps xmmword [esi + 0x100], xmm0
movaps xmm0, xmmword [esi + 0xb0]
movaps xmmword [esi + 0x110], xmm0
movdqu xmm0, xmmword [esi + 0xb9]
movdqu xmmword [esi + 0x119], xmm0
mov eax, dword [esi + 0xd0]
mov dword [esi + 0x130], eax
mov dword [esi + 0xd0], 0
mov byte [esi + 0x138], 1
mov al, 1
movzx ecx, byte [esi + 0x198]
cmp cl, al
je 0x5170b0
test cl, cl
lea ebx, [ebp + 8]
jne 0x5170d2
movaps xmm0, xmmword [esi + 0xe0]
movaps xmm1, xmmword [esi + 0xf0]
movaps xmmword [esi + 0x140], xmm0
movaps xmmword [esi + 0x150], xmm1
movaps xmm0, xmmword [esi + 0x100]
movaps xmmword [esi + 0x160], xmm0
movaps xmm0, xmmword [esi + 0x110]
movaps xmmword [esi + 0x170], xmm0
movdqu xmm0, xmmword [esi + 0x119]
movdqu xmmword [esi + 0x179], xmm0
mov eax, dword [esi + 0x130]
mov dword [esi + 0x190], eax
mov dword [esi + 0x130], 0
mov byte [esi + 0x198], 1
cmp byte [esi + 0x138], 0
je 0x51617e
mov edi, dword [esi + 0x130]
test edi, edi
jne 0x516bdd
cmp byte [esi + 0x14], 0
je 0x516192
mov edi, dword [esi + 0xd0]
test edi, edi
jne 0x516bfa
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 8]
mov dword [esi + 0x4c], ecx
movzx ecx, byte [eax + 0xc]
mov byte [esi + 0x50], cl
test eax, eax
jne 0x516c39
cmp byte [esi + 0x198], 0
je 0x516705
mov eax, dword [esi + 0x158]
or eax, dword [esi + 0x15c]
mov ecx, dword [esi + 0x10]
jne 0x516e6f
mov dword [esi + 0x18], esp
push eax
sub esp, 0x5c
mov edx, esp
cmp byte [esi + 0x198], 0
je 0x51707d
mov edi, dword [ebx + 4]
movaps xmm0, xmmword [esi + 0x140]
movups xmmword [edx], xmm0
movaps xmm0, xmmword [esi + 0x150]
movaps xmm1, xmmword [esi + 0x160]
movups xmmword [edx + 0x10], xmm0
movups xmmword [edx + 0x20], xmm1
movaps xmm0, xmmword [esi + 0x170]
movups xmmword [edx + 0x30], xmm0
movdqu xmm0, xmmword [esi + 0x179]
movdqu xmmword [edx + 0x39], xmm0
mov eax, dword [esi + 0x190]
mov dword [edx + 0x50], eax
mov dword [esi + 0x190], 0
mov dword [edx + 0x58], edi
lea eax, [esi + 0x4c]
mov dword [edx + 0x5c], eax
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
cmp ebx, 0x575d60
jne 0x516bc7
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x70], xmm0
mov eax, dword [edi]
mov ebx, dword [eax]
cmp ebx, 0x576680
mov dword [esi + 0xc], edx
jne 0x516b44
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov ebx, dword [edi + 0x24]
add edi, 0x5c
mov dword [esi + 0x70], ecx
mov ecx, edi
shr ecx, 0xe
xor edx, edx
inc edx
shl edx, cl
mov ecx, edi
shr ecx, 0x13
and edx, dword [ecx*4 + 0x6527ec]
cmp eax, 2
je 0x516d49
test edx, edx
je 0x516dcc
push edi
call fcn.00506e00
add esp, 4
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], 0
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6527ec]
bt ecx, eax
jae 0x516c28
push ebx
call fcn.00506e00
add esp, 4
mov edx, dword [esi + 0xc]
mov dword [esi + 0x7c], ebx
mov eax, dword [edx + 0x5c]
mov al, byte [eax + 1]
mov byte [esi + 0x38], al
test al, 0x7f
je 0x516dfa
mov eax, dword [edx + 0x58]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x2c], eax
mov edx, dword [0x64d82c]
mov edi, dword fs:[0x2c]
mov edx, dword [edi + edx*4]
lea ebx, [edx + 0x154]
lea edi, [edx + 0x150]
mov eax, dword [ebx]
mov dword [esi + 0x44], eax
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x516ec7
mov dword [esi + 0x40], eax
mov edx, dword [0x64d82c]
mov eax, edi
mov edi, dword fs:[0x2c]
mov edi, dword [edi + edx*4]
mov dl, byte [edi + 0x158]
mov byte [esi + 0x22], dl
mov dl, byte [edi + 0x159]
mov byte [esi + 0x23], dl
xor edx, edx
inc edx
lock xadd dword [0x65dcc8], edx
cmp ecx, 2
mov dword [esi + 0x34], ebx
mov dword [ebx], edx
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 0x2c]
mov dword [eax], ecx
sete byte [edi + 0x158]
xor eax, eax
mov byte [edi + 0x159], al
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + 0x5c]
mov cl, byte [ecx]
mov dl, byte [edi + 0x144]
mov byte [esi + 0x21], dl
mov dword [esi + 0x2c], edi
mov byte [edi + 0x144], cl
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
mov byte [esi + 0x60], al
mov byte [esi + 0x6c], al
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x5164fb
mov eax, dword [0x64d82c]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + eax*4]
mov eax, dword [edx + 0x140]
mov dword [esi + 0x28], eax
mov dword [edx + 0x140], ecx
xor eax, eax
dec eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x58], eax
xor ecx, ecx
mov byte [esi + 0x54], cl
mov byte [esi + 0x5c], cl
movdqa xmmword [esi + 0xe0], xmm0
mov dword [esi + 0xf0], eax
mov byte [esi + 0xe0], cl
mov byte [esi + 0xf0], cl
mov eax, dword [esi + 0x7c]
test eax, eax
mov dword [esi + 0x24], edx
jne 0x51651f
mov eax, dword [esi + 0x78]
test eax, eax
mov edx, dword [esi + 0xc]
je 0x51658f
xor ecx, ecx
inc ecx
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
je 0x5171ac
mov dword [esi + 0xe0], eax
mov ecx, dword [0x64d82c]
mov edx, dword fs:[0x2c]
mov edi, dword [edx + ecx*4]
mov ebx, dword [edi + 0x98]
mov ecx, ebx
shr ecx, 0xe
mov edx, ebx
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jb 0x51726d
mov ecx, ebx
shr ecx, 0x15
mov byte [ecx + 0x65a7ec], 1
mov dword [esi + 0xe4], ebx
xor ecx, ecx
inc ecx
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
mov edx, dword [esi + 0xc]
je 0x5171af
lea ecx, [esi + 0xe8]
mov dword [ecx], eax
mov eax, dword [0x64d82c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea eax, [eax + 0x9c]
mov dword [esi + 0x3c], eax
mov ebx, dword [eax]
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6527ec]
bt ecx, eax
lea edi, [edi + 0x98]
jb 0x51725c
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
lea eax, [esi + 0xf0]
mov dword [eax - 4], ebx
lea ecx, [esi + 0xe8]
mov ebx, dword [esi + 0x3c]
mov dword [ebx], ecx
lea ecx, [esi + 0xe0]
mov dword [edi], ecx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x51658c
jmp 0x517210
lea ecx, [esi + 0x60]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov byte [ecx + 0xc], 1
jmp 0x5163a6
mov ebx, dword [esi + 0x60]
test ebx, ebx
je 0x516647
jmp 0x516ed9
xor ecx, ecx
inc ecx
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
je 0x5170fe
mov dword [esi + 0x54], eax
mov eax, dword [0x64d82c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
lea ebx, [eax + 0x9c]
mov edi, dword [ebx]
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6527ec]
bt ecx, eax
mov edx, dword [esi + 0xc]
jb 0x5171b2
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
lea eax, [esi + 0x5c]
mov dword [eax - 4], edi
lea ecx, [esi + 0x54]
mov dword [ebx], ecx
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x517176
mov byte [eax], 1
mov ebx, dword [edx + 0x58]
mov eax, dword [edx + 0x5c]
movzx ecx, byte [eax + 1]
and ecx, 0x7f
cmp ecx, 1
jne 0x516d93
lea edi, [esi + 0x70]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push edi
push ebx
push eax
call fcn.00517640
mov edx, dword [esi + 0xc]
add esp, 0xc
mov edi, dword [edx + 0x50]
mov dword [edx + 0x50], 0
test edi, edi
jne 0x516eaa
cmp byte [esi + 0xf0], 0
jne 0x516c6e
mov eax, dword [esi + 0x24]
lea ebx, [eax + 0x140]
cmp byte [esi + 0x5c], 0
mov edi, dword [esi + 0x34]
je 0x516638
mov eax, dword [esi + 0x58]
mov ecx, dword [0x64d82c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
mov dword [ecx + 0x9c], eax
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jb 0x517190
mov dword [esi + 0x58], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x516638
lock dec dword [eax + 4]
je 0x517182
mov eax, dword [esi + 0x28]
mov dword [ebx], eax
cmp byte [esi + 0x6c], 0
jne 0x51650f
mov edx, dword [esi + 0x2c]
lea eax, [edx + 0x144]
mov cl, byte [esi + 0x21]
mov byte [eax], cl
mov eax, dword [esi + 0x44]
mov dword [edi], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
lea eax, [edx + 0x158]
mov cl, byte [esi + 0x22]
mov byte [eax], cl
lea eax, [edx + 0x159]
mov cl, byte [esi + 0x23]
mov byte [eax], cl
test byte [esi + 0x38], 0x7f
je 0x516e14
mov eax, dword [esi + 0x7c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
lea ebx, [ebp + 8]
jae 0x5166a7
push eax
call fcn.00506f30
add esp, 4
mov dword [esi + 0x7c], 0
mov eax, dword [esi + 0x78]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jb 0x516bb9
mov dword [esi + 0x78], 0
mov eax, dword [esi + 0x74]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jae 0x5166f4
push eax
call fcn.00506f30
add esp, 4
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0x50]
test edi, edi
jne 0x516d1e
mov esp, dword [esi + 0x18]
cmp byte [esi + 0x14], 0
je 0x516730
mov eax, dword [ebx + 4]
movzx eax, byte [eax + 9]
and al, 0x7f
cmp al, 1
jne 0x516730
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
je 0x516fd0
mov edi, dword [ebx + 4]
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
cmp ebx, 0x539740
jne 0x5168d9
lea edx, [edi + 0x10]
mov ebx, edx
shr ebx, 0xe
mov eax, edx
shr eax, 0x13
mov dword [esi + 0x14], eax
mov eax, dword [eax*4 + 0x6527ec]
bt eax, ebx
mov dword [esi + 0xc], edx
jb 0x5169ce
mov eax, edx
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
test edx, edx
je 0x516789
push edx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov edx, dword [esi + 0xc]
test al, al
je 0x516f98
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
mov eax, dword [eax*4 + 0x6527ec]
bt eax, ebx
jae 0x516a91
push edx
call fcn.00506e00
add esp, 4
mov byte [edi + 0x58], 0
mov eax, dword [edi + 0x30]
mov bl, 1
cmp eax, dword [edi + 0x34]
jne 0x5169c6
mov eax, dword [edi + 0x3c]
cmp eax, dword [edi + 0x40]
mov ecx, dword [esi + 0xc]
jne 0x5167e3
mov byte [edi + 0x59], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x5167e1
lock dec dword [eax + 4]
je 0x516aa2
xor ebx, ebx
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
test dword [eax*4 + 0x6527ec], edi
je 0x5167fe
push ecx
call fcn.00506f30
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x51680c
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
test dword [eax*4 + 0x6527ec], edi
je 0x516821
push ecx
call fcn.00506f30
add esp, 4
test bl, bl
jne 0x516989
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
add eax, 4
lea ebx, [ebp + 8]
mov dword [eax], 0
cmp byte [esi + 0x198], 0
je 0x516855
mov edi, dword [esi + 0x190]
test edi, edi
jne 0x5169a9
mov eax, ebx
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x5169df
mov dword [eax + 4], 0
test ebx, ebx
jne 0x516a08
lea edi, [ebp + 8]
mov eax, dword [edi + 8]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jb 0x5170a2
mov dword [edi + 8], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x517080
mov edi, dword [edi]
mov ecx, dword [esi + 0x1a8]
xor ecx, ebp
call fcn.005810d5
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, ebx
call dword [0x6445dc]
mov ecx, edi
push 0
call ebx
test al, al
je 0x516829
jmp 0x516989
cmp ebx, 0x57daf0
jne 0x5168be
lea ebx, [edi + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x516f28
mov dword [esi + 0xc], ebx
mov ebx, 0xfffffffe
lock xadd dword [edi + 0x24], ebx
xor eax, eax
xchg dword [edi + 0x28], eax
test eax, eax
jne 0x516b36
test bl, 1
jne 0x51719e
mov ecx, dword [edi + 0x34]
test ecx, ecx
je 0x517101
xor eax, eax
inc eax
lock xadd dword [ecx], eax
test eax, eax
jle 0x517104
mov dword [esi + 0x14], ecx
cmp eax, 0x7fffffff
je 0x517107
shr ebx, 1
movzx eax, bl
mov dword [esi + 0x10], eax
lea ebx, [eax - 1]
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + 4]
call dword [0x6445dc]
push ebx
mov edi, dword [esi + 0x14]
push edi
call ecx
mov ecx, edi
add esp, 8
mov edi, eax
lock dec dword [ecx]
je 0x517246
cmp edi, 0x20
mov ebx, 0x20
cmovb ebx, edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp ebx, dword [esi + 0x10]
jb 0x516829
lea ebx, [ebp + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x1c]
mov dword [ecx], eax
mov dword [ebx + 4], 0
mov eax, dword [ebx + 8]
mov dword [ecx + 4], eax
lea eax, [ebx + 8]
jmp 0x516838
lock dec dword [edi]
jne 0x516855
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
jmp 0x516855
mov ecx, dword [esi + 0xc]
jmp 0x5167e3
push edx
call fcn.00506e00
mov edx, dword [esi + 0xc]
add esp, 4
jmp 0x516773
mov edi, dword [eax + 8]
test edi, edi
je 0x516862
mov dword [eax + 4], 0
mov al, byte [ebx + 9]
and al, 0x7f
cmp al, 2
je 0x516f58
lock dec dword [edi + 0xc]
je 0x516ab3
lock dec dword [ebx + 4]
jne 0x516871
mov dword [ebx], 0x6289f0
mov edi, dword [ebx + 0x5c]
test edi, edi
jne 0x516ffe
lea ecx, [ebx + 0x3c]
mov edi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x40]
mov eax, edi
cmp edx, edi
jne 0x5174eb
mov dword [ebx + 0x40], edi
test eax, eax
jne 0x517538
mov eax, dword [ebx + 0x30]
mov edi, dword [ebx + 0x34]
cmp edi, eax
jne 0x5173ed
push 0
push dword [ebx + 0x28]
push 0x63bbe0
call fcn.0051e4d0
add esp, 0xc
mov eax, dword [ebx + 0x24]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jae 0x516a83
push eax
call fcn.00507280
add esp, 4
push ebx
call fcn.0057dc2b
add esp, 4
jmp 0x516871
mov eax, edx
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
jmp 0x5167af
push eax
call fcn.00539890
mov ecx, dword [esi + 0xc]
add esp, 4
jmp 0x5167e1
lea eax, [edi + 0x14]
mov dword [esi + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5174cf
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5174dd
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x1c], eax
pxor xmm0, xmm0
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x10], ecx
movdqu xmmword [edi + 0x1c], xmm0
mov edi, eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi + 0x10]
cmp edi, eax
jne 0x5172e6
push 0
push dword [esi + 0x14]
push 0x63bbe0
call fcn.0051e4d0
add esp, 0xc
jmp 0x516869
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
jmp 0x51690d
cmp ebx, 0x57d900
jne 0x516b6a
xor eax, eax
inc eax
lock xadd dword [0x65dcc4], eax
mov dword [esi + 0x70], eax
xor eax, eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
jmp 0x5162d8
mov ecx, ebx
call dword [0x6445dc]
lea eax, [esi + 0x70]
mov ecx, edi
push eax
call ebx
mov edx, dword [esi + 0xc]
jmp 0x5162d8
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebx + 0x40]
mov edx, dword [esi + 0x18]
jne 0x517294
cmp dword [ebx + 0x2c], eax
jb 0x5171c3
mov ecx, dword [ebx + 0x28]
imul eax, eax, 0x58
movq xmm0, qword [ecx + eax + 0x10]
movq qword [ebx + 0x48], xmm0
pxor xmm0, xmm0
movq qword [ebx + 0x50], xmm0
jmp 0x516069
push eax
call fcn.00506f30
add esp, 4
jmp 0x5166cb
mov edi, ecx
mov ecx, ebx
call dword [0x6445dc]
mov ecx, edi
call ebx
lea ebx, [ebp + 8]
jmp 0x516702
lock dec dword [edi]
jne 0x51617e
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
jmp 0x51617e
lock dec dword [edi]
jne 0x516192
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
jmp 0x516192
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
jmp 0x515f3d
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
jmp 0x5162d2
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi + 0x54]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jae 0x5161aa
push eax
call fcn.00507280
add esp, 4
jmp 0x5161aa
mov ecx, dword [esi + 0xe4]
mov eax, dword [esi + 0xec]
mov edx, dword [0x64d82c]
mov edi, dword fs:[0x2c]
mov edx, dword [edi + edx*4]
mov dword [edx + 0x98], ecx
mov dword [edx + 0x9c], eax
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jb 0x51721c
mov dword [esi + 0xec], 0
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x516cce
lock dec dword [eax + 4]
je 0x51722a
mov eax, dword [esi + 0xe4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x6527ec]
bt edx, ecx
jb 0x517238
mov dword [esi + 0xe4], 0
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x5165db
lock dec dword [eax + 4]
jne 0x5165db
push eax
call fcn.00539890
add esp, 4
jmp 0x5165db
lock dec dword [edi]
jne 0x516702
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
jmp 0x516702
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
jmp 0x516d56
test edx, edx
je 0x516d3b
push edi
call fcn.00506e00
add esp, 4
mov dword [esi + 0x74], edi
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6527ec]
bt ecx, eax
jae 0x516d85
push ebx
call fcn.00506e00
add esp, 4
mov edx, dword [esi + 0xc]
mov dword [esi + 0x78], ebx
xor ebx, ebx
jmp 0x5162d5
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
jmp 0x516d78
cmp ecx, 2
jne 0x516dae
lea edi, [esi + 0x70]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push edi
push ebx
push eax
call fcn.00517820
jmp 0x5165b6
test ecx, ecx
jne 0x5165bc
lea edi, [esi + 0x70]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
push edi
push ebx
push eax
call fcn.00403760
jmp 0x5165b6
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
jmp 0x5162a5
lock dec dword [edi]
jne 0x516034
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
jmp 0x516034
mov eax, dword [0x64d82c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
inc dword [eax + 0x14c]
jmp 0x5162e9
mov eax, dword [0x64d82c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
dec dword [eax + 0x14c]
jmp 0x516682
mov edi, dword [ebx + 0x34]
cmp edx, edi
cmova ecx, eax
sub ecx, edx
add ecx, edi
dec eax
mov edx, eax
sub edx, ecx
cmp edx, ecx
jb 0x51604e
mov edi, ecx
shr edi, 2
add edi, ecx
cmp edi, 4
mov edx, 3
cmovae edx, edi
cmp edx, eax
jae 0x51604e
mov ecx, dword [esi + 0xc]
push edx
call fcn.00427290
jmp 0x51604e
mov eax, dword [ecx + 8]
mov eax, dword [eax]
test al, 1
je 0x5161cc
lea ecx, [esi + 0x190]
mov eax, dword [ecx]
mov dword [ecx], 0
mov dword [esi + 0x48], eax
push eax
call fcn.005f35d0
mov ecx, dword [esi + 0x10]
add esp, 4
jmp 0x5161cc
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x515eee
lock dec dword [edi]
jne 0x5165ce
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
jmp 0x5165ce
xor eax, eax
inc eax
lock xadd dword [0x65dcc4], eax
mov dword [edi], eax
jmp 0x516321
mov edx, dword [esi + 0x64]
mov eax, ebx
cmp edx, ebx
je 0x516f17
mov eax, edx
add eax, 0xfffffff4
je 0x517535
mov dword [esi + 0x28], eax
mov ecx, dword [edx - 4]
test ecx, ecx
je 0x516f0b
add edx, 0xfffffff8
mov dword [esi + 0x24], edx
call dword [0x6445dc]
push dword [esi + 0x24]
call ecx
add esp, 4
mov eax, dword [esi + 0x28]
mov edx, eax
cmp eax, ebx
jne 0x516ee4
mov eax, dword [esi + 0x60]
mov dword [esi + 0x64], ebx
push eax
call fcn.0057dc2b
add esp, 4
jmp 0x516647
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x5168f3
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
je 0x517051
mov dword [esi + 0x14], 0
jmp 0x515da7
mov eax, dword [edi + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
jne 0x5169fe
lea eax, [edi + 0x2c]
mov dword [esi + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x51755f
mov ecx, dword [edi + 0x30]
call fcn.00558ee0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x5169fe
push edx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edx, dword [esi + 0xc]
jmp 0x516789
mov ebx, dword [ebx + 4]
mov eax, dword [ebx]
mov edi, dword [eax + 0x2c]
mov ecx, edi
call dword [0x6445dc]
lea eax, [esi + 0x54]
lea edx, [esi + 0xe0]
mov ecx, ebx
push eax
push edx
mov ebx, edx
call edi
mov al, byte [ebx + 0x58]
jmp 0x5160e8
mov edi, dword [esi + 0x10]
lea eax, [edi + 0x2c]
mov dword [esi + 0xc], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x51754e
mov ecx, dword [edi + 0x30]
call fcn.00558ee0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x516730
mov edx, dword [ebx + 0x60]
mov eax, edi
cmp edx, edi
je 0x517040
mov ecx, edx
mov eax, edx
add eax, 0xfffffff4
mov dword [esi + 0xc], eax
je 0x51755c
mov eax, ecx
mov ecx, dword [ecx - 4]
test ecx, ecx
je 0x517034
add eax, 0xfffffff8
mov dword [esi + 0x14], eax
call dword [0x6445dc]
push dword [esi + 0x14]
call ecx
add esp, 4
mov eax, dword [esi + 0xc]
mov ecx, eax
cmp eax, edi
jne 0x51700b
mov eax, dword [ebx + 0x5c]
mov dword [ebx + 0x60], edi
push eax
call fcn.0057dc2b
add esp, 4
jmp 0x516a23
mov eax, dword [esi + 0x10]
lea edi, [eax + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5175a0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x30]
call fcn.00558ee0
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x516f4c
int3
lock dec dword [ecx + 4]
jne 0x5168a3
push 1
call fcn.0053b7e0
jmp 0x5168a3
int3
int3
int3
int3
push eax
call fcn.00507280
add esp, 4
jmp 0x516891
test cl, cl
lea ebx, [ebp + 8]
je 0x51617e
lea eax, [esi + 0xe0]
lea ecx, [esi + 0x140]
push eax
call fcn.0057d480
jmp 0x516167
mov edi, dword [esi + 0x190]
test edi, edi
jne 0x5170e8
mov byte [esi + 0x198], 0
jmp 0x516167
lock dec dword [edi]
jne 0x5170dc
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
jmp 0x5170dc
int3
int3
int3
int3
mov dword [esi + 0x30], edx
lea eax, [esi + 0xe0]
push eax
call fcn.0050b660
mov eax, dword [ebx + 0x30]
cmp dword [ebx + 0x2c], eax
jb 0x51756d
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
imul eax, eax, 0x58
mov edx, dword [esi + 0xe0]
cmp edx, dword [ecx + eax + 0x10]
mov edx, dword [esi + 0xe4]
sbb edx, dword [ecx + eax + 0x14]
jl 0x517156
lea eax, [esi + 0x80]
mov ecx, ebx
push eax
call fcn.00503c70
jmp 0x51604e
lea eax, [esi + 0x80]
mov ecx, dword [esi + 0x30]
jmp 0x517169
lea eax, [esi + 0x80]
mov ecx, edx
push 0
push eax
call fcn.005f43d0
jmp 0x51604e
cmp dword [ecx], 0
je 0x51658c
int3
push eax
call fcn.00539890
add esp, 4
jmp 0x516638
push eax
call fcn.00506f30
add esp, 4
jmp 0x516620
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x516829
int3
int3
push edi
call fcn.00506e00
mov edx, dword [esi + 0xc]
add esp, 4
jmp 0x516576
int3
lea edi, [esi + 0xe0]
push edi
call fcn.0050b660
movsd xmm0, qword [edi]
movlps qword [ebx + 0x48], xmm0
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebx + 0x40]
je 0x517570
lea edi, [esi + 0x70]
push edi
call fcn.0057d560
movq xmm0, qword [edi]
movq qword [ebx + 0x50], xmm0
mov edx, dword [esi + 0x18]
jmp 0x516069
call fcn.005ab050
jmp 0x516f4c
int3
int3
cmp dword [ecx], 0
je 0x51658c
int3
push eax
call fcn.00506f30
add esp, 4
jmp 0x516cb0
push eax
call fcn.00539890
add esp, 4
jmp 0x516cce
push eax
call fcn.00506f30
add esp, 4
jmp 0x516cee
mov ebx, ecx
mov ecx, dword [ecx + 8]
call dword [0x6445dc]
push ebx
call ecx
add esp, 4
jmp 0x51696c
push ebx
call fcn.00506e00
mov edx, dword [esi + 0xc]
add esp, 4
jmp 0x5164cf
push ebx
call fcn.00506e00
add esp, 4
mov eax, dword [esi + 0xe0]
mov dword [esi + 0xe4], ebx
test eax, eax
jne 0x51646a
xor eax, eax
mov edx, dword [esi + 0xc]
jmp 0x516481
lea eax, [esi + 0x60]
push eax
call fcn.0050b660
mov eax, dword [ebx + 0x30]
cmp dword [ebx + 0x2c], eax
jb 0x517573
mov ecx, dword [ebx + 0x28]
imul edx, eax, 0x58
mov eax, dword [ecx + edx + 0x10]
mov ecx, dword [ecx + edx + 0x14]
mov edi, dword [esi + 0x60]
mov dword [esi + 0xc], edi
mov edx, dword [esi + 0x64]
cmp edi, eax
mov edi, edx
sbb edi, ecx
cmovl eax, dword [esi + 0xc]
cmovl ecx, edx
movd xmm0, ecx
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [ebx + 0x48], xmm1
mov edx, dword [esi + 0x18]
jmp 0x516bab
mov eax, edi
mov dword [esi + 0xc], edi
cmp dword [esi + 0x1c], edi
jb 0x517576
mov eax, dword [esi + 0x14]
mov eax, dword [eax + edi*4]
mov dword [esi + 0x18], eax
test eax, eax
je 0x517579
mov eax, dword [esi + 0x14]
mov dword [eax + edi*4], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
call dword [0x6445dc]
push dword [esi + 0x18]
call ecx
add esp, 4
mov eax, dword [esi + 0x18]
lock dec dword [eax]
jne 0x51733f
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 8]
call dword [0x6445dc]
push dword [esi + 0x18]
call ecx
add esp, 4
inc edi
cmp edi, dword [esi + 0x1c]
mov eax, 0
cmove edi, eax
cmp edi, dword [esi + 0x10]
jne 0x5172eb
mov eax, dword [esi + 0xc]
cmp dword [esi + 0x10], eax
jbe 0x5175ac
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x10]
jb 0x51757c
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
jg 0x51757f
mov eax, dword [esi + 0x10]
shl eax, 2
mov ecx, dword [esi + 0xc]
shl ecx, 2
mov dword [esi + 0x10], eax
jmp 0x5173a5
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
mov ecx, dword [esi + 0xc]
add ecx, 4
mov eax, dword [esi + 0x10]
cmp eax, ecx
je 0x516b1f
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 0x14]
mov edi, dword [eax + ecx]
test edi, edi
je 0x517394
lock dec dword [edi]
je 0x517385
jmp 0x517394
mov dword [esi + 0x10], eax
mov ecx, dword [eax + 8]
call dword [0x6445dc]
push dword [esi + 0x10]
call ecx
add esp, 4
add edi, 0x58
cmp dword [esi + 0x14], edi
je 0x516a4f
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi + 0x50]
test ecx, ecx
je 0x5173cd
mov eax, ecx
lock dec dword [ecx]
je 0x5173b9
jmp 0x5173cd
mov ecx, dword [ebx + 0x2c]
jbe 0x517413
cmp ecx, edi
jb 0x517585
cmp eax, edi
jg 0x517588
mov ecx, dword [ebx + 0x28]
mov dword [esi + 0xc], ecx
imul ecx, edi, 0x58
mov dword [esi + 0x14], ecx
imul edi, eax, 0x58
jmp 0x5173d9
cmp ecx, eax
jb 0x51758b
jl 0x51758e
je 0x517475
mov edx, dword [ebx + 0x28]
mov dword [esi + 0x14], edx
imul ecx, ecx, 0x58
mov dword [esi + 0x10], ecx
imul eax, eax, 0x58
mov dword [esi + 0xc], eax
jmp 0x51745b
mov dword [esi + 0x1c], eax
mov ecx, dword [eax + 8]
call dword [0x6445dc]
push dword [esi + 0x1c]
call ecx
add esp, 4
mov ecx, dword [esi + 0xc]
add ecx, 0x58
mov eax, ecx
mov dword [esi + 0xc], ecx
cmp dword [esi + 0x10], ecx
je 0x517472
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
mov ecx, dword [eax + ecx + 0x50]
test ecx, ecx
je 0x51744b
mov eax, ecx
lock dec dword [ecx]
je 0x517437
jmp 0x51744b
mov eax, dword [ebx + 0x2c]
cmp eax, edi
jb 0x517591
test edi, edi
js 0x517594
je 0x516a4f
mov eax, dword [ebx + 0x28]
mov dword [esi + 0xc], eax
imul eax, edi, 0x58
mov dword [esi + 0x14], eax
xor edi, edi
jmp 0x5174bb
mov dword [esi + 0x10], eax
mov ecx, dword [eax + 8]
call dword [0x6445dc]
push dword [esi + 0x10]
call ecx
add esp, 4
add edi, 0x58
cmp dword [esi + 0x14], edi
je 0x516a4f
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + edi + 0x50]
test ecx, ecx
je 0x5174af
mov eax, ecx
lock dec dword [ecx]
je 0x51749b
jmp 0x5174af
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x516ac8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x516aeb
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0xc]
mov eax, ecx
add ecx, 0xffffffa8
mov dword [esi + 0xc], ecx
je 0x517582
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x517518
cmp dword [esi + 0xc], edi
jne 0x5174f1
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
jmp 0x516a36
mov eax, ecx
lock dec dword [ecx]
jne 0x517509
mov dword [esi + 0x10], eax
mov ecx, dword [eax + 8]
call dword [0x6445dc]
push dword [esi + 0x10]
call ecx
add esp, 4
jmp 0x517509
int3
mov edi, ecx
call fcn.005f4540
push dword [edi]
call fcn.0057dc2b
add esp, 4
jmp 0x516a41
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x516fe8
int3
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x516f82
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x517066
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0xc]
jb 0x517597
jl 0x51759a
je 0x5175f1
shl dword [esi + 0x1c], 2
shl dword [esi + 0xc], 2
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
mov edi, dword [eax + ecx]
test edi, edi
je 0x5175e1
lock dec dword [edi]
jne 0x5175e1
mov ecx, dword [edi + 8]
call dword [0x6445dc]
push edi
call ecx
add esp, 4
mov ecx, dword [esi + 0xc]
add ecx, 4
mov eax, ecx
mov dword [esi + 0xc], ecx
cmp dword [esi + 0x1c], ecx
jne 0x5175c0
cmp dword [esi + 0x10], 0
js 0x51759d
mov eax, dword [esi + 0x10]
je 0x516b1f
shl eax, 2
xor edi, edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + edi]
test ecx, ecx
je 0x51762d
mov eax, ecx
lock dec dword [ecx]
jne 0x51762d
mov dword [esi + 0xc], eax
mov ecx, dword [eax + 8]
call dword [0x6445dc]
push dword [esi + 0xc]
call ecx
add esp, 4
add edi, 4
mov eax, dword [esi + 0x10]
cmp eax, edi
jne 0x517605
jmp 0x516b1f