Function at 0x506cc0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x549199
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x558], eax
push ebx
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x570]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [esi + 8]
mov edi, ecx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], esi
call dword [0x55a504]
mov dword [esp + 0x578], 0
push edi
lea ebx, [esp + 0x14]
call fcn.005076c0
mov ebx, eax
mov dword [esp + 0x578], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
test ebx, ebx
je 0x506d51
xor eax, eax
jmp 0x506f35
lea ecx, [esp + 0x1c]
push ecx
call fcn.00506f60
mov dword [esp + 0x578], 1
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x1c]
and edx, 0xffffff
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], edx
mov byte [esp + 0x4c], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov ecx, dword [edi + 0x24]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x40], ecx
xor ebx, ebx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], ebx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x28]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x194], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x3c]
push edi
lea edi, [esp + 0x20]
lea esi, [esp + 0x1b0]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x19c], ebx
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x1a4], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call fcn.00507380
mov esi, dword [esp + 0x18]
test dword [esi + 4], 0x10000000
mov edi, dword [sym.imp.MSVCR90.dll_wcsncpy]
je 0x506e45
mov ecx, dword [esi + 0xc]
push ecx
lea ecx, [esp + 0x30]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov edx, dword [esi + 0xc]
push 0x80
push edx
lea eax, [esp + 0x1cc]
push eax
call edi
add esp, 0xc
or dword [esp + 0x1b8], 4
test dword [esi + 4], 0x20000000
je 0x506e5c
mov ecx, dword [esi + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
mov eax, dword [esi + 4]
test eax, 0x1000000
je 0x506e6d
mov edx, dword [esi + 0x20]
mov dword [esp + 0x44], edx
test eax, 0x40000000
je 0x506e93
lea eax, [esp + 0x1c]
call fcn.004b9cb0
or dword [esp + 0x1b8], 2
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1a4], eax
test dword [esi + 4], 0x80000000
je 0x506ed8
mov eax, dword [esi + 0x14]
push 0x40
push eax
lea ecx, [esp + 0x4d8]
push ecx
call edi
mov edx, dword [esi + 0x10]
add esp, 0xc
push 0x100
push edx
lea eax, [esp + 0x2d4]
push eax
call edi
add esp, 0xc
or dword [esp + 0x1b8], 0x10
mov dword [esp + 0x550], 4
mov edx, dword [esp + 0x1b4]
mov ecx, dword [esp + 0x1b0]
mov edi, 1
or dword [esp + 0x1b8], edi
lea eax, [esp + 0x58]
call fcn.0051c170
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esi + 4]
call fcn.00507cb0
lea edx, [esp + 0x1ac]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
add dword [esi + 0x24], edi
mov dword [esp + 0x578], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.00507000
mov eax, edi
mov ecx, dword [esp + 0x570]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x558]
xor ecx, esp
call fcn.00532776
mov esp, ebp
pop ebp
ret