Function at 0x100adcda
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x14], 0
jne 0x100adcf7
xor eax, eax
jmp 0x100ae04a
cmp dword [ebp + 8], 0
je 0x100add4e
push 0x101509bc
call sub.MSVCR70D.dll_getenv
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100add4e
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x134]
push ecx
call sub.MSVCR70D.dll_strcpy
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0x101509c0
push 0x101509c4
push 0x1017d1d8
call sub.MSVCR70D.dll_sprintf
add esp, 0x10
push 0x1017d1d8
call fcn.10083e64
add esp, 4
mov dword [ebp - 8], 0
jmp 0x100add60
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x400
jge 0x100ae001
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100f72c4
add esp, 8
mov dword [ebp - 4], eax
push 0x2f
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR70D.dll_strrchr
add esp, 8
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jne 0x100addb1
push 0x5c
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR70D.dll_strrchr
add esp, 8
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jne 0x100addc5
mov edx, dword [ebp - 4]
mov dword [ebp - 0x140], edx
jmp 0x100addd4
mov eax, dword [ebp - 0x140]
add eax, 1
mov dword [ebp - 0x140], eax
cmp dword [ebp + 0xc], 0
je 0x100addf4
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR70D.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x140]
add edx, eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], 0
mov eax, dword [ebp - 0x140]
push eax
call sub.MSVCR70D.dll_strlen
add esp, 4
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], 0
jmp 0x100ade2e
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
cmp edx, dword [ebp - 0x138]
jge 0x100adefa
mov eax, dword [ebp - 0x140]
add eax, dword [ebp - 0x13c]
movsx ecx, byte [eax]
push ecx
call fcn.100dc3ce
add esp, 4
test eax, eax
jne 0x100ade77
mov edx, dword [ebp - 0x140]
add edx, dword [ebp - 0x13c]
mov byte [edx], 0x5f
mov dword [ebp - 0x144], 1
jmp 0x100adef5
cmp dword [0x1015b1a0], 1
jle 0x100adea2
push 1
mov eax, dword [ebp - 0x140]
add eax, dword [ebp - 0x13c]
movsx ecx, byte [eax]
push ecx
call sub.MSVCR70D.dll__isctype
add esp, 8
mov dword [ebp - 0x154], eax
jmp 0x100adec6
mov edx, dword [ebp - 0x140]
add edx, dword [ebp - 0x13c]
movsx eax, byte [edx]
mov ecx, dword [str.________________________________H]
xor edx, edx
mov dx, word [ecx + eax*2]
and edx, 1
mov dword [ebp - 0x154], edx
cmp dword [ebp - 0x154], 0
je 0x100adef5
mov eax, dword [ebp - 0x140]
add eax, dword [ebp - 0x13c]
movsx ecx, byte [eax]
push ecx
call sub.MSVCR70D.dll_tolower
add esp, 4
mov edx, dword [ebp - 0x140]
add edx, dword [ebp - 0x13c]
mov byte [edx], al
jmp 0x100ade1f
cmp dword [ebp + 0x10], 0
je 0x100adfc0
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x100adfc0
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x14c]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x148]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x14c]
add eax, 1
mov dword [ebp - 0x14c], eax
test edx, edx
je 0x100adf61
mov ecx, dword [ebp - 0x148]
add ecx, 1
mov dword [ebp - 0x148], ecx
jmp 0x100adf24
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x150], edx
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x150]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x148]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x150]
add edx, 1
mov dword [ebp - 0x150], edx
test ecx, ecx
je 0x100adfa7
mov eax, dword [ebp - 0x148]
add eax, 1
mov dword [ebp - 0x148], eax
jmp 0x100adf6a
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call sub.MSVCR70D.dll__stat
add esp, 8
cmp eax, 0xffffffff
jne 0x100adfbe
jmp 0x100ae001
jmp 0x100adff0
cmp dword [ebp - 0x144], 0
je 0x100adfde
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR70D.dll__stat
add esp, 8
cmp eax, 0xffffffff
jne 0x100adff0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x14]
push eax
call sub.MSVCR70D.dll_strcpy
add esp, 8
jmp 0x100ae001
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCR70D.dll_free
add esp, 4
jmp 0x100add57
cmp dword [ebp - 0xc], 0
je 0x100ae032
lea edx, [ebp - 0x134]
push edx
push 0x101509cc
push 0x101509d0
push 0x1017d1d8
call sub.MSVCR70D.dll_sprintf
add esp, 0x10
push 0x1017d1d8
call fcn.10083e64
add esp, 4
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR70D.dll_free
add esp, 4
xor eax, eax
cmp dword [ebp - 8], 0x400
setl al
mov esp, ebp
pop ebp
ret