Function at 0x4d69c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5000ef
push eax
mov dword fs:[0], esp
sub esp, 0x278
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
je 0x4d69f4
mov ecx, esi
call fcn.004d3bc0
lea eax, [esi + 0xd4]
push eax
lea ecx, [esp + 0x20]
call fcn.00447b00
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x28c], 0
mov dword [esp + 0x10], ecx
jmp 0x4d6a20
mov edx, dword [esi + 0xc]
lea edi, [esi + 8]
cmp edi, edi
mov dword [esp + 0x18], edx
je 0x4d6a34
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
je 0x4d6adc
cmp eax, dword [edi + 4]
jne 0x4d6a4d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x10]
add esi, 8
mov ecx, 0x85
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x278], 0
jne 0x4d6ab9
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x34]
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__::constructor_wchar_t_const__]
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x30]
push ecx
push edx
push esi
mov ecx, ebx
mov byte [esp + 0x298], 1
call fcn.00401220
push 1
mov ecx, ebx
mov edi, eax
call fcn.004012c0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x30]
mov dword [eax], edi
mov byte [esp + 0x28c], 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 eax, dword [ebp + 8]
mov esi, dword [esp + 0x10]
add eax, 8
cmp esi, dword [eax + 4]
jne 0x4d6ace
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], eax
jmp 0x4d6a20
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.004cf260
mov eax, dword [esi + 0x18]
mov edi, dword [eax]
mov byte [esp + 0x28c], 2
mov dword [esp + 0x10], edi
lea esp, [esp]
mov edx, dword [esi + 0x18]
add esi, 0x14
cmp esi, esi
mov dword [esp + 0x2c], edx
je 0x4d6b14
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [esp + 0x2c]
je 0x4d6c7e
cmp edi, dword [esi + 4]
jne 0x4d6b29
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea esi, [edi + 8]
mov ecx, 0x85
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x278], 0
jne 0x4d6c59
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov eax, dword [edx + 4]
mov esi, dword [esp + 0x68]
add ecx, 0x20
cmp byte [eax + 0x225], 0
jne 0x4d6b77
mov edi, edi
cmp dword [eax + 0xc], esi
jae 0x4d6b6a
mov eax, dword [eax + 8]
jmp 0x4d6b6e
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0x225], 0
je 0x4d6b60
mov eax, dword [ecx + 4]
cmp edx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
je 0x4d6b91
cmp esi, dword [edx + 0xc]
jb 0x4d6b91
lea eax, [esp + 0x20]
jmp 0x4d6b9d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x14]
mov edx, dword [eax]
test edx, edx
mov esi, dword [eax + 4]
mov edi, dword [ecx + 4]
je 0x4d6bad
cmp edx, ecx
je 0x4d6bb3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
jne 0x4d6c59
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x10]
add eax, 0x14
cmp esi, dword [eax + 4]
jne 0x4d6bd0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push 0x103
lea eax, [esp + 0x70]
push eax
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 0x4c]
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 ecx, [esp + 0x74]
push 0x103
push ecx
mov edx, ecx
push edx
call fcn.00443e10
add esp, 0x14
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x34]
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__::constructor_wchar_t_const__]
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x30]
push ecx
push edx
push esi
mov ecx, ebx
mov byte [esp + 0x298], 3
call fcn.00401220
push 1
mov ecx, ebx
mov edi, eax
call fcn.004012c0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x30]
mov dword [eax], edi
mov byte [esp + 0x28c], 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_]
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x10]
add eax, 0x14
cmp esi, dword [eax + 4]
jne 0x4d6c6e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov edi, eax
jmp 0x4d6b00
lea ecx, [esp + 0x4c]
mov byte [esp + 0x28c], 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_]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28c], 0xffffffff
call fcn.00447b20
mov ecx, dword [esp + 0x284]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc