Function at 0x539590
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 0x539af4
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 0x5399b8
cmp eax, 0x40
jb 0x539640
mov edx, eax
and edx, 7
jne 0x539640
mov esi, eax
add esi, 0x10
jb 0x539640
mov edx, dword [ecx + 0xc]
cmp esi, edx
ja 0x539640
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + eax + 4]
cmp esi, 0xc8799269
jne 0x539640
add ecx, eax
mov esi, dword [ecx]
cmp esi, 0x10
jb 0x539640
mov esi, dword [ecx]
add esi, eax
jb 0x539640
cmp esi, edx
ja 0x539640
test ecx, ecx
je 0x539640
mov ebx, dword [ecx + 0xc]
cmp ebx, 0x30
jne 0x5396f9
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 0x539aee
jne 0x5396ca
lea edi, [edi + ebx*8]
mov esi, dword [ebp - 0x14]
cmp edi, esi
je 0x5396aa
lea edx, [ebp + 0x10]
mov bl, byte [edx + 4]
mov edx, dword [edx]
mov dword [ebp - 0x28], edx
cmp eax, dword [ecx + 8]
jae 0x539b02
test eax, eax
je 0x539adf
mov edx, dword [edi]
mov dword [eax], edx
add eax, 4
mov dword [ecx + 4], eax
test bl, 1
je 0x5396c1
mov edx, dword [ebp - 0x28]
cmp dword [edi + 4], edx
jne 0x5396c1
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 0x5396aa
jmp 0x539682
cmp esi, 0x40000000
jae 0x539b10
lea eax, [esi*4]
push eax
call fcn.00562bc5
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 0x53966d
mov ecx, dword [ebp - 0x14]
mov esi, dword [ecx + 4]
cmp ebx, 0x40
mov dword [ebp - 0x18], esi
jb 0x539ac6
mov ecx, ebx
and ecx, 7
jne 0x539ac6
mov edx, ebx
add edx, 0x10
jb 0x539ac6
mov ecx, esi
mov esi, dword [esi + 0xc]
cmp edx, esi
ja 0x539ac6
mov edx, dword [ecx + 4]
mov ecx, dword [edx + ebx + 4]
cmp ecx, 0xc8799269
jne 0x539ac6
add edx, ebx
mov ecx, dword [edx]
cmp ecx, 0x10
jb 0x539ac6
mov edi, dword [edx]
add edi, ebx
setb cl
test edx, edx
je 0x539ac6
test cl, cl
jne 0x539ac6
cmp edi, esi
mov ecx, dword [ebp - 0x14]
ja 0x539ac6
lock cmpxchg dword [ecx + 8], ebx
jne 0x5395e8
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 0x539ac6
lock inc dword [ecx + 0xc]
cmp esi, 0x8fe6a6a0
jne 0x5395df
mov ecx, ebx
add ecx, 0x20
jb 0x539640
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov edi, dword [edx + 0xc]
cmp ecx, edi
ja 0x539640
mov ecx, dword [edx + 4]
mov edx, dword [ecx + ebx + 4]
cmp edx, 0xc8799269
jne 0x539640
lea esi, [ecx + ebx]
mov edx, dword [esi]
cmp edx, 0x20
jb 0x539640
add ebx, dword [esi]
jb 0x539640
cmp ebx, edi
ja 0x539640
mov edx, dword [esi + 8]
cmp edx, 0x8fe6a6a0
jne 0x539640
test esi, esi
je 0x539640
lea edx, [esi + 0x10]
cmp ecx, edx
ja 0x539640
sub edx, ecx
cmp edx, 0x10
jb 0x539640
cmp edx, edi
jae 0x539640
lea eax, [edx - 0x10]
mov dword [ebp - 0x10], eax
cmp eax, 0x40
jb 0x539640
and edx, 7
jne 0x539640
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 0x539640
add ecx, dword [ebp - 0x10]
mov esi, dword [ecx]
cmp esi, 0x11
jb 0x539640
mov esi, dword [ecx]
add esi, dword [ebp - 0x10]
jb 0x539640
cmp esi, edi
ja 0x539640
mov eax, dword [ecx + 8]
test ecx, ecx
je 0x539640
cmp eax, 0x8fe6a6a0
jne 0x539640
mov eax, edx
xor eax, dword [ebp - 0x34]
mov ecx, ebx
xor ecx, dword [ebp - 0x30]
or ecx, eax
jne 0x5399c3
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp ebx, eax
jae 0x539901
test ebx, ebx
je 0x539adf
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 0x5395dc
jmp 0x539640
mov ecx, dword [edi]
sub ebx, ecx
sar ebx, 3
lea edx, [ebx + 1]
cmp edx, 0x20000000
jae 0x539ad5
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 0x539b15
cmp ecx, 0x20000000
jae 0x539ada
lea eax, [ecx*8]
push eax
call fcn.00562bc5
add esp, 4
shl ebx, 3
mov dword [ebp - 0x20], eax
add ebx, eax
je 0x539adf
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 0x53998e
push ecx
push eax
push esi
call fcn.005670c0
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 0x5398dd
push eax
call fcn.00562bc0
add esp, 4
jmp 0x5398dd
mov ecx, dword [ecx + 4]
add ecx, 0x30
jmp 0x539630
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.004128e0
add esp, 4
test eax, eax
je 0x539af1
mov ebx, eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
cmp edx, eax
jb 0x539ab2
mov ecx, dword [ebx]
sub edx, ecx
sar edx, 3
mov dword [ebp - 0x24], edx
inc edx
cmp edx, 0x20000000
jae 0x539ad5
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 0x539b1c
cmp esi, 0x20000000
jae 0x539ada
lea eax, [esi*8]
push eax
call fcn.00562bc5
add esp, 4
mov edi, eax
mov edx, dword [ebp - 0x24]
shl edx, 3
add edx, edi
je 0x539adf
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 0x539a7d
push ecx
push eax
push ebx
call fcn.005670c0
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 0x539aa4
push eax
mov esi, edx
call fcn.00562bc0
mov edx, esi
add esp, 4
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x20]
mov dword [ebx + 4], edx
jmp 0x5398e5
test edx, edx
je 0x539adf
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov dword [edx + 4], eax
add edx, 8
jmp 0x539aa4
mov ecx, dword [ebp - 0x18]
push 1
call fcn.00590500
jmp 0x539640
call fcn.00593f80
call fcn.00593680
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
push 0x622e92
call fcn.0058fdd0
int3
int3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x5395b4
push edi
call fcn.00555af0
mov ecx, dword [ebp + 8]
jmp 0x53969a
call fcn.00593f80
xor eax, eax
jmp 0x539957
xor edi, edi
jmp 0x539a3d