Function at 0x3506c456
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x350a672c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
and eax, 0xffff
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x12a4]
xor edi, edi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], eax
cmp ecx, 0xffffffff
jne 0x3506c4b3
mov eax, edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x3506c4a7
sub eax, edx
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x135c]
test eax, 0x400
jne 0x3506c6e5
test eax, 0x800
jne 0x3506c537
test byte [ebp + 0x14], 0x10
jne 0x3506c537
mov ecx, dword [esi + 0x1068]
cmp ecx, ebx
je 0x3506c52d
test eax, 0x40000000
jne 0x3506c52d
test al, 4
jne 0x3506c502
mov eax, dword [ecx]
push ebx
push 0xffffffffffffffff
push 0x35012eb4
call dword [eax + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x3506cd76
je 0x3506c502
mov dword [ebp - 0x28], edi
test byte [esi + 0x135c], 8
jne 0x3506c52d
mov ecx, dword [esi + 0x1068]
mov eax, dword [ecx]
push ebx
push 0xffffffffffffffff
push 0x35012ea8
call dword [eax + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x3506cd76
je 0x3506c52d
mov dword [ebp - 0x28], edi
or dword [esi + 0x135c], 0x800
mov eax, dword [esi + 0x135c]
test eax, 0x1000
jne 0x3506c5be
test byte [ebp + 0x14], 0x30
jne 0x3506c5be
mov ebx, 0x10000000
test ebx, eax
je 0x3506c560
test eax, 0x20000000
je 0x3506c560
test byte [ebp + 0x14], 0x40
je 0x3506c5be
mov ecx, dword [esi + 0x1068]
test ecx, ecx
je 0x3506c5b4
test eax, 0x40000000
jne 0x3506c5b4
test al, 8
jne 0x3506c592
mov eax, dword [ecx]
push 0
push 0xffffffffffffffff
push 0x35012e9c
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c592
mov dword [ebp - 0x28], edi
test dword [esi + 0x135c], ebx
jne 0x3506c5b4
push 0
push 0
mov ecx, esi
call fcn.3506b892
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c5b4
mov dword [ebp - 0x28], edi
or dword [esi + 0x135c], 0x1000
mov eax, dword [esi + 0x135c]
test eax, 0x2000
jne 0x3506c6e5
test byte [ebp + 0x14], 0x70
jne 0x3506c6e5
cmp dword [esi + 0x1068], 0
je 0x3506c659
test eax, 0x40000000
jne 0x3506c659
test eax, 0x20000000
jne 0x3506c606
mov ecx, esi
call fcn.35068cfc
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c606
mov dword [ebp - 0x28], edi
mov eax, dword [esi + 0x135c]
test eax, 0x1000
je 0x3506c63a
test al, 8
jne 0x3506c63a
mov ecx, dword [esi + 0x1068]
mov eax, dword [ecx]
push 0
push 0xffffffffffffffff
push 0x35012e90
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c63a
mov dword [ebp - 0x28], edi
test byte [esi + 0x135c], 8
jne 0x3506c659
mov ecx, esi
call fcn.3506b5cf
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c659
mov dword [ebp - 0x28], edi
lea ebx, [esi + 0x1344]
mov eax, dword [ebx]
test eax, eax
je 0x3506c67f
test byte [esi + 0x135c], 8
jne 0x3506c67f
push eax
call dword [0x350ac7f0]
and dword [ebx], 0
and dword [esi + 0x1348], 0
mov eax, dword [esi + 0x135c]
mov ecx, dword [esi + 0x1068]
and eax, 0xffffefff
or eax, 0x2400
mov dword [esi + 0x135c], eax
test ecx, ecx
je 0x3506c6cf
test al, 0x30
jne 0x3506c6b2
test al, 4
jne 0x3506c6c2
push 0
push 0xffffffffffffffff
push 0x35012e64
jmp 0x3506c6bb
push 0
push 0xffffffffffffffff
push 0x35012e38
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c6cf
mov dword [ebp - 0x28], edi
mov ecx, esi
call fcn.3506abd7
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c6e5
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x40], 0
je 0x3506cd76
test dword [esi + 0x135c], 0x40000000
je 0x3506c705
test byte [ebp + 0x14], 0x70
jne 0x3506cd76
mov ecx, dword [esi + 0x1068]
test ecx, ecx
je 0x3506cb87
mov eax, dword [ebp + 0x14]
test eax, 0x2000
jne 0x3506cb87
test al, 4
je 0x3506c730
push 0
push 2
push 0x35012e34
jmp 0x3506c758
test al, 2
je 0x3506c73f
push 0
push 1
push 0x35012e30
jmp 0x3506c758
test al, al
jns 0x3506c75f
test dword [esi + 0x12a4], 0x10000
je 0x3506c75f
push 0
push 0xffffffffffffffff
push 0x35012e14
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c76c
mov dword [ebp - 0x28], edi
test byte [ebp + 0x14], 1
jne 0x3506ca08
mov ebx, dword [esi + 0x135c]
test ebx, 0x80000
jne 0x3506ca08
test bl, 8
jne 0x3506ca08
mov eax, dword [ebp - 0x48]
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x12a4]
je 0x3506c7df
mov eax, dword [ebp - 0x2c]
push eax
mov dword [esi + 0x12a4], eax
call fcn.3505f84e
xor ecx, ecx
cmp dword [ebp - 0x2c], 0x4b0
sete cl
and eax, 1
and ebx, 0xffffff3f
and ecx, 1
add ecx, ecx
or ecx, eax
shl ecx, 6
or ecx, ebx
mov dword [esi + 0x135c], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x38]
add ecx, eax
push edx
push ecx
mov dword [ebp - 0x4c], ecx
push eax
jmp 0x3506c935
mov ecx, dword [ebp - 0x38]
mov eax, ecx
sub eax, 0x22
je 0x3506c883
sub eax, 4
je 0x3506c87c
sub eax, 0x16
je 0x3506c875
dec eax
dec eax
je 0x3506c86e
cmp ecx, 0x80
jb 0x3506c863
test dword [ebp + 0x10], 0x10000
je 0x3506c853
cmp ecx, 0xa0
jb 0x3506c84c
test byte [esi + 0x102c], 1
je 0x3506c84c
push ecx
push 0x35011630
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.350637d3
add esp, 0x10
lea ebx, [ebp - 0x24]
jmp 0x3506c888
mov ebx, 0x3501150c
jmp 0x3506c888
cmp dword [ebp - 0x3c], 0
jne 0x3506c863
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x44]
add dword [ebp - 0x34], eax
jmp 0x3506c92b
mov ebx, 0x35011650
jmp 0x3506c888
mov ebx, 0x35011648
jmp 0x3506c888
mov ebx, 0x35011640
jmp 0x3506c888
mov ebx, 0x35011638
mov eax, dword [esi + 0x1068]
test byte [eax + 0xc], 8
je 0x3506c8bc
cmp dword [ebp - 0x3c], 0
je 0x3506c8bc
cmp dword [ebp - 0x2c], 0
je 0x3506c8bc
push dword [ebp - 0x54]
mov ecx, esi
push dword [ebp - 0x2c]
call fcn.3506b892
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c8bc
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x34], eax
jbe 0x3506c8fc
xor eax, eax
cmp dword [ebp - 0x3c], eax
jne 0x3506c8d4
cmp dword [ebp - 0x2c], 0x4b0
jne 0x3506c8d7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [esi + 0x1068]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call dword [edx + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c8fc
mov dword [ebp - 0x28], edi
mov ecx, dword [esi + 0x1068]
mov eax, dword [ecx]
push 0
push 0xffffffffffffffff
push ebx
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c91b
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x34]
and dword [ebp - 0x3c], 0
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x4c]
push dword [ebp - 0x34]
mov ecx, esi
call fcn.3506891b
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x3506c7f5
mov eax, dword [esi + 0x1068]
test byte [eax + 0xc], 8
je 0x3506c97b
cmp dword [ebp - 0x3c], 0
je 0x3506c97b
cmp dword [ebp - 0x2c], 0
je 0x3506c97b
push dword [ebp - 0x54]
mov ecx, esi
push dword [ebp - 0x2c]
call fcn.3506b892
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c97b
mov dword [ebp - 0x28], edi
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
jbe 0x3506c9bb
cmp dword [ebp - 0x3c], 0
jne 0x3506c996
cmp dword [ebp - 0x2c], 0x4b0
je 0x3506c996
xor eax, eax
jmp 0x3506c999
mov eax, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x30]
mov ecx, dword [esi + 0x1068]
mov edi, dword [ecx]
push eax
push edx
push dword [ebp - 0x30]
call dword [edi + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506c9bb
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x50]
cmp eax, dword [esi + 0x12a4]
je 0x3506cb41
mov ebx, eax
push ebx
mov dword [esi + 0x12a4], ebx
call fcn.3505f84e
xor ecx, ecx
cmp ebx, 0x4b0
sete cl
and eax, 1
and ecx, 1
add ecx, ecx
or ecx, eax
mov eax, dword [esi + 0x135c]
shl ecx, 6
and eax, 0xffffff3f
or ecx, eax
mov dword [esi + 0x135c], ecx
jmp 0x3506cb41
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x3506cb1e
mov edi, dword [ebp - 0x2c]
mov ebx, 0x4b0
cmp edi, ebx
jne 0x3506ca2f
mov ecx, dword [esi + 0x1068]
test byte [ecx + 0xc], 8
je 0x3506cb1e
cmp eax, dword [esi + 0x12a4]
je 0x3506ca6a
push edi
mov dword [esi + 0x12a4], edi
call fcn.3505f84e
xor ecx, ecx
cmp edi, ebx
sete cl
and eax, 1
and ecx, 1
add ecx, ecx
or ecx, eax
mov eax, dword [esi + 0x135c]
shl ecx, 6
and eax, 0xffffff3f
or ecx, eax
mov dword [esi + 0x135c], ecx
cmp edi, ebx
je 0x3506ca72
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
lea edi, [ecx + eax]
lea ecx, [ebp - 0x38]
push ecx
push edi
mov dword [ebp - 0x34], eax
push eax
jmp 0x3506ca9a
cmp dword [ebp - 0x38], 0x80
jae 0x3506caa7
add dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push edi
push dword [ebp - 0x34]
mov ecx, esi
call fcn.3506891b
test eax, eax
jne 0x3506ca86
jmp 0x3506cae0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x3506cab8
mov dword [ebp - 0x2c], 0x4e4
mov eax, dword [esi + 0x1068]
test byte [eax + 0xc], 8
je 0x3506cae0
push dword [ebp - 0x38]
mov ecx, esi
push dword [ebp - 0x2c]
call fcn.3506b892
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506cae0
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x50]
cmp edi, dword [esi + 0x12a4]
je 0x3506cb1e
push edi
mov dword [esi + 0x12a4], edi
call fcn.3505f84e
xor ecx, ecx
cmp edi, ebx
sete cl
and eax, 1
and ecx, 1
add ecx, ecx
or ecx, eax
mov eax, dword [esi + 0x135c]
shl ecx, 6
and eax, 0xffffff3f
or ecx, eax
mov dword [esi + 0x135c], ecx
push dword [ebp - 0x2c]
mov ecx, dword [esi + 0x1068]
push dword [ebp - 0x40]
mov eax, dword [ecx]
push dword [ebp - 0x48]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506cb41
mov dword [ebp - 0x28], edi
test byte [ebp + 0x14], 6
je 0x3506cb52
push 0
push 1
push 0x35012cd8
jmp 0x3506cb6d
test byte [ebp + 0x14], 0x80
je 0x3506cb7a
test dword [esi + 0x12a4], 0x10000
je 0x3506cb7a
push 0
push 7
push 0x35012e0c
mov ecx, dword [esi + 0x1068]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506cb87
mov dword [ebp - 0x28], edi
mov ecx, dword [esi + 0x1064]
test ecx, ecx
je 0x3506cd76
test dword [ebp + 0x14], 0x1000
jne 0x3506cd76
mov eax, dword [ebp + 0x10]
test eax, 0x10000
je 0x3506cbbd
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x48]
call fcn.350621d1
jmp 0x3506cd6b
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x3506cd48
cmp eax, dword [esi + 0x12a4]
je 0x3506cc07
push edi
mov dword [esi + 0x12a4], edi
call fcn.3505f84e
xor ecx, ecx
cmp edi, 0x4b0
sete cl
and eax, 1
and ecx, 1
add ecx, ecx
or ecx, eax
mov eax, dword [esi + 0x135c]
shl ecx, 6
and eax, 0xffffff3f
or ecx, eax
mov dword [esi + 0x135c], ecx
cmp edi, 0x4b0
je 0x3506cc13
and dword [ebp - 0x2c], 0
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x40]
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x38]
add eax, ebx
push ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x4c], eax
push eax
jmp 0x3506ccf1
cmp dword [ebp - 0x38], 0x80
jb 0x3506cce7
cmp dword [ebp - 0x38], 0xa0
jne 0x3506ccb0
push dword [ebp + 0x10]
call fcn.350684fd
test eax, eax
je 0x3506ccb0
test byte [esi + 0x135c], 0x30
jne 0x3506ccb0
cmp ebx, dword [ebp - 0x30]
jbe 0x3506cc85
push dword [ebp - 0x2c]
mov ecx, dword [esi + 0x1064]
mov eax, dword [ecx]
mov edx, ebx
sub edx, dword [ebp - 0x30]
push edx
push dword [ebp - 0x30]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506cc85
mov dword [ebp - 0x28], edi
mov ecx, dword [esi + 0x1064]
mov eax, dword [ecx]
push 0
push 1
push 0x35011538
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506cca8
mov dword [ebp - 0x28], edi
add ebx, dword [ebp - 0x44]
mov dword [ebp - 0x30], ebx
jmp 0x3506ccea
cmp dword [ebp - 0x3c], 0
jne 0x3506cce7
mov ecx, dword [esi + 0x1064]
test byte [ecx + 0xc], 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x2c], eax
je 0x3506cce7
push dword [ebp - 0x38]
push eax
call fcn.3506595e
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506cce7
mov dword [ebp - 0x28], edi
add ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x4c]
push ebx
mov ecx, esi
call fcn.3506891b
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x3506cc2f
mov edi, dword [ebp - 0x50]
cmp edi, dword [esi + 0x12a4]
je 0x3506cd54
push edi
mov dword [esi + 0x12a4], edi
call fcn.3505f84e
xor ecx, ecx
cmp edi, 0x4b0
sete cl
and eax, 1
and ecx, 1
add ecx, ecx
or ecx, eax
mov eax, dword [esi + 0x135c]
shl ecx, 6
and eax, 0xffffff3f
or ecx, eax
mov dword [esi + 0x135c], ecx
jmp 0x3506cd54
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
lea ebx, [ecx + eax]
push dword [ebp - 0x2c]
sub ebx, dword [ebp - 0x30]
mov esi, dword [esi + 0x1064]
mov eax, dword [esi]
push ebx
push dword [ebp - 0x30]
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jl 0x3506cd7a
je 0x3506cd7e
mov dword [ebp - 0x28], edi
test edi, edi
je 0x3506cd7e
mov eax, edi
jmp 0x3506cd81
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3505b7a5
leave
ret 0x10