Function at 0x4d42f0
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4fff4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x474
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xd4]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.00447b00
mov ebx, dword [esp + 0x494]
push 0
push 0
push 0
mov ecx, ebx
mov dword [esp + 0x498], 0
call fcn.004e9830
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x14], esp
mov dword [eax], str.safebox_config
call fcn.004ebd30
test al, al
jne 0x4d4377
lea ecx, [esp + 0x14]
mov dword [esp + 0x48c], 0xffffffff
call fcn.00447b20
xor eax, eax
jmp 0x4d4549
mov ecx, ebx
call fcn.004eb230
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x14], esp
mov dword [eax], str.safebox_acls
call fcn.004ebd30
test al, al
je 0x4d4530
mov ecx, ebx
call fcn.004eb230
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x14], esp
mov dword [eax], str.acl_filter
call fcn.004ebd30
test al, al
je 0x4d4529
push ecx
mov eax, esp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], esp
push ecx
mov ecx, ebx
mov dword [eax], str.file
call fcn.00402ab0
push ecx
mov eax, esp
lea edx, [esp + 0x58]
mov dword [esp + 0x14], esp
push edx
mov ecx, ebx
mov byte [esp + 0x494], 1
mov dword [eax], 0x5295e4
call fcn.00402ab0
push ecx
mov eax, esp
mov dword [eax], str.action
lea eax, [esp + 0x20]
mov dword [esp + 0x14], esp
push eax
mov ecx, ebx
mov byte [esp + 0x494], 2
call fcn.00402ab0
push 0x414
lea ecx, [esp + 0x74]
push 0
push ecx
mov byte [esp + 0x498], 3
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea edx, [esp + 0x27c]
push edx
lea ecx, [esp + 0x40]
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, [esi + 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 + 0x280]
push 0x103
push eax
mov ecx, eax
push ecx
call fcn.00443e10
add esp, 0x14
lea ecx, [esp + 0x1c]
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.MSVCR80.dll__wtoi]
add esp, 4
push 0x103
lea ecx, [esp + 0x58]
mov dword [esp + 0x484], 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
lea edx, [esp + 0x78]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
mov edi, dword [esi + 0x9c]
mov ecx, dword [edi + 4]
add esi, 0x98
add esp, 0x10
lea eax, [esp + 0x70]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004cbcb0
mov ebp, eax
push 1
mov ecx, esi
call fcn.004cfe70
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x1c]
mov dword [eax], ebp
mov byte [esp + 0x48c], 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 + 0x54]
mov byte [esp + 0x48c], 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 + 0x38]
mov byte [esp + 0x48c], 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 esi, dword [esp + 0x18]
jmp 0x4d43a1
mov ecx, ebx
call fcn.004eb250
lea ecx, [esp + 0x14]
mov dword [esp + 0x48c], 0xffffffff
call fcn.00447b20
mov eax, 1
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x480
ret 4