Function at 0x5040f0
Capabilities:
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 edx, [ebp + 8]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esi + 0x1a8], eax
mov eax, dword [edx]
mov dword [esi + 0x2c], eax
mov eax, dword [edx + 4]
movzx eax, byte [eax + 9]
and eax, 0x7f
mov bl, 1
mov dword [esi + 0x10], ebx
cmp eax, 1
mov dword [esi + 0x14], ecx
jne 0x50422a
mov eax, dword [ecx + 8]
mov ebx, 2
lock xadd dword [eax], ebx
test bl, 1
jne 0x504ebf
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
xor eax, eax
mov byte [esi + 0x140], al
mov byte [esi + 0x198], al
mov dword [esi + 0x4c], 0x102
mov byte [esi + 0x50], al
mov edi, dword [edx + 4]
mov dword [esi + 0x54], edi
add edi, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x504e34
cmp byte [esi + 0x10], 0
je 0x504eec
lea edx, [ebp + 8]
mov ebx, dword [edx + 4]
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
cmp edi, 0x55e970
je 0x5042c3
cmp edi, 0x562dd0
jne 0x50426d
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x50424d
movups xmm0, xmmword [ebx + 0x50]
movaps xmmword [esi + 0x80], xmm0
movups xmm0, xmmword [ebx + 0x60]
movdqu xmm1, xmmword [ebx + 0x70]
movaps xmmword [esi + 0x90], xmm0
movdqa xmmword [esi + 0xa0], xmm1
movups xmm0, xmmword [ebx + 0x80]
movaps xmmword [esi + 0xb0], xmm0
movdqu xmm0, xmmword [ebx + 0x89]
movdqu xmmword [esi + 0xb9], xmm0
mov dword [esi + 0xd0], eax
jmp 0x5043ec
cmp eax, 2
je 0x504146
test eax, eax
jne 0x505136
mov eax, dword [ecx + 8]
mov eax, dword [eax]
test al, 1
sete al
mov dword [esi + 0x10], eax
jmp 0x504146
xor ecx, ecx
inc ecx
lock xadd dword [eax], ecx
test ecx, ecx
jle 0x505104
cmp ecx, 0x7fffffff
jne 0x5041de
jmp 0x505101
mov ecx, edi
call dword [0x63e19c]
lea eax, [esi + 0x54]
lea edx, [esi + 0x80]
mov ecx, ebx
push eax
push edx
call edi
lea edx, [ebp + 8]
jmp 0x5043ec
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebx + 0x40]
lea edx, [ebp + 8]
jne 0x505192
cmp dword [ebx + 0x2c], eax
jb 0x5050aa
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 0x5043ec
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 edi, [ebx + 0x38]
cmp eax, dword [ebx + 0x34]
je 0x505095
lea ecx, [ebx + 0x28]
mov dword [esi + 0xc], ecx
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebx + 0x40]
jne 0x50504c
cmp dword [ebx + 0x2c], eax
jb 0x504fd1
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 0x504fd4
cmp ecx, eax
jb 0x504fd7
cmp eax, 0x7fffffff
je 0x504fda
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx]
imul eax, eax, 0x58
mov edi, dword [ecx + eax + 0x50]
test edi, edi
jne 0x504d88
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 0x504dc4
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jne 0x50428c
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebx + 0x40]
lea edx, [ebp + 8]
jne 0x5050b3
movaps xmm0, xmmword [esi + 0x80]
movdqa xmm1, xmmword [esi + 0x90]
movaps xmmword [esi + 0xe0], xmm0
movdqa 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
mov cl, byte [esi + 0x198]
cmp cl, al
je 0x504fe0
test cl, cl
mov ebx, dword [esi + 0x14]
jne 0x50500e
movaps xmm0, xmmword [esi + 0xe0]
movdqa xmm1, xmmword [esi + 0xf0]
movaps xmmword [esi + 0x140], xmm0
movdqa 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], 1
jne 0x5044ec
mov edi, dword [esi + 0x130]
test edi, edi
jne 0x5045fe
cmp byte [esi + 0x10], 0
je 0x504500
mov edi, dword [esi + 0xd0]
test edi, edi
jne 0x50461e
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 8]
mov dword [esi + 0x4c], ecx
mov cl, byte [eax + 0xc]
mov byte [esi + 0x50], cl
test eax, eax
je 0x504520
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea edx, [ebp + 8]
cmp byte [esi + 0x198], 1
jne 0x504a4a
mov eax, dword [esi + 0x158]
or eax, dword [esi + 0x15c]
jne 0x504e05
mov dword [esi + 0x44], esp
push eax
sub esp, 0x5c
mov ecx, esp
cmp byte [esi + 0x198], 0
je 0x504fb3
mov edi, dword [edx + 4]
movaps xmm0, xmmword [esi + 0x140]
movups xmmword [ecx], xmm0
movaps xmm0, xmmword [esi + 0x150]
movdqa xmm1, xmmword [esi + 0x160]
movups xmmword [ecx + 0x10], xmm0
movdqu xmmword [ecx + 0x20], xmm1
movaps xmm0, xmmword [esi + 0x170]
movups xmmword [ecx + 0x30], xmm0
movdqu xmm0, xmmword [esi + 0x179]
movdqu xmmword [ecx + 0x39], xmm0
mov eax, dword [esi + 0x190]
mov dword [ecx + 0x50], eax
mov dword [esi + 0x190], 0
mov dword [ecx + 0x58], edi
lea eax, [esi + 0x4c]
mov dword [esi + 0xc], ecx
mov dword [ecx + 0x5c], eax
mov ecx, dword [ebx]
mov ebx, dword [ecx + 4]
cmp ebx, 0x55e410
jne 0x50487b
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x70], xmm0
mov ecx, dword [edi]
mov ebx, dword [ecx]
cmp ebx, 0x562980
je 0x504671
cmp ebx, 0x562c40
jne 0x50463e
xor ecx, ecx
inc ecx
lock xadd dword [0x657ce8], ecx
mov dword [esi + 0x70], ecx
xor ecx, ecx
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], ecx
jmp 0x504694
lock dec dword [edi]
jne 0x5044ec
mov ecx, dword [edi + 8]
call dword [0x63e19c]
push edi
call ecx
lea edx, [ebp + 8]
add esp, 4
jmp 0x5044ec
lock dec dword [edi]
jne 0x504500
mov ecx, dword [edi + 8]
call dword [0x63e19c]
push edi
call ecx
lea edx, [ebp + 8]
add esp, 4
jmp 0x504500
mov ecx, ebx
call dword [0x63e19c]
lea eax, [esi + 0x70]
mov ecx, edi
push eax
call ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x5c]
jmp 0x50469a
mov ecx, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
inc dword [ecx + 0x14c]
mov ecx, dword [esi + 0xc]
jmp 0x5046a8
xor edx, edx
cmp dword [edi + 0x1c], 2
mov ecx, dword [edi + 0x24]
mov ebx, 0
cmove ebx, ecx
cmove ecx, edx
mov edx, dword [edi + 0x20]
mov dword [esi + 0x70], edx
add edi, 0x5c
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x18], eax
mov dl, byte [eax + 1]
mov byte [esi + 0x23], dl
test dl, 0x7f
je 0x504656
mov eax, dword [ecx + 0x58]
mov dword [esi + 0x1c], eax
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x28], eax
mov ecx, dword [0x64784c]
mov ebx, dword fs:[0x2c]
mov ecx, dword [ebx + ecx*4]
lea eax, [ecx + 0x154]
lea edx, [ecx + 0x150]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x24], ecx
mov ecx, dword [eax]
mov dword [esi + 0x40], ecx
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x504e40
mov dword [esi + 0x3c], ecx
mov ecx, dword [0x64784c]
mov edi, dword fs:[0x2c]
mov ecx, dword [edi + ecx*4]
mov bl, byte [ecx + 0x158]
mov byte [esi + 0x21], bl
mov bl, byte [ecx + 0x159]
mov byte [esi + 0x22], bl
xor edi, edi
inc edi
lock xadd dword [0x657cec], edi
cmp dword [esi + 0x28], 2
mov dword [eax], edi
sete byte [ecx + 0x158]
mov edi, dword [esi + 0x24]
mov dword [edx], edi
xor ebx, ebx
mov byte [ecx + 0x159], bl
mov edi, dword [esi + 0x18]
mov bl, byte [edi]
mov bh, byte [ecx + 0x144]
mov byte [esi + 0x20], bh
mov dword [esi + 0x38], ecx
mov byte [ecx + 0x144], bl
xor ecx, ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x60], xmm0
mov byte [esi + 0x60], cl
mov byte [esi + 0x6c], cl
mov ebx, dword [esi + 0x74]
test ebx, ebx
jne 0x50476e
lea ebx, [esi + 0x60]
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov byte [ebx + 0xc], 1
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], eax
mov edx, dword [0x64784c]
mov edi, dword fs:[0x2c]
mov ecx, dword [edi + edx*4]
mov eax, dword [ecx + 0x140]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ecx
mov dword [ecx + 0x140], ebx
xor edx, edx
dec edx
mov dword [esi + 0x54], edx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x58], edx
xor ebx, ebx
mov byte [esi + 0x54], bl
mov byte [esi + 0x5c], bl
movdqa xmmword [esi + 0xe0], xmm0
mov dword [esi + 0xf0], edx
mov byte [esi + 0xe0], bl
mov byte [esi + 0xf0], bl
mov edx, dword [esi + 0x7c]
test edx, edx
jne 0x50490c
mov edx, dword [esi + 0x78]
test edx, edx
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
je 0x504961
xor ecx, ecx
inc ecx
mov eax, ecx
lock xadd dword [edx + 4], eax
cmp eax, 0x7fffffff
je 0x5050ad
mov dword [esi + 0xe0], edx
mov eax, dword [0x64784c]
mov edi, dword fs:[0x2c]
mov edi, dword [edi + eax*4]
mov eax, dword [edi + 0x98]
mov dword [esi + 0xe4], eax
lock xadd dword [edx + 4], ecx
cmp ecx, 0x7fffffff
je 0x5050b0
lea eax, [esi + 0xf0]
mov ecx, dword [eax - 0xc]
mov dword [esi + 0x18], ecx
lea ebx, [esi + 0xe8]
mov dword [ebx], edx
mov edx, dword [0x64784c]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + edx*4]
mov edx, dword [ecx + 0x9c]
mov dword [ebx + 4], edx
mov dword [ecx + 0x9c], ebx
lea ecx, [edi + 0x98]
lea edx, [esi + 0xe0]
mov dword [ecx], edx
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x505127
mov ecx, dword [esi + 0x14]
jmp 0x504952
mov ecx, ebx
call dword [0x63e19c]
mov edi, dword [esi + 0x14]
mov ecx, edi
call ebx
mov ebx, edi
lea edx, [ebp + 8]
jmp 0x504a47
mov eax, dword [0x64784c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi + 0xe4]
mov edi, dword [esi + 0xe8]
mov dword [eax + 0x98], ecx
mov ecx, dword [esi + 0xec]
mov dword [eax + 0x9c], ecx
test edi, edi
je 0x5048cf
lock dec dword [edi + 4]
je 0x505143
mov edi, dword [esi + 0xe0]
test edi, edi
mov ecx, dword [esi + 0xc]
je 0x5049a6
lock dec dword [edi + 4]
jne 0x5049a6
jmp 0x50515e
cmp edx, 2
jne 0x504da5
lea edi, [esi + 0x70]
mov ebx, dword [esi + 0xc]
mov edx, ebx
push edi
push dword [esi + 0x1c]
push eax
call fcn.00505590
jmp 0x50497f
xor eax, eax
inc eax
lock xadd dword [edx + 4], eax
cmp eax, 0x7fffffff
mov ecx, dword [esi + 0x14]
je 0x504fdd
lea eax, [esi + 0x5c]
mov dword [eax - 8], edx
mov edi, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + edi*4]
mov ebx, dword [edx + 0x9c]
mov dword [eax - 4], ebx
lea edi, [esi + 0x54]
mov dword [edx + 0x9c], edi
test ebx, ebx
jne 0x505040
mov byte [eax], 1
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x58]
mov dword [esi + 0x1c], edx
mov eax, dword [eax + 0x5c]
movzx edx, byte [eax + 1]
and edx, 0x7f
cmp edx, 1
jne 0x5048ef
lea edi, [esi + 0x70]
mov ebx, dword [esi + 0xc]
mov edx, ebx
push edi
push dword [esi + 0x1c]
push eax
call fcn.005053b0
add esp, 0xc
mov edi, dword [ebx + 0x50]
mov dword [ebx + 0x50], 0
test edi, edi
mov ecx, ebx
jne 0x504e50
cmp byte [esi + 0xf0], 1
lea edx, [ebp + 8]
je 0x504894
mov eax, dword [esi + 0x30]
lea ebx, [eax + 0x140]
cmp byte [esi + 0x5c], 1
jne 0x5049e5
mov edi, dword [esi + 0x54]
mov eax, dword [esi + 0x58]
mov ecx, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
lea edx, [ebp + 8]
mov dword [ecx + 0x9c], eax
mov ecx, dword [esi + 0xc]
test edi, edi
je 0x5049e5
lock dec dword [edi + 4]
je 0x505107
mov eax, dword [esi + 0x34]
mov dword [ebx], eax
cmp byte [esi + 0x6c], 1
jne 0x5049fb
mov edi, dword [esi + 0x60]
test edi, edi
jne 0x504e70
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x40]
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x3c]
mov dword [eax], edi
mov edi, dword [esi + 0x38]
lea eax, [edi + 0x144]
mov bl, byte [esi + 0x20]
mov byte [eax], bl
lea eax, [edi + 0x158]
mov bl, byte [esi + 0x21]
mov byte [eax], bl
lea eax, [edi + 0x159]
mov bl, byte [esi + 0x22]
mov byte [eax], bl
test byte [esi + 0x23], 0x7f
mov ebx, dword [esi + 0x14]
je 0x504d5f
mov edi, dword [ecx + 0x50]
test edi, edi
jne 0x504b57
mov esp, dword [esi + 0x44]
cmp byte [esi + 0x10], 0
je 0x504a71
mov eax, dword [edx + 4]
mov al, byte [eax + 9]
and al, 0x7f
cmp al, 1
jne 0x504a71
mov eax, dword [ebx + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
je 0x504f29
mov edi, dword [edx + 4]
mov eax, dword [edi]
mov ebx, dword [eax + 0x24]
cmp ebx, 0x562840
je 0x504b8b
cmp ebx, 0x562e30
jne 0x504b77
lea ebx, [edi + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x504d7c
mov dword [esi + 0x10], ebx
mov ebx, 0xfffffffe
lock xadd dword [edi + 0x24], ebx
xor eax, eax
xchg dword [edi + 0x28], eax
test eax, eax
jne 0x504d46
test bl, 1
jne 0x504f1b
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x505005
xor eax, eax
inc eax
lock xadd dword [ecx], eax
test eax, eax
jle 0x505008
mov dword [esi + 0x14], ecx
cmp eax, 0x7fffffff
je 0x50500b
shr ebx, 1
movzx eax, bl
mov dword [esi + 0xc], eax
lea ebx, [eax - 1]
mov eax, dword [edi + 0x40]
mov ecx, dword [eax + 4]
call dword [0x63e19c]
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 0x5050eb
cmp edi, 0x20
mov ebx, 0x20
cmovb ebx, edi
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp ebx, dword [esi + 0xc]
jb 0x504be5
lea edx, [ebp + 8]
mov eax, dword [edx + 4]
mov edi, dword [esi + 0x2c]
mov dword [edi], eax
xor eax, eax
mov dword [edx + 4], eax
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [edi + 4], ecx
jmp 0x504bf2
lock dec dword [edi]
jne 0x504a47
mov ecx, dword [edi + 8]
call dword [0x63e19c]
push edi
call ecx
lea edx, [ebp + 8]
add esp, 4
jmp 0x504a47
mov ecx, ebx
call dword [0x63e19c]
mov ecx, edi
push 0
call ebx
test al, al
je 0x504be5
jmp 0x504b39
mov ebx, edi
add ebx, 0x10
je 0x504ba1
push ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x504ee0
mov byte [edi + 0x58], 0
mov eax, dword [edi + 0x30]
mov cl, 1
cmp eax, dword [edi + 0x34]
jne 0x504bce
mov eax, dword [edi + 0x3c]
cmp eax, dword [edi + 0x40]
jne 0x504bce
mov byte [edi + 0x59], 0
mov edi, dword [edi + 0x24]
test edi, edi
je 0x504bcc
lock dec dword [edi + 4]
je 0x504c8b
xor ecx, ecx
mov edi, ecx
test ebx, ebx
je 0x504bdb
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, edi
test al, al
jne 0x504b39
xor eax, eax
mov ecx, dword [esi + 0x2c]
mov dword [ecx], eax
mov dword [ecx + 4], eax
lea edx, [ebp + 8]
cmp byte [esi + 0x198], 1
jne 0x504c05
mov edi, dword [esi + 0x190]
test edi, edi
jne 0x504c3d
mov edi, dword [edx + 4]
test edi, edi
jne 0x504c56
mov dword [edx + 4], 0
test edi, edi
jne 0x504c77
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x504fb8
mov edi, dword [edx]
mov ecx, dword [esi + 0x1a8]
xor ecx, ebp
call fcn.00566245
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lock dec dword [edi]
jne 0x504c05
mov ecx, dword [edi + 8]
call dword [0x63e19c]
push edi
call ecx
lea edx, [ebp + 8]
add esp, 4
jmp 0x504c05
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x504c0c
mov dword [edx + 4], 0
mov al, byte [edi + 9]
and al, 0x7f
cmp al, 2
je 0x504d2c
lock dec dword [ebx + 0xc]
je 0x504ca5
lock dec dword [edi + 4]
jne 0x504c17
mov ecx, edi
push 1
call fcn.00507e50
lea edx, [ebp + 8]
jmp 0x504c17
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [esi + 0x10], ecx
call dword [0x63e19c]
mov ecx, edi
push 1
call dword [esi + 0x10]
jmp 0x504bcc
lea eax, [ebx + 0x14]
mov dword [esi + 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5052b5
lea eax, [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5052c3
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x18], eax
pxor xmm0, xmm0
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x30]
mov dword [esi + 0xc], ecx
movdqu xmmword [ebx + 0x24], xmm0
mov ebx, eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi + 0xc]
cmp ebx, eax
jne 0x5051e4
push 0
push dword [esi + 0x14]
push 0x635600
call fcn.0050f990
add esp, 0xc
lea edx, [ebp + 8]
jmp 0x504c13
mov eax, dword [ebx + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax], ecx
cmp ecx, 3
jne 0x504c71
jmp 0x504f52
cmp byte [edi + 0x38], 0
je 0x505183
lea eax, [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WakeConditionVariable]
jmp 0x504abd
mov eax, dword [0x64784c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esi + 0xc]
dec dword [eax + 0x14c]
jmp 0x504a3c
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x504aa3
lock dec dword [edi]
jne 0x5043b7
mov ecx, dword [edi + 8]
call dword [0x63e19c]
push edi
call ecx
add esp, 4
jmp 0x5043b7
test edx, edx
mov ebx, dword [esi + 0xc]
jne 0x504982
lea edi, [esi + 0x70]
mov edx, ebx
push edi
push dword [esi + 0x1c]
push eax
call fcn.00403c70
jmp 0x50497f
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 0x5043d1
mov edi, ecx
shr edi, 2
add edi, ecx
cmp edi, 4
mov edx, 3
cmovae edx, edi
cmp edx, eax
jae 0x5043d1
mov ecx, dword [esi + 0xc]
push edx
call fcn.00530410
jmp 0x5043d1
mov eax, dword [ebx + 8]
mov eax, dword [eax]
test al, 1
je 0x50453f
lea ecx, [esi + 0x190]
mov eax, dword [ecx]
mov dword [ecx], 0
mov dword [esi + 0x48], eax
push eax
call fcn.005d01b0
lea edx, [ebp + 8]
add esp, 4
jmp 0x50453f
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x5041aa
xor ecx, ecx
inc ecx
lock xadd dword [0x657ce8], ecx
jmp 0x5046e6
lock dec dword [edi]
jne 0x504996
mov ecx, dword [edi + 8]
call dword [0x63e19c]
push edi
call ecx
mov ecx, dword [esi + 0xc]
add esp, 4
jmp 0x504996
mov edx, dword [esi + 0x64]
mov eax, edi
cmp edx, edi
je 0x504ea8
mov ebx, edx
add ebx, 0xfffffff4
je 0x50517c
mov ecx, dword [edx - 4]
test ecx, ecx
je 0x504e9f
add edx, 0xfffffff8
mov dword [esi + 0x18], edx
call dword [0x63e19c]
push dword [esi + 0x18]
call ecx
add esp, 4
mov edx, ebx
cmp ebx, edi
jne 0x504e7b
mov eax, dword [esi + 0x60]
mov dword [esi + 0x64], edi
push eax
call fcn.00562f60
add esp, 4
lea edx, [ebp + 8]
mov ecx, dword [esi + 0xc]
jmp 0x5049fb
mov eax, dword [ecx + 8]
mov edi, 0xfffffffe
lock xadd dword [eax], edi
cmp edi, 3
je 0x504f80
mov dword [esi + 0x10], 0
jmp 0x504146
push ebx
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x504ba1
lea eax, [ebp + 8]
mov ebx, dword [eax + 4]
mov eax, dword [ebx]
mov edi, dword [eax + 0x2c]
mov ecx, edi
call dword [0x63e19c]
lea eax, [esi + 0x54]
lea edx, [esi + 0xe0]
mov ecx, ebx
push eax
push edx
mov ebx, edx
call edi
lea edx, [ebp + 8]
mov al, byte [ebx + 0x58]
jmp 0x504455
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x504be5
lea edi, [ebx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5052db
mov ecx, dword [ebx + 0x38]
call fcn.00545810
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea edx, [ebp + 8]
jmp 0x504a71
lea eax, [ebx + 0x34]
mov dword [esi + 0x10], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5052e7
mov ecx, dword [ebx + 0x38]
call fcn.00545810
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea edx, [ebp + 8]
jmp 0x504c71
lea edi, [ecx + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x5052f5
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x38]
call fcn.00545810
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov dword [esi + 0x10], 0
lea edx, [ebp + 8]
jmp 0x504146
call fcn.00590170
lock dec dword [ecx + 4]
jne 0x504c22
push 1
call fcn.00507e50
lea edx, [ebp + 8]
jmp 0x504c22
int3
int3
int3
int3
int3
test cl, cl
mov ebx, dword [esi + 0x14]
je 0x5044d5
lea eax, [esi + 0xe0]
lea ecx, [esi + 0x140]
push eax
call fcn.005627c0
lea edx, [ebp + 8]
jmp 0x5044d5
int3
int3
int3
mov edi, dword [esi + 0x190]
test edi, edi
jne 0x50502a
mov byte [esi + 0x198], 0
lea edx, [ebp + 8]
mov ebx, dword [esi + 0x14]
jmp 0x5044d5
lock dec dword [edi]
jne 0x505018
mov ecx, dword [edi + 8]
call dword [0x63e19c]
push edi
call ecx
add esp, 4
jmp 0x505018
cmp dword [ebx], 0
je 0x504952
int3
lea eax, [esi + 0xe0]
push eax
call fcn.004fc1e0
mov eax, dword [ebx + 0x30]
cmp dword [ebx + 0x2c], eax
jb 0x505301
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 0x505095
lea eax, [esi + 0x80]
mov ecx, ebx
push eax
call fcn.005d0830
jmp 0x5043d1
lea eax, [esi + 0x80]
mov ecx, edi
push 0
push eax
call fcn.005d10d0
jmp 0x5043d1
int3
int3
int3
lea edi, [esi + 0xe0]
push edi
call fcn.004fc1e0
movq xmm0, qword [edi]
movq qword [ebx + 0x48], xmm0
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebx + 0x40]
je 0x5052d1
lea edi, [esi + 0x70]
push edi
call fcn.005629c0
movq xmm0, qword [edi]
movq qword [ebx + 0x50], xmm0
jmp 0x504284
mov ebx, ecx
mov ecx, dword [ecx + 8]
call dword [0x63e19c]
push ebx
call ecx
add esp, 4
jmp 0x504b1c
int3
int3
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [esi + 0x18], ecx
call dword [0x63e19c]
mov ecx, edi
push 1
call dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
lea edx, [ebp + 8]
jmp 0x5049e5
cmp dword [ecx], 0
mov ecx, dword [esi + 0x14]
je 0x504952
int3
call fcn.00592520
lea edx, [ebp + 8]
jmp 0x504ed4
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x63e19c]
mov ecx, edi
push 1
call ebx
lea edx, [ebp + 8]
jmp 0x5048cf
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x63e19c]
mov ecx, edi
push 1
call ebx
mov ecx, dword [esi + 0xc]
lea edx, [ebp + 8]
jmp 0x5049a6
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x505188
push str....._third_partylibc_srcincludeoptional:790:_assertion_this__has_value___failed:_optional_operator___called_on_a_disengaged_value_n
push 0x622e92
call fcn.00590170
lea eax, [esi + 0x60]
push eax
call fcn.004fc1e0
mov eax, dword [ebx + 0x30]
cmp dword [ebx + 0x2c], eax
jb 0x505304
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
lea edx, [ebp + 8]
jmp 0x5042b5
mov dword [esi + 0x10], ebx
cmp dword [esi + 0x18], ebx
jb 0x505307
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ebx*4]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x50530a
mov eax, dword [esi + 0x14]
mov dword [eax + ebx*4], 0
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 4]
call dword [0x63e19c]
push dword [esi + 0x1c]
call ecx
add esp, 4
mov eax, dword [esi + 0x1c]
lock dec dword [eax]
jne 0x50523b
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 8]
call dword [0x63e19c]
push dword [esi + 0x1c]
call ecx
add esp, 4
inc ebx
cmp ebx, dword [esi + 0x18]
mov eax, 0
cmove ebx, eax
cmp ebx, dword [esi + 0xc]
jne 0x5051e7
mov eax, dword [esi + 0x10]
cmp dword [esi + 0xc], eax
jbe 0x50531c
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0xc]
jb 0x50530d
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0xc]
jg 0x505310
mov eax, dword [esi + 0xc]
shl eax, 2
mov ecx, dword [esi + 0x10]
shl ecx, 2
mov dword [esi + 0xc], eax
jmp 0x5052a1
mov ecx, dword [ebx + 8]
call dword [0x63e19c]
push ebx
call ecx
add esp, 4
mov ecx, dword [esi + 0x10]
add ecx, 4
mov eax, dword [esi + 0xc]
cmp eax, ecx
je 0x504d12
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0x14]
mov ebx, dword [eax + ecx]
test ebx, ebx
je 0x505290
lock dec dword [ebx]
je 0x505281
jmp 0x505290
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x504cba
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x504cde
push str....._third_partylibc_srcinclude_vector:618:_assertion__empty___failed:_front___called_on_an_empty_vector_n
jmp 0x505188
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x504f3b
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x504f67
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x504f92
int3
int3
int3
int3
int3
int3
int3
int3
int3
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x10]
jb 0x505313
jl 0x505316
je 0x50535f
shl dword [esi + 0x18], 2
shl dword [esi + 0x10], 2
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov ebx, dword [eax + ecx]
test ebx, ebx
je 0x505351
lock dec dword [ebx]
jne 0x505351
mov ecx, dword [ebx + 8]
call dword [0x63e19c]
push ebx
call ecx
add esp, 4
mov ecx, dword [esi + 0x10]
add ecx, 4
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x18], ecx
jne 0x505330
cmp dword [esi + 0xc], 0
js 0x505319
mov eax, dword [esi + 0xc]
je 0x504d12
shl eax, 2
xor ebx, ebx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x50539b
mov eax, ecx
lock dec dword [ecx]
jne 0x50539b
mov dword [esi + 0x10], eax
mov ecx, dword [eax + 8]
call dword [0x63e19c]
push dword [esi + 0x10]
call ecx
add esp, 4
add ebx, 4
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x505373
jmp 0x504d12