Function at 0x537730
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 0x537c94
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 0x537b58
cmp eax, 0x40
jb 0x5377e0
mov edx, eax
and edx, 7
jne 0x5377e0
mov esi, eax
add esi, 0x10
jb 0x5377e0
mov edx, dword [ecx + 0xc]
cmp esi, edx
ja 0x5377e0
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + eax + 4]
cmp esi, 0xc8799269
jne 0x5377e0
add ecx, eax
mov esi, dword [ecx]
cmp esi, 0x10
jb 0x5377e0
mov esi, dword [ecx]
add esi, eax
jb 0x5377e0
cmp esi, edx
ja 0x5377e0
test ecx, ecx
je 0x5377e0
mov ebx, dword [ecx + 0xc]
cmp ebx, 0x30
jne 0x537899
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 0x537c8e
jne 0x53786a
lea edi, [edi + ebx*8]
mov esi, dword [ebp - 0x14]
cmp edi, esi
je 0x53784a
lea edx, [ebp + 0x10]
mov bl, byte [edx + 4]
mov edx, dword [edx]
mov dword [ebp - 0x28], edx
cmp eax, dword [ecx + 8]
jae 0x537ca2
test eax, eax
je 0x537c7f
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
mov dword [ecx + 4], eax
test bl, 1
je 0x537861
mov edx, dword [ebp - 0x28]
cmp dword [edi + 4], edx
jne 0x537861
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 0x53784a
jmp 0x537822
cmp esi, 0x40000000
jae 0x537cb0
lea eax, [esi*4]
push eax
call fcn.00564055
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 0x53780d
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx + 4]
cmp ebx, 0x40
mov dword [ebp - 0x18], esi
jb 0x537c66
mov ecx, ebx
and ecx, 7
jne 0x537c66
mov edx, ebx
add edx, 0x10
jb 0x537c66
mov ecx, esi
mov esi, dword [esi + 0xc]
cmp edx, esi
ja 0x537c66
mov edx, dword [ecx + 4]
mov ecx, dword [edx + ebx + 4]
cmp ecx, 0xc8799269
jne 0x537c66
add edx, ebx
mov ecx, dword [edx]
cmp ecx, 0x10
jb 0x537c66
mov edi, dword [edx]
add edi, ebx
setb cl
test edx, edx
je 0x537c66
test cl, cl
jne 0x537c66
cmp edi, esi
mov ecx, dword [ebp - 0x14]
ja 0x537c66
lock cmpxchg dword [ecx + 8], ebx
jne 0x537788
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 0x537c66
lock inc dword [ecx + 0xc]
cmp esi, 0x8fe6a6a0
jne 0x53777f
mov ecx, ebx
add ecx, 0x20
jb 0x5377e0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov edi, dword [edx + 0xc]
cmp ecx, edi
ja 0x5377e0
mov ecx, dword [edx + 4]
mov edx, dword [ecx + ebx + 4]
cmp edx, 0xc8799269
jne 0x5377e0
lea esi, [ecx + ebx]
mov edx, dword [esi]
cmp edx, 0x20
jb 0x5377e0
add ebx, dword [esi]
jb 0x5377e0
cmp ebx, edi
ja 0x5377e0
mov edx, dword [esi + 8]
cmp edx, 0x8fe6a6a0
jne 0x5377e0
test esi, esi
je 0x5377e0
lea edx, [esi + 0x10]
cmp ecx, edx
ja 0x5377e0
sub edx, ecx
cmp edx, 0x10
jb 0x5377e0
cmp edx, edi
jae 0x5377e0
lea eax, [edx - 0x10]
mov dword [ebp - 0x10], eax
cmp eax, 0x40
jb 0x5377e0
and edx, 7
jne 0x5377e0
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 0x5377e0
add ecx, dword [ebp - 0x10]
mov esi, dword [ecx]
cmp esi, 0x11
jb 0x5377e0
mov esi, dword [ecx]
add esi, dword [ebp - 0x10]
jb 0x5377e0
cmp esi, edi
ja 0x5377e0
mov eax, dword [ecx + 8]
test ecx, ecx
je 0x5377e0
cmp eax, 0x8fe6a6a0
jne 0x5377e0
mov eax, edx
xor eax, dword [ebp - 0x34]
mov ecx, ebx
xor ecx, dword [ebp - 0x30]
or ecx, eax
jne 0x537b63
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp ebx, eax
jae 0x537aa1
test ebx, ebx
je 0x537c7f
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 0x53777c
jmp 0x5377e0
mov ecx, dword [edi]
sub ebx, ecx
sar ebx, 3
lea edx, [ebx + 1]
cmp edx, 0x20000000
jae 0x537c75
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 0x537cb5
cmp ecx, 0x20000000
jae 0x537c7a
lea eax, [ecx*8]
push eax
call fcn.00564055
add esp, 4
shl ebx, 3
mov dword [ebp - 0x20], eax
add ebx, eax
je 0x537c7f
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 0x537b2e
push ecx
push eax
push esi
call fcn.00568550
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 0x537a7d
push eax
call fcn.00564050
add esp, 4
jmp 0x537a7d
mov ecx, dword [ecx + 4]
add ecx, 0x30
jmp 0x5377d0
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.0041d100
add esp, 4
test eax, eax
je 0x537c91
mov ebx, eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp edx, eax
jb 0x537c52
mov ecx, dword [ebx]
sub edx, ecx
sar edx, 3
mov dword [ebp - 0x24], edx
inc edx
cmp edx, 0x20000000
jae 0x537c75
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 0x537cbc
cmp esi, 0x20000000
jae 0x537c7a
lea eax, [esi*8]
push eax
call fcn.00564055
add esp, 4
mov edi, eax
mov edx, dword [ebp - 0x24]
shl edx, 3
add edx, edi
je 0x537c7f
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 0x537c1d
push ecx
push eax
push ebx
call fcn.00568550
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 0x537c44
push eax
mov esi, edx
call fcn.00564050
mov edx, esi
add esp, 4
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x20]
mov dword [ebx + 4], edx
jmp 0x537a85
test edx, edx
je 0x537c7f
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
add edx, 8
jmp 0x537c44
mov ecx, dword [ebp - 0x18]
push 1
call fcn.00591c90
jmp 0x5377e0
call fcn.00595910
call fcn.00595030
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x624e92
call fcn.005912b0
int3
int3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x537754
push edi
call fcn.00556f00
mov ecx, dword [ebp + 8]
jmp 0x53783a
call fcn.00595910
xor eax, eax
jmp 0x537af7
xor edi, edi
jmp 0x537bdd