Function at 0x41d053
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.0040bd38
cmp dword [ebp - 8], 0x40
jne 0x41d2bd
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x10]
push dword [eax + 0xd20]
push 0x32
push dword [esi + 4]
call fcn.0040bd38
cmp dword [ebp - 8], ebx
je 0x41d2bd
lea eax, [ebp - 0x30]
push eax
push 0x64
push dword [esi + 4]
call fcn.0040b969
mov eax, dword [ebp - 0x24]
push ebx
push dword [0x45ffcc]
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 0x4601f4
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 0x41d2bd
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], 0x41cf1f
push dword [ebp - 4]
call edi
test eax, eax
je 0x41d2b3
push 0x3c
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00442900
mov eax, dword [ebp + 0xc]
add esp, 0xc
sub eax, 0x12
mov dword [ebp - 0x6c], 0x3c
je 0x41d240
dec eax
je 0x41d21c
dec eax
je 0x41d1fb
dec eax
dec eax
je 0x41d18c
sub eax, 7
jne 0x41d269
lea eax, [ebp + 8]
mov dword [ebp - 0x68], 0x40000000
push eax
push ebx
push 0x1d
push dword [esi + 4]
call fcn.0040bd38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
jmp 0x41d259
lea eax, [ebp + 8]
push eax
push ebx
push 0x16
push dword [esi + 4]
call fcn.0040bd38
push 0x9c
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00442900
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 0x41d1e3
dec eax
je 0x41d1d8
mov word [ebp - 0xf0], 1
jmp 0x41d1ec
mov word [ebp - 0xf0], 2
jmp 0x41d1ec
mov word [ebp - 0xf0], 3
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x447
jmp 0x41d264
lea eax, [ebp + 8]
mov dword [ebp - 0x68], 7
push eax
push ebx
push 0x14
push dword [esi + 4]
call fcn.0040bd38
mov eax, dword [ebp + 8]
and eax, 7
or dword [ebp - 0x64], eax
jmp 0x41d259
lea eax, [ebp + 8]
mov dword [ebp - 0x68], SysReAllocStringLen
push eax
push ebx
push 0x13
push dword [esi + 4]
call fcn.0040bd38
mov eax, dword [ebp + 8]
lea eax, [eax + eax*4]
shl eax, 2
mov dword [ebp - 0x60], eax
jmp 0x41d259
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.0040bd38
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], 0x41cf63
call edi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x41d2b3
push eax
mov eax, dword [esi + 0x10]
push dword [eax + 0xd20]
push 0x32
push dword [esi + 4]
call fcn.0040bd5d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret