Function at 0x530e40
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
push 0x6b7d14
push eax
xor ebx, ebx
push 1
push 0x5ca170
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 1
mov dword [ebp - 0xc], ebx
call fcn.00552ee0
mov edi, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x531178
push esi
jmp 0x530e80
push 0x5c0580
push 0x6b7d14
call fcn.005a2cdd
mov esi, eax
add esp, 8
test esi, esi
je 0x531151
push 0
push esi
call fcn.0052fbc0
or dword [ebp - 8], eax
add esp, 8
cmp eax, 0x200
jg 0x531014
je 0x530ffc
cmp eax, 0x10
jg 0x530f80
je 0x530f68
cmp eax, 1
jg 0x530f0d
je 0x530ef5
cmp eax, 0x80000000
jne case.0x530f95.33
push 1
lea ecx, [edi + 0xbe]
push ecx
push esi
call fcn.005308a0
add esp, 0xc
mov esi, eax
jmp case.0x530f95.33
lea edx, [edi + 0xde]
push edx
push esi
call fcn.00530950
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
sub eax, 2
je 0x530f50
sub eax, 2
je 0x530f38
sub eax, 4
jne case.0x530f95.33
lea eax, reloc.MSVCRT.dll_strncpy
push eax
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea ecx, [edi + 0xee]
push ecx
push esi
call fcn.00530950
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea edx, [edi + 0xe6]
push edx
push esi
call fcn.00530950
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea eax, reloc.MSVCRT.dll_strncpy
push eax
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
add eax, 0xffffffe0
cmp eax, 0xe0
ja case.0x530f95.33
movzx ecx, byte [eax + 0x5311ac]
jmp dword [ecx*4 + 0x531198]
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea eax, reloc.MSVCRT.dll_strncpy
push eax
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea eax, reloc.MSVCRT.dll_strncpy
push eax
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
cmp eax, 0x4000
jg 0x5310bd
je 0x5310a8
cmp eax, 0x1000
jg 0x531088
je 0x531070
cmp eax, 0x400
je 0x531058
cmp eax, 0x800
jne case.0x530f95.33
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea eax, reloc.MSVCRT.dll_strncpy
push eax
push esi
call fcn.005309d0
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
cmp eax, 0x2000
jne case.0x530f95.33
lea ecx, [edi + 0xf6]
push ecx
push esi
call fcn.00530950
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
lea edx, [edi + 0xfe]
push edx
push esi
call fcn.00530950
add esp, 8
mov esi, eax
inc ebx
jmp case.0x530f95.33
cmp eax, 0x20000000
jg 0x531116
je 0x531100
cmp eax, 0x1000000
je 0x5310ea
cmp eax, 0x2000000
jne case.0x530f95.33
push 1
lea eax, [edi + 0xce]
push eax
push esi
call fcn.005308a0
add esp, 0xc
mov esi, eax
jmp case.0x530f95.33
push 1
lea ecx, [edi + 0xd6]
push ecx
push esi
call fcn.005308a0
add esp, 0xc
mov esi, eax
jmp case.0x530f95.33
push 1
lea edx, [edi + 0xc6]
push edx
push esi
call fcn.005308a0
add esp, 0xc
mov esi, eax
jmp case.0x530f95.33
cmp eax, 0x40000000
je 0x531136
test esi, esi
jne 0x531151
mov eax, dword [ebp - 4]
push eax
push esi
push esi
push 0xd1
call fcn.00420e60
add esp, 0x10
jmp 0x531151
push 0
call fcn.0052fc80
mov ecx, dword [ebp - 0xc]
or ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, 0xb3000000
je 0x531151
inc ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push 0x6b7d14
inc eax
push ecx
push eax
push 0x5ca170
mov dword [ebp - 4], eax
call fcn.00552ee0
add esp, 0x10
test eax, eax
jne 0x530e80
pop esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edi + 8], edx
mov dword [edi + 0xba], eax
test ebx, ebx
je 0x531191
or dword [edi], reloc.MSVCRT.dll_strncpy
pop edi
pop ebx
mov esp, ebp
pop ebp
ret