Function at 0x41f487
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push eax
push ebx
push 0x35
push dword [esi + 4]
call fcn.0040c26d
cmp dword [ebp - 8], 0x40
jne 0x41f6f1
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x10]
push dword [eax + 0xd20]
push 0x32
push dword [esi + 4]
call fcn.0040c26d
cmp dword [ebp - 8], ebx
je 0x41f6f1
lea eax, [ebp - 0x30]
push eax
push 0x64
push dword [esi + 4]
call fcn.0040bf04
mov eax, dword [ebp - 0x24]
push ebx
push dword [0x46950c]
sub eax, dword [ebp - 0x2c]
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push eax
mov eax, SysReAllocStringLen
push eax
push eax
push 4
push 0x469734
push str.RichEdit
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41f6f1
mov eax, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [eax + 0xd20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 2
push 0x449
mov dword [ebp - 0x18], 0x41f353
push dword [ebp - 4]
call edi
test eax, eax
je 0x41f6e7
push 0x3c
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0044bf00
mov eax, dword [ebp + 0xc]
add esp, 0xc
sub eax, 0x12
mov dword [ebp - 0x6c], 0x3c
je 0x41f674
dec eax
je 0x41f650
dec eax
je 0x41f62f
dec eax
dec eax
je 0x41f5c0
sub eax, 7
jne 0x41f69d
lea eax, [ebp + 8]
mov dword [ebp - 0x68], 0x40000000
push eax
push ebx
push 0x1d
push dword [esi + 4]
call fcn.0040c26d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
jmp 0x41f68d
lea eax, [ebp + 8]
push eax
push ebx
push 0x16
push dword [esi + 4]
call fcn.0040c26d
push 0x9c
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0044bf00
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x108], 0x9c
push 8
pop ecx
sub eax, ecx
mov dword [ebp - 0x104], ecx
je 0x41f617
dec eax
je 0x41f60c
mov word [ebp - 0xf0], 1
jmp 0x41f620
mov word [ebp - 0xf0], 2
jmp 0x41f620
mov word [ebp - 0xf0], 3
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x447
jmp 0x41f698
lea eax, [ebp + 8]
mov dword [ebp - 0x68], 7
push eax
push ebx
push 0x14
push dword [esi + 4]
call fcn.0040c26d
mov eax, dword [ebp + 8]
and eax, 7
or dword [ebp - 0x64], eax
jmp 0x41f68d
lea eax, [ebp + 8]
mov dword [ebp - 0x68], SysReAllocStringLen
push eax
push ebx
push 0x13
push dword [esi + 4]
call fcn.0040c26d
mov eax, dword [ebp + 8]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [ebp - 0x60], eax
jmp 0x41f68d
lea eax, [ebp + 8]
mov dword [ebp - 0x68], 0x20000000
push eax
lea eax, [ebp - 0x52]
push eax
push 0x12
push dword [esi + 4]
call fcn.0040c26d
lea eax, [ebp - 0x6c]
push eax
push 4
push 0x444
push dword [ebp - 4]
call edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0xd20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 2
push 0x44a
mov dword [ebp - 0x10], ebx
push dword [ebp - 4]
mov dword [ebp - 0x18], 0x41f397
call edi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x41f6e7
push eax
mov eax, dword [esi + 0x10]
push dword [eax + 0xd20]
push 0x32
push dword [esi + 4]
call fcn.0040c292
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret