Function at 0x1c4e700
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov esi, dword [ebp + 8]
mov eax, dword [0x1d18014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x218]
lea edi, [ebp - 0x216]
push 0x206
push 0xff
push edi
call fcn.01c9f2d0
add esp, 0xc
mov word [edi - 2], 0
push 0x104
push ebx
push 0x1d08c78
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1c4e794
mov edi, eax
sub edi, 1
jb 0x1c4e794
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov eax, edi
je 0x1c4e75c
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1c4e778
mov eax, dword [esi]
lea ebx, [edi + 1]
push ebx
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.01cb2715
add esp, 0xc
test eax, eax
je 0x1c4e873
mov word [ebp - 0x218], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1c4e7f9
mov edi, eax
sub edi, 1
jb 0x1c4e7f9
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov eax, edi
je 0x1c4e7c1
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1c4e7dd
mov eax, dword [esi]
lea ebx, [edi + 1]
push ebx
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.01cb2715
add esp, 0xc
test eax, eax
je 0x1c4e886
mov word [ebp - 0x218], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.PROGRAMW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1c4e85a
mov edi, eax
sub edi, 1
jb 0x1c4e85a
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov eax, edi
je 0x1c4e826
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x1c4e842
mov eax, dword [esi]
lea ebx, [edi + 1]
push ebx
lea ecx, [ebp - 0x218]
push ecx
push eax
call fcn.01cb2715
add esp, 0xc
test eax, eax
je 0x1c4e899
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c9ca53
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [esi + 0xb]
test al, al
mov dword [ebp - 0x21c], ebx
jns 0x1c4e8ac
mov ecx, dword [esi + 4]
jmp 0x1c4e8b1
movzx eax, byte [esi + 0xb]
test al, al
mov dword [ebp - 0x21c], ebx
jns 0x1c4e8da
mov ecx, dword [esi + 4]
jmp 0x1c4e8df
movzx eax, byte [esi + 0xb]
test al, al
mov dword [ebp - 0x21c], ebx
jns 0x1c4e90f
mov ecx, dword [esi + 4]
jmp 0x1c4e914
mov ecx, eax
and ecx, 0x7f
mov edx, edi
sub edx, ecx
mov bl, 1
cmp edx, 0xffffffff
je 0x1c4e85c
cmp ecx, dword [ebp - 0x21c]
jb 0x1c4e942
mov ecx, esi
test al, al
jns 0x1c4e8cc
mov ecx, dword [esi]
cmp word [ecx + edi*2 + 2], 0x5c
jne 0x1c4e794
jmp 0x1c4e85c
mov ecx, eax
and ecx, 0x7f
mov edx, edi
sub edx, ecx
mov bl, 1
cmp edx, 0xffffffff
je 0x1c4e85c
cmp ecx, dword [ebp - 0x21c]
jb 0x1c4e942
mov ecx, esi
test al, al
jns 0x1c4e8fe
mov ecx, dword [esi]
cmp word [ecx + edi*2 + 2], 0x5c
jne 0x1c4e7f9
jmp 0x1c4e85c
mov ecx, eax
and ecx, 0x7f
mov edx, edi
sub edx, ecx
mov bl, 1
cmp edx, 0xffffffff
je 0x1c4e85c
cmp ecx, dword [ebp - 0x21c]
jb 0x1c4e942
test al, al
jns 0x1c4e931
mov esi, dword [esi]
cmp word [esi + edi*2 + 2], 0x5c
jne 0x1c4e85a
jmp 0x1c4e85c
push str.string_index_out_of_bounds
push str.__pos___size__
push 0xd4e
push str....._buildtools_third_partylibc_trunkinclude_string
push str._s:_d:_assertion__s_failed:__s
call fcn.01ccb1e0