Function at 0x4a8bb4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x20]
mov edi, 0x1f4
push eax
mov ecx, edi
xor ebx, ebx
call fcn.004a9a0e
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.004a9a0e
lea ecx, [ebp - 0x4c]
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_void_]
test esi, esi
je 0x4a8ed7
mov ebx, dword [sym.imp.MSVCR80.dll_wcslen]
push esi
call ebx
pop ecx
lea eax, [esi + eax*2]
push 0x25
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
push esi
jmp 0x4a8ddd
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.004077c6
push eax
call ebx
mov edi, dword [ebp - 0x1c]
test edi, edi
mov edx, dword [ebp - 0x18]
pop ecx
jne 0x4a8c24
xor ecx, ecx
jmp 0x4a8c2a
mov ecx, edx
sub ecx, edi
sar ecx, 1
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
sub ecx, eax
sar esi, 1
dec ecx
cmp ecx, esi
jae 0x4a8c51
test edi, edi
jne 0x4a8c41
xor edx, edx
jmp 0x4a8c45
sub edx, edi
sar edx, 1
lea eax, [esi + edx + 1]
lea ecx, [ebp - 0x20]
call fcn.004a970f
lea eax, [ebp - 0x20]
call fcn.004a96f3
test al, al
jne 0x4a8c75
push esi
push dword [ebp - 8]
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.004077c6
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat]
add esp, 0xc
mov edi, dword [ebp - 0xc]
lea eax, [edi + 2]
push 0x25
push eax
call dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4a8e0c
inc esi
inc esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 8], esi
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__::clear_void_]
push esi
push edi
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const___wchar_t_const__]
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.004a8ef9
test eax, eax
jne 0x4a8d4f
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.004a934b
test eax, eax
jne 0x4a8d4f
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.004a906a
test eax, eax
jne 0x4a8d4f
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.004a91da
test eax, eax
jne 0x4a8d4f
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.004077c6
push eax
call ebx
mov esi, dword [ebp - 0x1c]
test esi, esi
mov edx, dword [ebp - 0x18]
pop ecx
jne 0x4a8d09
xor ecx, ecx
jmp 0x4a8d0f
mov ecx, edx
sub ecx, esi
sar ecx, 1
sub ecx, eax
mov eax, dword [ebp - 0x38]
dec ecx
cmp ecx, eax
jae 0x4a8d31
test esi, esi
jne 0x4a8d21
xor edx, edx
jmp 0x4a8d25
sub edx, esi
sar edx, 1
lea eax, [edx + eax + 1]
lea ecx, [ebp - 0x20]
call fcn.004a970f
lea eax, [ebp - 0x20]
call fcn.004a96f3
test al, al
jne 0x4a8dd8
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4a8dc4
lea eax, [ebp - 0x48]
jmp 0x4a8dc4
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.004077c6
push eax
call ebx
pop ecx
lea esi, [ebp - 0x20]
mov dword [ebp - 0xc], eax
call fcn.004077c6
push eax
call ebx
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
pop ecx
mov ecx, dword [ebp - 0xc]
add ecx, eax
test esi, esi
jne 0x4a8d7f
xor eax, eax
jmp 0x4a8d85
mov eax, edx
sub eax, esi
sar eax, 1
dec eax
cmp eax, ecx
jae 0x4a8da2
test esi, esi
jne 0x4a8d92
xor edx, edx
jmp 0x4a8d96
sub edx, esi
sar edx, 1
lea eax, [edx + ecx + 1]
lea ecx, [ebp - 0x20]
call fcn.004a970f
lea eax, [ebp - 0x20]
call fcn.004a96f3
test al, al
jne 0x4a8dd8
lea eax, [ebp - 0x30]
call fcn.004a96f3
test al, al
jne 0x4a8dd8
xor edi, edi
lea esi, [ebp - 0x30]
call fcn.004077c6
push eax
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.004077c6
push eax
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
push 0x25
push dword [ebp - 8]
call dword [sym.imp.MSVCR80.dll_wcschr]
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
jne 0x4a8c08
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.004077c6
push eax
call ebx
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
mov esi, dword [ebp - 0x18]
pop ecx
jne 0x4a8e69
xor ecx, ecx
jmp 0x4a8e6f
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.004077c6
push eax
call ebx
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
mov esi, dword [ebp - 0x18]
pop ecx
jne 0x4a8e28
xor ecx, ecx
jmp 0x4a8e2e
mov ecx, esi
sub ecx, ebx
sar ecx, 1
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0xc]
sub ecx, eax
mov edi, edx
sar edi, 1
dec ecx
cmp ecx, edi
jae 0x4a8e57
test ebx, ebx
jne 0x4a8e47
xor esi, esi
jmp 0x4a8e4b
sub esi, ebx
sar esi, 1
lea eax, [edi + esi + 1]
lea ecx, [ebp - 0x20]
call fcn.004a970f
lea eax, [ebp - 0x20]
call fcn.004a96f3
test al, al
jne 0x4a8ebc
push edi
push dword [ebp - 0xc]
jmp 0x4a8ea8
mov ecx, esi
sub ecx, ebx
sar ecx, 1
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 8]
sub ecx, eax
mov edi, edx
sar edi, 1
dec ecx
cmp ecx, edi
jae 0x4a8e98
test ebx, ebx
jne 0x4a8e88
xor esi, esi
jmp 0x4a8e8c
sub esi, ebx
sar esi, 1
lea eax, [edi + esi + 1]
lea ecx, [ebp - 0x20]
call fcn.004a970f
lea eax, [ebp - 0x20]
call fcn.004a96f3
test al, al
jne 0x4a8ebc
push edi
push dword [ebp - 8]
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.004077c6
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat]
add esp, 0xc
push 0x103
push dword [ebp + 8]
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.004077c6
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
lea ecx, [ebp - 0x4c]
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 esi, [ebp - 0x30]
call fcn.00408fb0
lea esi, [ebp - 0x20]
call fcn.00408fb0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4