Function at 0x58b770
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d301f
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2d8], 0
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x2e0], ecx
cmp dword [ebp - 0x2e0], 0x20a
jae 0x58b7c7
jmp 0x58b7cc
call fcn.00496028
xor edx, edx
mov eax, dword [ebp - 0x2e0]
mov word [ebp + eax - 0x21c], dx
mov ecx, 2
imul edx, ecx, 0x104
mov dword [ebp - 0x2e4], edx
cmp dword [ebp - 0x2e4], 0x20a
jae 0x58b7fb
jmp 0x58b800
call fcn.00496028
xor eax, eax
mov ecx, dword [ebp - 0x2e4]
mov word [ebp + ecx - 0x21c], ax
mov dword [ebp - 0x2c8], 0x400000
lea edx, [ebp - 0x2c8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00446490
push eax
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ecx + 0x24]
call eax
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
je 0x58b850
xor eax, eax
jmp 0x58bc55
mov ecx, dword [ebp - 0x2c8]
and ecx, 0x400000
je 0x58b872
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x58b872
mov dword [ebp - 0x2e8], 1
jmp 0x58b87c
mov dword [ebp - 0x2e8], 0
mov al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2c9], al
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
jne 0x58b8a2
movzx edx, byte [ebp - 0x2c9]
test edx, edx
je 0x58b8a2
xor eax, eax
jmp 0x58bc55
mov dword [ebp - 0x2c8], 0x40000000
movzx eax, byte [ebp - 0x2c9]
test eax, eax
jne 0x58b8db
mov ecx, dword [ebp - 0x2c8]
or ecx, 0x80000000
mov dword [ebp - 0x2c8], ecx
mov edx, dword [ebp - 0x2c8]
or edx, 0x20000000
mov dword [ebp - 0x2c8], edx
lea eax, [ebp - 0x2c8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00446490
push eax
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [edx + 0x24]
call ecx
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
je 0x58b911
xor eax, eax
jmp 0x58bc55
mov edx, dword [ebp - 0x2c8]
and edx, 0xa0000000
je 0x58bb91
lea eax, [ebp - 0x21c]
push eax
push 0x8000
mov ecx, dword [ebp + 0xc]
call fcn.00447710
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00585d70
add esp, 0x10
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x24c]
call fcn.00446660
mov dword [ebp - 4], 0
push str.::871C5380_42A0_1069_A2EA_08002B30309D
lea ecx, [ebp - 0x234]
call fcn.00446660
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.004dd489
add esp, 8
mov byte [ebp - 0x2ca], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00446610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.00446610
movzx edx, byte [ebp - 0x2ca]
test edx, edx
je 0x58b9c0
xor eax, eax
jmp 0x58bc55
mov eax, dword [ebp - 0x2c8]
and eax, 0x20000000
je 0x58bb8c
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x264]
call fcn.00446660
mov dword [ebp - 4], 2
lea edx, [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x2d4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x10]
call eax
mov byte [ebp - 0x2cb], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.00446610
movzx ecx, byte [ebp - 0x2cb]
test ecx, ecx
je 0x58ba2e
xor eax, eax
jmp 0x58bc55
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x27c]
call fcn.00446660
mov dword [ebp - 4], 3
push 0x14
lea eax, [ebp - 0x2c4]
push eax
mov ecx, dword [ebp - 0x2d4]
call fcn.00589b70
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2f8], ecx
mov byte [ebp - 4], 4
lea edx, [ebp - 0x27c]
push edx
mov eax, dword [ebp - 0x2f8]
push eax
call fcn.004dd489
add esp, 8
mov byte [ebp - 0x2cc], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c4]
call fcn.00446610
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.00446610
movzx ecx, byte [ebp - 0x2cc]
test ecx, ecx
je 0x58bac3
mov eax, 2
jmp 0x58bc55
mov edx, dword [ebp - 0x2c8]
and edx, 0x80000000
je 0x58bae0
mov eax, 1
jmp 0x58bc55
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x58bb3d
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x294]
call fcn.00446660
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x2d8]
or edx, 1
mov dword [ebp - 0x2d8], edx
lea eax, [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x1c]
call eax
movzx ecx, al
test ecx, ecx
je 0x58bb3d
mov dword [ebp - 0x2ec], 1
jmp 0x58bb47
mov dword [ebp - 0x2ec], 0
mov dl, byte [ebp - 0x2ec]
mov byte [ebp - 0x2cd], dl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2d8]
and eax, 1
je 0x58bb77
and dword [ebp - 0x2d8], 0xfffffffe
lea ecx, [ebp - 0x294]
call fcn.00446610
movzx ecx, byte [ebp - 0x2cd]
test ecx, ecx
je 0x58bb8c
mov eax, 1
jmp 0x58bc55
jmp 0x58bc50
mov edx, dword [ebp - 0x2c8]
and edx, 0x40000000
je 0x58bc4c
lea eax, [ebp - 0x21c]
push eax
push 0x8000
mov ecx, dword [ebp + 0xc]
call fcn.00447710
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00585d70
add esp, 0x10
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x2ac]
call fcn.00446660
mov dword [ebp - 4], 6
lea eax, [ebp - 0x2ac]
push eax
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2d4]
mov eax, dword [edx + 0x14]
call eax
movzx ecx, al
test ecx, ecx
jne 0x58bc0a
mov dword [ebp - 0x2f0], 1
jmp 0x58bc14
mov dword [ebp - 0x2f0], 0
mov dl, byte [ebp - 0x2f0]
mov byte [ebp - 0x2ce], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ac]
call fcn.00446610
movzx eax, byte [ebp - 0x2ce]
test eax, eax
je 0x58bc43
xor eax, eax
jmp 0x58bc55
mov eax, 2
jmp 0x58bc55
xor eax, eax
jmp 0x58bc55
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret 0x10