Function at 0x424a10
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x496684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x404], 0
call fcn.004316d0
add esp, 0xc
test esi, esi
je 0x424a5c
push esi
lea ecx, [ebp - 0x404]
push 0x47c6c8
push ecx
call fcn.0042d78e
jmp 0x424ab7
push 0x400
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424a80
sub eax, edx
push eax
mov dl, 0x5c
lea ecx, [ebp - 0x404]
call fcn.004249f0
add esp, 4
test eax, eax
je 0x424aa1
mov byte [eax], 0
push 0x47c6bc
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004312ef
lea eax, [ebp - 0x404]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424ac3
push 0
sub eax, edx
push 0
push str.path
mov ecx, str.SOFTWAREApple_Computer__Inc.iPodRegisteredApps4
mov dword [ebp - 0x808], eax
call fcn.00424980
mov ebx, eax
add esp, 0xc
test ebx, ebx
jg 0x424b46
push 0x47c674
lea ecx, [ebp - 0x404]
push ecx
push str._s_s
lea edx, [ebp - 0x804]
push 0x400
push edx
xor ebx, ebx
call fcn.0042d812
lea eax, [ebp - 0x804]
push 0x48873c
push eax
call fcn.0042d99d
add esp, 0x1c
test eax, eax
jne 0x424b3d
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
push eax
call fcn.0042dc88
add esp, 4
push 0
push 0
push 0x47c660
mov ecx, 0x47c630
call fcn.00424980
add esp, 0xc
mov dword [ebp - 0x80c], eax
test eax, eax
jle 0x424b2a
push edi
push 0
push 0
push 0x47c660
mov ecx, 0x47c600
call fcn.00424980
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x814], edi
test edi, edi
jg 0x424b9d
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edx, dword [ebp - 0x808]
mov esi, eax
lea ecx, [esi + edi]
add ecx, dword [ebp - 0x80c]
add ecx, ebx
lea eax, [ecx + edx + 0x16]
push eax
mov dword [ebp - 0x810], eax
call fcn.0042d673
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x810]
push eax
push edi
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 0x808]
push ecx
lea edx, [ebp - 0x404]
push edx
lea eax, [edi + esi]
push eax
mov byte [edi + esi - 1], 0x3b
call fcn.00431360
add esi, dword [ebp - 0x808]
mov ecx, dword [ebp - 0x80c]
push ecx
lea edx, [edi + esi + 1]
push edx
push 0x47c660
mov ecx, 0x47c630
mov byte [edi + esi], 0x3b
call fcn.00424980
add esi, eax
mov eax, dword [ebp - 0x814]
push eax
lea ecx, [edi + esi + 1]
push ecx
push 0x47c660
mov ecx, 0x47c600
mov byte [edi + esi], 0x3b
call fcn.00424980
add esi, eax
mov byte [edi + esi], 0x3b
add esp, 0x24
inc esi
test ebx, ebx
jle 0x424c75
push ebx
lea edx, [edi + esi]
push edx
push str.path
mov ecx, str.SOFTWAREApple_Computer__Inc.iPodRegisteredApps4
call fcn.00424980
add esp, 0xc
add esi, eax
mov byte [edi + esi - 0xb], 0
push edi
push str.PATH
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push edi
call fcn.0042efdd
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0042ca72
mov esp, ebp
pop ebp
ret