Function at 0x417ef6
Capabilities:
Inspect section memory permissions

Disassembly:
push 0xc4
mov eax, 0x4df459
call fcn.004dc99a
mov edi, edx
cmp edi, 0x2710
jb 0x417f16
xor eax, eax
jmp 0x4181b9
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, 0xa4
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cdq
idiv esi
cmp edi, eax
jbe 0x417f44
cmp edi, 0x18f9c18
ja 0x4181cc
push edi
call fcn.00419190
xor eax, eax
mov dword [ebp - 0x1c], ebx
inc eax
test edi, edi
je 0x4181b5
mov esi, 0x4f4b10
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push esi
call fcn.004095ca
xor ecx, ecx
inc ecx
push ecx
mov byte [ebp - 4], cl
mov ecx, esp
mov dword [ebp - 0x28], esp
push esi
call fcn.004095ca
push 2
pop eax
push ecx
mov ecx, esp
mov byte [ebp - 4], al
push esi
call fcn.004095ca
push ebx
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], bl
call fcn.004af8de
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.00418e72
test eax, eax
je 0x4181bf
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00418e72
test eax, eax
je 0x4181bf
cmp dword [ebp - 0xcc], 0x1b
je 0x417fd4
cmp dword [ebp - 0xcc], 0x1c
jne 0x417fdf
mov ax, word [ebp - 0x20]
mov word [ebp - 0xbc], ax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00418e72
test eax, eax
je 0x4181bf
mov ecx, dword [ebp - 0x14]
movzx esi, cl
mov dword [ebp - 0xa8], esi
test ecx, 0x2000000
je 0x418012
xor edx, edx
inc edx
mov dword [ebp - 0x30], edx
jmp 0x418027
mov eax, dword [ebp - 0x30]
test ecx, 0x4000000
push 2
pop edx
cmovne eax, edx
xor edx, edx
mov dword [ebp - 0x30], eax
inc edx
mov eax, ecx
shr eax, 0x1b
and eax, edx
mov dword [ebp - 0xc8], eax
mov eax, ecx
shr eax, 0x18
and eax, edx
mov dword [ebp - 0xd0], eax
test ecx, 0x10000000
je 0x418091
mov dword [ebp - 0xa4], 0x80000001
call fcn.00420f20
test eax, eax
je 0x418088
mov eax, dword [ebp - 0xc8]
test eax, eax
jne 0x418088
mov edx, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xa8]
push 2
pop ecx
cmp edx, ecx
push 1
pop ecx
cmove eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc8], eax
jmp 0x418097
mov esi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xa4]
test ecx, 0x20000000
mov dword [ebp - 0x18], 0x80000002
cmovne eax, dword [ebp - 0x18]
mov dword [ebp - 0xa4], eax
test ecx, 0xc0000000
je 0x4180c1
push 2
pop eax
jmp 0x4180e1
test ecx, 0x40000000
je 0x4180d2
mov dword [ebp - 0x78], 3
jmp 0x4180e4
mov eax, dword [ebp - 0x78]
test ecx, 0x80000000
push 4
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x78], eax
xor eax, eax
inc eax
cmp edx, eax
jge 0x4180f3
mov dword [ebp - 0xcc], eax
jmp 0x418101
push 0x32
pop eax
cmp edx, eax
cmovg edx, eax
mov dword [ebp - 0xcc], edx
test esi, esi
jns 0x41810d
mov dword [ebp - 0xa8], ebx
jmp 0x41811b
push 0x1e
pop eax
cmp esi, eax
cmovg esi, eax
mov dword [ebp - 0xa8], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00418e72
test eax, eax
je 0x4181bf
push dword [ebp - 0x18]
lea ecx, [ebp - 0xd0]
call fcn.004afaa6
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x10]
call fcn.00419001
test eax, eax
je 0x4181bf
cmp dword [ebp - 0xcc], 0x10
jne 0x41816e
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040585f
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x10]
call fcn.00419001
test eax, eax
je 0x4181bf
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xd0]
push eax
call fcn.00418f42
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], bl
call fcn.004181d2
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, edi
mov esi, 0x4f4b10
jb 0x417f57
xor eax, eax
inc eax
mov ebx, eax
mov eax, ebx
call fcn.004dc963
ret
lea ecx, [ebp - 0xd0]
call fcn.004181d2
jmp 0x4181b7
call fcn.0040db23
int3