Function at 0x5087f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x38], eax
test ebx, ebx
je 0x508980
mov eax, ebx
and eax, 0xffe00000
mov esi, dword [eax + 0x1000]
prefetcht0 byte [ebx]
mov ecx, ebx
shr ecx, 9
mov edx, ecx
and edx, 0xfe0
lea edi, [eax + edx]
add edi, 0x1000
movzx edx, byte [eax + edx + 0x101e]
and edx, 0x3f
shl edx, 5
sub edi, edx
mov edx, esi
prefetcht0 byte [edi]
cmp byte [esi + 4], 0
mov dword [esp], edi
je 0x5088ae
test ebx, 0xfff
je 0x508993
cmp byte [0x64a7fc], 0
je 0x508dfe
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
lea esi, [ebx + eax]
add esi, 0xfffffffc
mov eax, dword [esi]
and eax, 0x3fffffff
cmp eax, 1
jne 0x508d3b
mov eax, dword [esi]
nop dword [eax]
mov ecx, eax
and ecx, 0xfffffffe
lock cmpxchg dword [esi], ecx
jne 0x508890
test al, 1
je 0x508e13
test eax, 0x3ffffffe
jne 0x508d83
cmp byte [edx + 3], 0
je 0x5089d8
mov eax, dword [0x64783c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x90], 0
je 0x508e05
mov eax, dword [0x64783c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax + 0xc8]
cmp esi, 2
jb 0x5089d8
mov eax, edi
mov edi, ebx
mov ebx, dword [eax + 8]
lea eax, [edx + 0x48]
lea ecx, [edx + 0x1148]
cmp ecx, ebx
setae cl
cmp eax, ebx
ja 0x508df7
test cl, cl
je 0x5089af
sub ebx, eax
sar ebx, 5
add dword [esi + 0x30], 1
adc dword [esi + 0x34], 0
movzx eax, word [0x646148]
cmp ebx, eax
ja 0x5089a7
mov eax, dword [esi + ebx*8 + 0x78]
bswap eax
mov dword [edi], eax
mov dword [esi + ebx*8 + 0x78], edi
inc byte [esi + ebx*8 + 0x7c]
movzx eax, word [esi + ebx*8 + 0x7e]
add dword [esi], eax
add dword [esi + 0x38], 1
adc dword [esi + 0x3c], 0
movzx eax, byte [esi + ebx*8 + 0x7d]
cmp byte [esi + ebx*8 + 0x7c], al
ja 0x508a64
movzx eax, byte [esi + 4]
test al, 1
jne 0x508dc4
movzx eax, word [esi + ebx*8 + 0x7e]
sub eax, dword [edx + 0x10]
add dword [esi + 0x68], 1
adc dword [esi + 0x6c], 0
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.00568175
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
and ecx, 0xff8
lea esi, [ecx + eax]
add esi, 0x2000
jmp 0x50887b
add dword [esi + 0x40], 1
adc dword [esi + 0x44], 0
mov eax, dword [esp]
test byte [eax + 0xf], 8
jne 0x508db0
mov eax, dword [eax + 8]
add eax, 0xc
mov ebx, edi
mov eax, dword [eax]
sub eax, dword [edx + 0x10]
add dword [esi + 0x68], 1
adc dword [esi + 0x6c], 0
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
mov dword [ebx], 0
lea esi, [edx + 0x40]
push esi
mov edi, ebx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x508db8
mov edx, dword [esp]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
sub dword [ebx + 0x117c], eax
mov eax, dword [edx]
cmp eax, edi
je 0x508e2e
bswap eax
mov dword [edi], eax
mov dword [edx], edi
mov eax, dword [edx + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [edx + 0xc], ecx
test eax, 0x3ffe
je 0x508e31
mov ecx, edx
lea edi, [eax + 0x3ffe]
and edi, 0x3ffe
mov edx, eax
and edx, 0xefffc001
or edx, edi
mov dword [ecx + 0xc], edx
test al, 1
jne 0x508a5b
test edi, edi
je 0x508a5b
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x508980
push 1
call fcn.00508f60
jmp 0x508a4f
mov dword [esp + 8], edx
movzx edi, al
mov dword [esp], edi
shr edi, 1
mov ecx, dword [esi + ebx*8 + 0x78]
movzx eax, word [esi + ebx*8 + 0x7e]
push eax
call fcn.00508ee0
movzx eax, byte [esi + ebx*8 + 0x7c]
cmp byte [esp], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
jbe 0x508c33
mov ecx, dword [esi + ebx*8 + 0x78]
movzx eax, word [esi + ebx*8 + 0x7e]
mov dword [esp + 0xc], eax
mov edx, edi
cmp dl, 1
je 0x508acd
lea eax, [edx - 1]
mov edi, ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x508e1b
bswap ecx
test ecx, 0x1fc000
je 0x508e5e
prefetcht0 byte [ecx]
dec eax
jne 0x508aad
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x10], ecx
je 0x508df0
bswap eax
test eax, 0x1fc000
je 0x508e34
mov edi, eax
prefetcht0 byte [eax]
mov eax, dword [esi + 0x2f8]
add eax, 0x40
mov dword [esp + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x508dd4
test edi, edi
je 0x508c00
mov edx, edi
jmp 0x508b2a
xor edi, edi
jmp 0x508b41
push 1
call fcn.00508f60
mov edx, edi
test edi, edi
je 0x508c00
mov edi, dword [edx]
test edi, edi
je 0x508b15
bswap edi
test edi, 0x1fc000
je 0x508e4a
prefetcht0 byte [edi]
mov eax, dword [esi + 0x2f8]
mov dword [esp + 0x14], eax
mov ecx, edx
and ecx, 0xffe00000
mov dword [esp], edx
mov edx, dword [esp]
shr edx, 9
and edx, 0x1fe0
or edx, ecx
mov ecx, edx
or ecx, 0x1000
or edx, 0x101e
movzx edx, byte [edx]
and edx, 0x3f
shl edx, 5
sub ecx, edx
mov edx, dword [ecx + 8]
mov edx, dword [edx + 0xc]
mov eax, dword [esp + 0x14]
sub dword [eax + 0x117c], edx
mov edx, dword [esp]
mov eax, dword [ecx]
cmp eax, edx
je 0x508e22
bswap eax
mov dword [edx], eax
mov dword [ecx], edx
mov eax, dword [ecx + 0xc]
mov edx, eax
and edx, 0xefffffff
mov dword [ecx + 0xc], edx
test eax, 0x3ffe
je 0x508e25
lea edx, [eax + 0x3ffe]
and edx, 0x3ffe
mov dword [esp], eax
mov eax, dword [esp]
and eax, 0xefffc001
or eax, edx
mov dword [ecx + 0xc], eax
test byte [esp], 1
jne 0x508b19
test edx, edx
jne 0x508b20
jmp 0x508b19
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov dword [esi + ebx*8 + 0x78], 0
jmp 0x508c14
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov ecx, dword [esp + 0x1c]
mov byte [esi + ebx*8 + 0x7c], cl
sub ecx, dword [esp + 0x18]
movzx eax, word [esi + ebx*8 + 0x7e]
imul eax, ecx
add dword [esi], eax
mov edx, dword [esp + 8]
jmp 0x50895d
movzx eax, word [esi + ebx*8 + 0x7e]
mov dword [esp + 0x10], eax
mov edi, dword [esi + ebx*8 + 0x78]
mov eax, dword [esi + 0x2f8]
add eax, 0x40
mov dword [esp + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x508de2
test edi, edi
je 0x508bec
mov edx, edi
jmp 0x508c79
xor edi, edi
jmp 0x508c90
push 1
call fcn.00508f60
mov edx, edi
test edi, edi
je 0x508bec
mov edi, dword [edx]
test edi, edi
je 0x508c64
bswap edi
test edi, 0x1fc000
je 0x508e8c
prefetcht0 byte [edi]
mov eax, dword [esi + 0x2f8]
mov dword [esp + 0x14], eax
mov ecx, edx
and ecx, 0xffe00000
mov dword [esp], edx
mov edx, dword [esp]
shr edx, 9
and edx, 0x1fe0
or edx, ecx
mov ecx, edx
or ecx, 0x1000
or edx, 0x101e
movzx edx, byte [edx]
and edx, 0x3f
shl edx, 5
sub ecx, edx
mov edx, dword [ecx + 8]
mov edx, dword [edx + 0xc]
mov eax, dword [esp + 0x14]
sub dword [eax + 0x117c], edx
mov edx, dword [esp]
mov eax, dword [ecx]
cmp eax, edx
je 0x508e28
bswap eax
mov dword [edx], eax
mov dword [ecx], edx
mov eax, dword [ecx + 0xc]
mov edx, eax
and edx, 0xefffffff
mov dword [ecx + 0xc], edx
test eax, 0x3ffe
je 0x508e2b
lea edx, [eax + 0x3ffe]
and edx, 0x3ffe
mov dword [esp], eax
mov eax, dword [esp]
and eax, 0xefffc001
or eax, edx
mov dword [ecx + 0xc], eax
test byte [esp], 1
jne 0x508c68
test edx, edx
jne 0x508c6f
jmp 0x508c68
test byte [edi + 0xf], 8
mov eax, edi
mov edi, ebx
jne 0x508eba
mov eax, dword [eax + 8]
add eax, 0xc
mov ebx, dword [eax]
mov dword [esp + 8], edx
sub ebx, dword [edx + 0x10]
mov ecx, dword [0x6567ac]
test ecx, ecx
jne 0x508ec2
push ebx
push 0xef
mov ebx, edi
push edi
call fcn.00569910
add esp, 0xc
mov edx, dword [esp + 8]
mov edi, dword [esp]
jmp 0x50888b
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
lock add dword [edx + 0x1198], eax
lock inc dword [edx + 0x119c]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
lock add dword [edx + 0x11a0], eax
lock inc dword [edx + 0x11a4]
jmp 0x508980
add eax, 0x20
jmp 0x5089c2
mov ecx, esi
call fcn.0051aca0
jmp 0x5089f4
mov ecx, esi
mov edi, edx
call fcn.00509580
mov edx, edi
jmp 0x508969
mov ecx, dword [esp + 4]
call fcn.0051aca0
jmp 0x508b09
mov ecx, dword [esp + 4]
call fcn.0051aca0
jmp 0x508c5c
xor edi, edi
jmp 0x508aed
xor ecx, ecx
jmp 0x50890f
xor eax, eax
jmp 0x508875
mov esi, edx
call fcn.00567cb4
mov edx, esi
jmp 0x5088d4
mov ecx, esi
push eax
call fcn.00595360
xor ecx, ecx
jmp 0x508aca
int3
int3
int3
int3
int3
int3
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi], xmm0
mov eax, ecx
mov ecx, esi
push 0
push dword [eax]
jmp 0x508e70
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi], xmm0
mov ecx, esi
push 0
push dword [edx]
jmp 0x508e70
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi], xmm0
mov ecx, esi
push 0
push dword [edi]
push str.first
call fcn.005952f0
push esi
call fcn.00405c30
add esp, 4
push dword [esp + 0xc]
call fcn.005d3e90
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x20]
movdqa xmmword [esi], xmm0
mov ecx, esi
push 0
push dword [edx]
push str.first
call fcn.005952f0
push esi
call fcn.00405c30
add esp, 4
push dword [esp + 0x10]
call fcn.005d3e90
add eax, 0x20
jmp 0x508d4f
call dword [0x63e63c]
push ebx
mov ebx, edi
push edi
call ecx
add esp, 8
jmp 0x508d77