Function at 0x4609931b
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x460ec018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 0x48]
test eax, eax
je 0x46099341
mov eax, dword [eax + 0x14]
jmp 0x46099343
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov edi, dword [edi + 0x1c]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 0x50]
mov ecx, esi
call dword [0x460ed508]
mov ecx, edi
call esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x24]
xor eax, eax
push eax
push eax
push eax
mov esi, dword [edi]
push eax
push eax
push eax
mov ecx, dword [esi + 0x74]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [0x460ed508]
mov ecx, edi
call dword [esi + 0x74]
mov ecx, dword [ebx + 8]
mov edi, 0x20000000
and ecx, 0xdfffffff
mov dword [ebx + 0x28], eax
mov dword [ebx + 8], ecx
cmp eax, dword [ebx + 0x18]
jle 0x460993b2
cmp eax, dword [ebx + 0x1c]
jge 0x460993b2
or ecx, edi
mov dword [ebx + 8], ecx
mov ecx, dword [ebx + 0x2c]
movzx esi, word [0x460ec76c]
test ecx, ecx
je 0x460993c5
call fcn.46099881
mov ecx, dword [ebx + 0xc]
push esi
push esi
push dword [ebp - 8]
mov ecx, dword [ecx + 0x24]
push dword [ebp - 0xc]
call fcn.46092bcb
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x460993f6
test dword [ebx + 8], edi
jne 0x460993f2
test eax, eax
jne 0x460993f2
call fcn.46099819
jmp 0x460993f6
or dword [ecx + 0xc], 0xffffffff
mov eax, dword [ebx + 0xc]
test byte [eax + 0x60], 1
je 0x46099473
xor edi, edi
lea ecx, [ebp - 0x60]
push edi
push dword [ebx + 0x28]
push eax
call fcn.460bb9a2
push 1
lea ecx, [ebp - 0x60]
call fcn.460bf701
mov esi, eax
test esi, esi
je 0x46099423
cmp esi, 2
jne 0x4609946b
push 0xffffffffffffffff
lea ecx, [ebp - 0x60]
call fcn.460bc0fb
cmp dword [ebx + 0x28], edi
je 0x46099447
push 0xffffffffffffffff
lea ecx, [ebp - 0x60]
call fcn.460bf701
mov esi, eax
test esi, esi
je 0x460994bd
cmp esi, 2
jne 0x4609946b
test esi, esi
je 0x460994bd
mov ecx, dword [ebx + 0xc]
test dword [ecx + 0x5c], 0x200000
je 0x460994bd
push edi
push edi
push 0x200
lea eax, [ebp - 0x60]
push eax
call fcn.460a0773
test eax, eax
jne 0x460994bd
lea ecx, [ebp - 0x60]
call fcn.460bbad5
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x4609949b
mov esi, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, dword [esi + 0x2c]
push 0
push eax
call dword [0x460ed508]
call dword [esi + 0x2c]
mov ecx, dword [edi]
lea eax, [ecx - 1]
test ecx, eax
je 0x4609951a
mov ecx, dword [ebx + 8]
mov edx, 0x40000000
test ecx, ecx
js 0x460994cd
test edx, ecx
je 0x460994b4
mov eax, dword [ebx + 0xc]
test byte [eax + 0x60], 4
je 0x460994cd
and dword [edi], 0
or dword [ebx + 0x28], 0xffffffff
jmp 0x46099526
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x60]
and dword [edi], 0
call fcn.460bbad5
jmp 0x4609951a
test ecx, 0x20000000
jne 0x46099517
test edx, ecx
je 0x46099517
mov ecx, dword [ebp + 8]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
je 0x46099517
mov eax, ecx
and eax, 8
jne 0x460994f9
test byte [edi], 2
je 0x46099506
mov dword [edi], 2
jmp 0x4609951a
and ecx, 0x24
cmp cl, 0x24
je 0x46099506
test byte [edi], 1
jne 0x4609950f
test eax, eax
jne 0x46099517
test byte [edi], 1
je 0x46099517
mov dword [edi], 1
jmp 0x4609951a
and dword [edi], 0
cmp dword [ebp - 0x14], 0
je 0x46099526
or dword [edi], 0x80000000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.460ea320
mov esp, ebp
pop ebp
ret 0x10