Function at 0x4c7e40
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5498d2
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4c7e8d
mov eax, 0x80004003
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [eax + 8], 0
jne 0x4c7ead
mov eax, 0x80070057
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [eax + 4], 0
je 0x4c7e93
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
add eax, esi
cmp esi, eax
jbe 0x4c7ec8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [ebx + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov eax, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x20]
add esi, eax
cmp eax, esi
jbe 0x4c7ee5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 4]
test edi, edi
je 0x4c7ef0
cmp edi, eax
je 0x4c7ef6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x28], esi
je 0x4c8399
lea eax, [esp + 0x24]
call fcn.00413720
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
push ecx
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x4c7fdd
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
call fcn.00413720
mov esi, eax
mov edi, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
add esi, 0x10
add edx, edi
cmp edi, edx
jbe 0x4c7f44
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esi]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
mov edi, edi
lea eax, [esp + 0x24]
call fcn.00413720
mov edi, eax
mov eax, dword [edi + 0x28]
mov esi, dword [edi + 0x2c]
add esi, eax
cmp eax, esi
jbe 0x4c7f6d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [edi + 0x10]
test ebx, ebx
je 0x4c7f78
cmp ebx, edi
je 0x4c7f7e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x20], esi
je 0x4c7fd6
lea eax, [esp + 0x1c]
call fcn.00413720
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
push ecx
lea ecx, [eax + 4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x4c800c
mov esi, 1
add dword [esp + 0x10], esi
test ebx, ebx
jne 0x4c7fd0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
cmp dword [esp + 0x20], ecx
jb 0x4c7fca
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add dword [esp + 0x20], esi
jmp 0x4c7f50
mov eax, dword [ebx]
mov ecx, eax
jmp 0x4c7fb8
mov ebx, dword [ebp + 8]
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4c8006
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
xor ecx, ecx
mov edx, dword [ecx + 0x1c]
add edx, dword [eax + 0x18]
cmp dword [esp + 0x28], edx
jb 0x4c7ffd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
inc dword [esp + 0x28]
jmp 0x4c7ed3
mov eax, dword [edi]
mov ecx, eax
jmp 0x4c7feb
xor esi, esi
test dword [edi + 0x14], 0x20000000
mov dword [esp + 0x18], esi
je 0x4c8032
lea eax, [esp + 0x1c]
call fcn.00413720
mov ecx, dword [edi + 0x18]
mov dword [eax + 0x14], ecx
mov dword [esp + 0x18], 1
test dword [edi + 0x14], 0x40000000
je 0x4c804a
lea eax, [esp + 0x1c]
call fcn.00413720
mov edx, dword [edi + 0x20]
mov dword [eax + 0x24], edx
test dword [edi + 0x14], 0x2000000
je 0x4c8062
lea eax, [esp + 0x1c]
call fcn.00413720
mov ecx, dword [edi + 0x28]
mov dword [eax + 0x1c], ecx
test dword [edi + 0x14], 0x4000000
je 0x4c807a
lea eax, [esp + 0x1c]
call fcn.00413720
mov edx, dword [edi + 0x30]
mov dword [eax + 0x2c], edx
test dword [edi + 0x14], 0x8000000
je 0x4c8092
lea eax, [esp + 0x1c]
call fcn.00413720
mov ecx, dword [edi + 0x24]
mov dword [eax + 0x28], ecx
test dword [edi + 0x14], 0x10000000
mov ebx, dword [sym.imp.USER32.dll_SetMenuItemInfoW]
je 0x4c813a
lea eax, [esp + 0x1c]
call fcn.00413720
mov edx, dword [edi + 0xc]
push edx
mov ecx, eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea eax, [esp + 0x24]
call fcn.00413720
cmp dword [eax + 8], esi
je 0x4c813a
lea eax, [esp + 0x24]
call fcn.00413720
mov eax, dword [eax + 8]
cmp dword [eax + 4], esi
je 0x4c813a
push 0x2c
lea ecx, [esp + 0x34]
push esi
push ecx
call sub.MSVCR90.dll_memset
mov ecx, dword [edi + 0xc]
mov eax, ecx
mov dword [esp + 0x40], esi
add esp, 0xc
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x30], 0x40
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4c8105
sub eax, esi
sar eax, 1
mov dword [esp + 0x54], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x50], ecx
call fcn.00413720
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [eax + 4]
push 1
push ecx
push edx
call ebx
test dword [edi + 0x14], 0x80000000
je 0x4c820a
lea eax, [esp + 0x24]
call fcn.00413720
cmp dword [eax + 8], 0
je 0x4c81f5
push 0x2c
lea eax, [esp + 0x34]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [edi + 0x14]
movsx ecx, al
and ecx, 0x40
add ecx, ecx
add ecx, ecx
add ecx, ecx
add esp, 0xc
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x30], 0x11
mov dword [esp + 0x34], ecx
test al, 2
je 0x4c8197
or dword [esp + 0x38], 8
test al, 4
je 0x4c81a0
or dword [esp + 0x38], 3
test al, 0x20
je 0x4c81ac
or dword [esp + 0x38], 0x1000
lea eax, [esp + 0x1c]
call fcn.00413720
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x1c]
call fcn.00413720
mov ecx, dword [eax]
lea eax, [esp + 0x1c]
mov dword [esp + 0x50], ecx
call fcn.00413720
mov esi, eax
lea eax, [esp + 0x24]
call fcn.00413720
mov esi, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
lea edx, [esp + 0x2c]
push edx
push 0
push esi
push eax
call ebx
lea eax, [esp + 0x1c]
call fcn.00413720
mov ecx, dword [edi + 0x14]
and ecx, 0xfffff
mov dword [eax + 0xc], ecx
test dword [edi + 0x14], 0x1000000
je 0x4c8361
mov edx, dword [ebp + 8]
cmp dword [edx + 0x48], 0
je 0x4c824c
mov eax, dword [edi + 0x1c]
push eax
lea ecx, [esp + 0x18]
call dword [0x55a504]
mov dword [esp + 0x68], 0
lea eax, [esp + 0x1c]
call fcn.00413720
mov esi, eax
lea eax, [esp + 0x14]
call fcn.004b9d00
jmp 0x4c8276
mov ecx, dword [edi + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [0x55a504]
mov dword [esp + 0x68], 1
lea eax, [esp + 0x1c]
call fcn.00413720
mov esi, eax
lea eax, [esp + 0x14]
call fcn.004b9cb0
mov dword [esi + 0x18], eax
or esi, 0xffffffff
mov dword [esp + 0x68], esi
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [esp + 0x24]
call fcn.00413720
cmp dword [eax + 8], 0
je 0x4c8361
mov edx, dword [ebp + 8]
cmp dword [edx + 0x48], 0
je 0x4c82f5
push 0x2c
lea eax, [esp + 0x34]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x30], 0x80
call fcn.00413720
mov ecx, dword [eax + 0x18]
lea eax, [esp + 0x24]
mov dword [esp + 0x58], ecx
call fcn.00413720
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
mov edx, dword [eax + 8]
mov eax, dword [edx + 4]
push 1
push ecx
push eax
jmp 0x4c835f
lea eax, [esp + 0x1c]
call fcn.00413720
cmp dword [eax + 0x18], 0
je 0x4c8361
push 0x2c
lea ecx, [esp + 0x34]
push 0
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x30], 0xa0
call fcn.00413720
mov edx, dword [eax + 0x18]
lea eax, [esp + 0x1c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], esi
call fcn.00413720
mov esi, eax
lea eax, [esp + 0x24]
call fcn.00413720
mov edx, dword [esi + 0x10]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [eax + 4]
push 0
push edx
push ecx
call ebx
lea eax, [esp + 0x24]
call fcn.00413720
mov esi, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.004c6fc0
cmp dword [esp + 0x18], 0
je 0x4c8382
push esi
call fcn.004c77e0
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8