Function at 0x538dd0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x2c], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x539334
mov eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x28], ecx
sub eax, dword [ecx]
sar eax, 3
cmp eax, dword [esi + 0x10]
seta byte [ebp - 0x20]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
cmp eax, 0x30
je 0x5391f8
cmp eax, 0x40
jb 0x538e80
mov edx, eax
and edx, 7
jne 0x538e80
mov esi, eax
add esi, 0x10
jb 0x538e80
mov edx, dword [ecx + 0xc]
cmp esi, edx
ja 0x538e80
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + eax + 4]
cmp esi, 0xc8799269
jne 0x538e80
add ecx, eax
mov esi, dword [ecx]
cmp esi, 0x10
jb 0x538e80
mov esi, dword [ecx]
add esi, eax
jb 0x538e80
cmp esi, edx
ja 0x538e80
test ecx, ecx
je 0x538e80
mov ebx, dword [ecx + 0xc]
cmp ebx, 0x30
jne 0x538f39
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x28]
mov edi, dword [edx]
mov esi, dword [edx + 4]
mov dword [ebp - 0x14], esi
sub esi, edi
sar esi, 3
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x10]
sub esi, ebx
jb 0x53932e
jne 0x538f0a
lea edi, [edi + ebx*8]
mov esi, dword [ebp - 0x14]
cmp edi, esi
je 0x538eea
lea edx, [ebp + 0x10]
mov bl, byte [edx + 4]
mov edx, dword [edx]
mov dword [ebp - 0x28], edx
cmp eax, dword [ecx + 8]
jae 0x539342
test eax, eax
je 0x53931f
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
mov dword [ecx + 4], eax
test bl, 1
je 0x538f01
mov edx, dword [ebp - 0x28]
cmp dword [edi + 4], edx
jne 0x538f01
push dword [ebp - 0x2c]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
add edi, 8
cmp edi, esi
je 0x538eea
jmp 0x538ec2
cmp esi, 0x40000000
jae 0x539350
lea eax, [esi*4]
push eax
call fcn.00562f65
add esp, 4
lea edx, [eax + esi*4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
jmp 0x538ead
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx + 4]
cmp ebx, 0x40
mov dword [ebp - 0x18], esi
jb 0x539306
mov ecx, ebx
and ecx, 7
jne 0x539306
mov edx, ebx
add edx, 0x10
jb 0x539306
mov ecx, esi
mov esi, dword [esi + 0xc]
cmp edx, esi
ja 0x539306
mov edx, dword [ecx + 4]
mov ecx, dword [edx + ebx + 4]
cmp ecx, 0xc8799269
jne 0x539306
add edx, ebx
mov ecx, dword [edx]
cmp ecx, 0x10
jb 0x539306
mov edi, dword [edx]
add edi, ebx
setb cl
test edx, edx
je 0x539306
test cl, cl
jne 0x539306
cmp edi, esi
mov ecx, dword [ebp - 0x14]
ja 0x539306
lock cmpxchg dword [ecx + 8], ebx
jne 0x538e28
mov esi, dword [edx + 8]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ecx + 0xc]
cmp ecx, eax
cmovb eax, ecx
mov ecx, dword [ebp - 0x14]
mov edx, 0xaaaaaaab
mul edx
shr edx, 4
cmp dword [ebp - 0x10], edx
ja 0x539306
lock inc dword [ecx + 0xc]
cmp esi, 0x8fe6a6a0
jne 0x538e1f
mov ecx, ebx
add ecx, 0x20
jb 0x538e80
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov edi, dword [edx + 0xc]
cmp ecx, edi
ja 0x538e80
mov ecx, dword [edx + 4]
mov edx, dword [ecx + ebx + 4]
cmp edx, 0xc8799269
jne 0x538e80
lea esi, [ecx + ebx]
mov edx, dword [esi]
cmp edx, 0x20
jb 0x538e80
add ebx, dword [esi]
jb 0x538e80
cmp ebx, edi
ja 0x538e80
mov edx, dword [esi + 8]
cmp edx, 0x8fe6a6a0
jne 0x538e80
test esi, esi
je 0x538e80
lea edx, [esi + 0x10]
cmp ecx, edx
ja 0x538e80
sub edx, ecx
cmp edx, 0x10
jb 0x538e80
cmp edx, edi
jae 0x538e80
lea eax, [edx - 0x10]
mov dword [ebp - 0x10], eax
cmp eax, 0x40
jb 0x538e80
and edx, 7
jne 0x538e80
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x10]
mov esi, dword [ecx + esi + 4]
cmp esi, 0xc8799269
jne 0x538e80
add ecx, dword [ebp - 0x10]
mov esi, dword [ecx]
cmp esi, 0x11
jb 0x538e80
mov esi, dword [ecx]
add esi, dword [ebp - 0x10]
jb 0x538e80
cmp esi, edi
ja 0x538e80
mov eax, dword [ecx + 8]
test ecx, ecx
je 0x538e80
cmp eax, 0x8fe6a6a0
jne 0x538e80
mov eax, edx
xor eax, dword [ebp - 0x34]
mov ecx, ebx
xor ecx, dword [ebp - 0x30]
or ecx, eax
jne 0x539203
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp ebx, eax
jae 0x539141
test ebx, ebx
je 0x53931f
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], eax
add ebx, 8
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], ebx
mov cl, 1
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0xa
setae al
mov byte [ebp - 0x20], cl
and al, cl
cmp al, 1
jne 0x538e1c
jmp 0x538e80
mov ecx, dword [edi]
sub ebx, ecx
sar ebx, 3
lea edx, [ebx + 1]
cmp edx, 0x20000000
jae 0x539315
sub eax, ecx
mov ecx, eax
sar ecx, 2
cmp ecx, edx
cmovbe ecx, edx
cmp eax, 0x7ffffff8
mov eax, 0x1fffffff
cmovae ecx, eax
test ecx, ecx
mov dword [ebp - 0x24], ecx
je 0x539355
cmp ecx, 0x20000000
jae 0x53931a
lea eax, [ecx*8]
push eax
call fcn.00562f65
add esp, 4
shl ebx, 3
mov dword [ebp - 0x20], eax
add ebx, eax
je 0x53931f
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, ecx
sub edx, eax
mov esi, ebx
sub esi, edx
sub ecx, eax
je 0x5391ce
push ecx
push eax
push esi
call fcn.00567460
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
lea ecx, [ecx + edx*8]
mov dword [edi], esi
add ebx, 8
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
test eax, eax
je 0x53911d
push eax
call fcn.00562f60
add esp, 4
jmp 0x53911d
mov ecx, dword [ecx + 4]
add ecx, 0x30
jmp 0x538e70
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.0041e320
add esp, 4
test eax, eax
je 0x539331
mov ebx, eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp edx, eax
jb 0x5392f2
mov ecx, dword [ebx]
sub edx, ecx
sar edx, 3
mov dword [ebp - 0x24], edx
inc edx
cmp edx, 0x20000000
jae 0x539315
sub eax, ecx
mov ecx, eax
sar ecx, 2
cmp ecx, edx
cmovbe ecx, edx
cmp eax, 0x7ffffff8
mov esi, 0x1fffffff
cmovb esi, ecx
test esi, esi
je 0x53935c
cmp esi, 0x20000000
jae 0x53931a
lea eax, [esi*8]
push eax
call fcn.00562f65
add esp, 4
mov edi, eax
mov edx, dword [ebp - 0x24]
shl edx, 3
add edx, edi
je 0x53931f
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
mov eax, dword [ebx]
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebx + 4]
mov ebx, edx
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x24], ebx
sub ebx, edx
sub ecx, eax
je 0x5392bd
push ecx
push eax
push ebx
call fcn.00567460
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [edi + esi*8]
mov edx, dword [ebp - 0x10]
mov dword [edx], ebx
mov ebx, edx
mov edx, dword [ebp - 0x24]
add edx, 8
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
test eax, eax
je 0x5392e4
push eax
mov esi, edx
call fcn.00562f60
mov edx, esi
add esp, 4
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x20]
mov dword [ebx + 4], edx
jmp 0x539125
test edx, edx
je 0x53931f
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
add edx, 8
jmp 0x5392e4
mov ecx, dword [ebp - 0x18]
push 1
call fcn.005908a0
jmp 0x538e80
call fcn.00594300
call fcn.00593a20
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x622e92
call fcn.00590170
int3
int3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x538df4
push edi
call fcn.00555e90
mov ecx, dword [ebp + 8]
jmp 0x538eda
call fcn.00594300
xor eax, eax
jmp 0x539197
xor edi, edi
jmp 0x53927d