Function at 0x4d4010
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4fff0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [edi + 0xd4]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edi
call fcn.00447b00
mov esi, dword [esp + 0x2b0]
push 0
push 0
push 0
mov ecx, esi
mov dword [esp + 0x2b4], 0
call fcn.004e9830
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x14], esp
mov dword [eax], str.safebox_config
call fcn.004ebd30
test al, al
jne 0x4d4097
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.00447b20
xor eax, eax
jmp 0x4d42d5
mov ecx, esi
call fcn.004eb230
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x14], esp
mov dword [eax], str.safebox_acls
call fcn.004ebd30
test al, al
je 0x4d42bc
mov ecx, esi
call fcn.004eb230
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x14], esp
mov dword [eax], str.acl_rule
call fcn.004ebd30
test al, al
je 0x4d42b5
push ecx
mov eax, esp
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], esp
push ecx
mov ecx, esi
mov dword [eax], 0x529478
call fcn.00402ab0
push ecx
mov eax, esp
lea edx, [esp + 0x20]
mov dword [esp + 0x14], esp
push edx
mov ecx, esi
mov byte [esp + 0x2b0], 1
mov dword [eax], str.file
call fcn.00402ab0
push ecx
mov eax, esp
mov dword [eax], str.action
lea eax, [esp + 0x3c]
mov dword [esp + 0x14], esp
push eax
mov ecx, esi
mov byte [esp + 0x2b0], 2
call fcn.00402ab0
push ecx
mov eax, esp
lea ecx, [esp + 0x74]
mov dword [esp + 0x14], esp
push ecx
mov ecx, esi
mov byte [esp + 0x2b0], 3
mov dword [eax], str.log_event
call fcn.00402ab0
push 0x214
lea edx, [esp + 0x90]
push 0
push edx
mov byte [esp + 0x2b4], 4
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea eax, [esp + 0x98]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov ebx, dword [sym.imp.MSVCR80.dll__wtoi]
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x29c], eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call ebx
lea ecx, [esp + 0x74]
push 0x5294c4
push ecx
mov dword [esp + 0x98], eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0xc
neg al
push 0x103
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x24]
sbb eax, eax
neg eax
mov dword [esp + 0x2a0], eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [edi + 0xf0]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push str.MODULEDIR
lea eax, [esp + 0x98]
push 0x103
push eax
mov ecx, eax
push ecx
call fcn.00443e10
mov ebp, dword [edi + 0x18]
mov eax, dword [ebp + 4]
add esp, 0x14
add edi, 0x14
lea edx, [esp + 0x8c]
push edx
push eax
push ebp
mov ecx, edi
call fcn.004cfa10
push 1
mov ecx, edi
mov ebx, eax
call fcn.004cfa50
mov dword [ebp + 4], ebx
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x70]
mov dword [eax], ebx
mov byte [esp + 0x2a8], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x38]
mov byte [esp + 0x2a8], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x2a8], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edi, dword [esp + 0x18]
jmp 0x4d40c1
mov ecx, esi
call fcn.004eb250
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.00447b20
mov eax, 1
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x29c
ret 4