Function at 0x404af1
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0x14]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], eax
call fcn.0040466c
call fcn.004058d5
mov dword [ebp - 0x26c], eax
test esi, esi
jne 0x404b92
call fcn.004058d5
mov dword [eax], 0x16
call fcn.00405883
cmp byte [ebp - 0x250], 0
je 0x404b8a
mov eax, dword [ebp - 0x254]
and dword [eax + 0x70], 0xfffffffd
or eax, 0xffffffff
jmp 0x4056c9
test byte [esi + 0xc], 0x40
jne 0x404bf6
push esi
call fcn.0040943d
pop ecx
mov edx, 0x411cc8
cmp eax, 0xffffffff
je 0x404bc4
cmp eax, 0xfffffffe
je 0x404bc4
mov ecx, eax
and ecx, 0x1f
mov esi, eax
sar esi, 5
shl ecx, 6
add ecx, dword [esi*4 + 0x412bc0]
jmp 0x404bc6
mov ecx, edx
test byte [ecx + 0x24], 0x7f
jne 0x404b67
cmp eax, 0xffffffff
je 0x404bea
cmp eax, 0xfffffffe
je 0x404bea
mov ecx, eax
and eax, 0x1f
sar ecx, 5
shl eax, 6
add eax, dword [ecx*4 + 0x412bc0]
jmp 0x404bec
mov eax, edx
test byte [eax + 0x24], 0x80
jne 0x404b67
xor ecx, ecx
cmp ebx, ecx
je 0x404b67
mov dl, byte [ebx]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x248], ecx
mov byte [ebp - 0x211], dl
test dl, dl
je 0x4056b0
inc ebx
xor esi, esi
mov dword [ebp - 0x240], ebx
cmp dword [ebp - 0x224], esi
jl 0x4056b0
lea eax, [edx - 0x20]
cmp al, 0x58
ja 0x404c4d
movsx eax, dl
movsx eax, byte [eax + 0x40c560]
and eax, 0xf
jmp 0x404c4f
xor eax, eax
movsx eax, byte [ecx + eax*8 + 0x40c580]
push 7
sar eax, 4
pop ecx
mov dword [ebp - 0x274], eax
cmp eax, ecx
ja 0x40568b
jmp dword [eax*4 + 0x4056d9]
xchg dword [eax + 0x3b000000], esp
ret
cmp dword [eax], ebx
je 0x4056ed
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4056e8
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4056d2
rol dword [ecx + 0xf000e2], 1
add byte [ecx + 0x3000fa], al
add byte [ebp + 0x13], dh
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
xor al, 3
into
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4056da
cmp edx, ebx
jne 0x405828
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4056a9
add eax, dword [eax + 4]
jmp 0x405696
mov dword [ebp + 0xc], ebx
jmp 0x4056f8
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x405710
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
leave
mov edi, 0x60000000
jmp 0x40572e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40578c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x405773
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40577c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x405786
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x405768
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4056f2
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4057d9
dec eax
je 0x4057d0
sub eax, 3
je 0x4057c7
mov dword [ebp - 4], 0x40
jmp 0x4057f6
mov dword [ebp - 4], 4
jmp 0x4057dc
mov dword [ebp - 4], 0x20
jmp 0x4057dc
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x405828
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4057a8
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00405039
in eax, 0xed
xor bh, byte [ebx - 1]
jne 0x405833
push 1
push esi
call edi
mov eax, esi
jmp 0x405834
push 0x8000
push ebx
push esi
invalid
push ebp