Function at 0x40bf82
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x415ccf
call fcn.00414060
sub esp, 0x98
mov eax, dword [0x422a68]
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [edi + 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x4c], ebx
jne 0x40bfb7
mov ecx, dword [ebp + 8]
push edi
call fcn.00401452
jmp 0x40c177
push esi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.004010b5
xor esi, esi
cmp dword [edi + 0x14], ebx
mov dword [ebp - 4], ebx
jbe 0x40c15f
mov dword [ebp + 0xc], esi
jmp 0x40bfe9
push esi
mov ecx, edi
call fcn.004071eb
cmp byte [eax], 0x24
je 0x40bfee
inc esi
cmp esi, dword [edi + 0x14]
jb 0x40bfdb
mov eax, dword [edi + 0x14]
dec eax
cmp esi, eax
mov ecx, edi
jae 0x40c124
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x4c], eax
call fcn.004071eb
cmp byte [eax], 0x7b
mov ecx, edi
jne 0x40c0f4
mov eax, esi
sub eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040480c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00404b51
push ebx
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.004010eb
inc esi
inc esi
mov dword [ebp + 0xc], esi
jmp 0x40c058
push esi
mov ecx, edi
call fcn.004071eb
cmp byte [eax], 0x7d
je 0x40c05d
inc esi
cmp esi, dword [edi + 0x14]
jb 0x40c04a
cmp esi, dword [edi + 0x14]
je 0x40c190
mov eax, esi
sub eax, dword [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
call fcn.0040480c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x422d64
mov byte [ebp - 4], 2
call fcn.0040dd13
mov eax, dword [eax]
cmp eax, dword [0x422d68]
jne 0x40c0df
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x40c0a6
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.MSVCR71.dll_getenv]
cmp eax, ebx
pop ecx
je 0x40c0bd
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408f8e
jmp 0x40c0ee
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x40c0c9
lea eax, [ebp - 0x44]
push dword [0x422d5c]
push eax
push str.Undefined_symbol__s_at_line__d___substituting____n
call fcn.0041100f
add esp, 0xc
jmp 0x40c0ee
push 0xffffffffffffffff
add eax, 0x28
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404b51
inc esi
lea ecx, [ebp - 0x48]
jmp 0x40c14b
mov esi, dword [ebp - 0x4c]
mov eax, esi
sub eax, dword [ebp + 0xc]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.0040480c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00404b51
lea ecx, [ebp - 0x88]
jmp 0x40c14b
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea eax, [ebp - 0xa4]
push eax
call fcn.0040480c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00404b51
lea ecx, [ebp - 0xa4]
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.004010eb
cmp esi, dword [edi + 0x14]
jb 0x40bfd6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401452
push ebx
lea ecx, [ebp - 0x2c]
push 1
call fcn.004010eb
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00414165
leave
ret
push 0x7d
push dword [0x422d5c]
push str.Syntax_error_at_line__d:__c_expected_n
call fcn.0041100f
mov ecx, dword [ebp + 8]
add esp, 0xc
push 0x41a33e
call fcn.004014ff
jmp 0x40c16b