Function at 0x4021e4
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp], eax
call fcn.00412700
mov dword [ebp - 0x20], eax
mov eax, dword [0x417334]
cmp dword [eax + 0xb4], 0
je 0x40224a
mov dword [esp + 4], 0x4156fc
mov dword [esp], 1
call dword [eax + 0x11c]
push ecx
push ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40224f
mov eax, dword [0x417334]
mov eax, dword [eax + 0x4ca]
mov eax, dword [eax + 0x34]
mov dword [esp], 1
mov dword [esp + 4], eax
call fcn.0040e860
jmp 0x4022c0
xor edx, edx
mov dword [ebp - 0x1c], edx
xor esi, esi
jmp 0x402254
inc esi
mov eax, dword [ebx + 4]
cmp si, word [eax + 2]
jae 0x402320
movzx edi, si
mov edx, dword [ebx]
imul eax, edi, 0x28
lea eax, [edx + eax + 0x14]
cmp dword [eax + 0x10], 0
mov dword [ebx + 8], eax
je 0x402253
mov edx, dword [eax + 0x24]
mov eax, 1
mov ecx, edx
and ecx, 0xe0000000
jne 0x4022c7
bt edx, 0x1a
jae 0x402291
or ah, 2
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x10], eax
lea edx, [edx + edi*8]
mov eax, dword [edx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [edx]
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp], 2
call fcn.0040e088
test eax, eax
jne 0x402253
xor eax, eax
jmp 0x40246a
mov eax, 0x10
cmp ecx, 0x20000000
je 0x402288
mov eax, 2
cmp ecx, 0x40000000
je 0x402288
mov eax, 0x20
cmp ecx, 0x60000000
je 0x402288
mov eax, 8
cmp ecx, 0x80000000
je 0x402288
mov eax, pe_nt_image_headers32
cmp ecx, 0xa0000000
je 0x402288
cmp ecx, 0xc0000000
mov eax, 4
mov ecx, 0x40
cmovne eax, ecx
jmp 0x402288
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x40232b
xor edi, edi
jmp 0x402394
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp], 2
call fcn.0040e088
test eax, eax
jne 0x402327
jmp 0x4022c0
imul esi, edi, 0x12
mov ecx, dword [ebx + 0x10]
lea eax, [ecx + esi]
cmp dword [eax], 0
jne 0x402373
imul edx, edx, 0x12
add edx, dword [eax + 4]
mov eax, edx
add eax, ecx
cmp byte [eax], 0x5f
jne 0x402379
inc eax
mov edx, dword [ebp - 0x20]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040dd04
test eax, eax
je 0x4023a0
inc edi
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0xc]
cmp edi, edx
jb 0x40235b
jmp 0x4023be
add esi, dword [ebx + 0x10]
mov eax, dword [ebx + 0x20]
movzx ecx, word [esi + 0xc]
mov edx, dword [esi + 8]
add edx, dword [eax + ecx*8 - 8]
je 0x4023be
mov eax, dword [ebx + 4]
mov di, word [eax + 2]
xor eax, eax
jmp 0x40240c
mov eax, dword [ebp + 0x18]
mov dword [esp], 0x14
mov dword [esp + 4], eax
call fcn.0040e5e8
mov dword [esp + 4], 2
mov dword [esp], eax
mov ebx, eax
call fcn.0040e380
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040e4a8
mov dword [esp], ebx
call fcn.0040e66c
jmp 0x4022c0
mov ecx, dword [ebx + 0x20]
lea esi, [ecx + eax*8]
mov ecx, dword [esi]
cmp edx, ecx
jae 0x402416
inc eax
cmp ax, di
jb 0x4023ff
jmp 0x4022c0
add ecx, dword [esi + 4]
cmp edx, ecx
jae 0x40240b
imul eax, eax, 0x28
mov ecx, dword [ebx]
lea eax, [ecx + eax + 0x14]
mov dword [ebx + 8], eax
test byte [eax + 0x27], 0x20
je 0x4022c0
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00402474
cmp dword [ebp - 0x1c], 0
jne 0x402456
mov eax, 1
jmp 0x40246a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [0x417334]
call dword [eax + 0x120]
push eax
jmp 0x40244f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret