Function at 0x406c15
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call fcn.00401046
mov esi, eax
mov edi, 0x400
push edi
push 0
lea ebx, [esi + 0x4bc]
push ebx
call fcn.00431a20
add esp, 0xc
lea ecx, [esi + 0x4030]
mov dword [ebp - 4], ecx
push 0x44f900
call fcn.0040219e
push edi
push ebx
mov ebx, 0x44dbd0
mov ecx, dword [ebp - 4]
push ebx
push dword [0x44050c]
push dword [0x440508]
call fcn.0040239d
lea eax, [esi + 0x4bc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x406cff
lea eax, [esi + 0x8bc]
push edi
push 0
push eax
call fcn.00431a20
add esp, 0xc
mov ecx, dword [ebp - 4]
push edi
lea edi, [esi + 0x8bc]
push edi
push ebx
push dword [0x440514]
push dword [0x440508]
call fcn.0040239d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
je 0x406cff
mov ecx, dword [ebp - 0xc]
call fcn.00407104
test al, al
je 0x406cff
push 2
lea eax, [ebp - 6]
push 0
push eax
call fcn.00431a20
add esp, 0xc
lea eax, [ebp - 6]
mov ecx, dword [ebp - 4]
push 2
push eax
push ebx
push dword [0x440518]
push dword [0x440508]
call fcn.0040239d
lea eax, [ebp - 6]
push eax
call edi
test eax, eax
jne 0x406d06
xor eax, eax
jmp 0x4070ff
xor eax, eax
mov dword [esi + 0xb8], eax
cmp dword [0x450be8], eax
jne 0x406d3b
cmp dword [0x450be4], eax
jne 0x406d3b
lea eax, [ebp - 6]
push 0x448260
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406d3b
mov dword [esi + 0xb8], 1
and byte [ebp - 0x214], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x213]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
mov ecx, dword [ebp - 4]
push eax
push ebx
push dword [0x44051c]
push dword [0x440520]
call fcn.0040239d
lea eax, [ebp - 0x214]
mov dword [esi + 0x10c0], 0x1f40
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x406da1
lea eax, [ebp - 0x214]
push eax
call fcn.00432541
pop ecx
mov dword [esi + 0x10c0], eax
and byte [ebp - 0x318], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x317]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x318]
mov edi, 0x44825c
mov ecx, dword [ebp - 4]
push eax
push edi
push dword [0x44052c]
push dword [0x440508]
call fcn.0040239d
lea eax, [ebp - 0x318]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push eax
call edi
test eax, eax
jne 0x406e10
cmp dword [0x450be8], eax
jne 0x406e07
cmp dword [0x450be4], eax
jne 0x406e07
mov dword [esi + 0x14], eax
jmp 0x406e29
mov dword [esi + 0x14], 1
jmp 0x406e29
lea eax, [ebp - 0x318]
push 0x448258
push eax
call edi
test eax, eax
je 0x406e07
mov dword [esi + 0x14], 2
and byte [ebp - 0x41c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
lea eax, [ebp - 0x41c]
push edi
mov ecx, dword [ebp - 4]
push eax
push 0x448260
push dword [0x440530]
push dword [0x440508]
call fcn.0040239d
lea eax, [ebp - 0x41c]
push 0x448260
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x406e82
mov byte [esi + 0x18], 1
jmp 0x406e86
and byte [esi + 0x18], 0
lea eax, [esi + 0x19]
push edi
mov ecx, dword [ebp - 4]
push eax
push ebx
push dword [0x440538]
push dword [0x440508]
call fcn.0040239d
lea eax, [esi + 0x4b]
push edi
mov ecx, dword [ebp - 4]
push eax
push ebx
push dword [0x440534]
push dword [0x440508]
call fcn.0040239d
lea eax, [esi + 0x7d]
push 0x32
push 0
push eax
call fcn.00431a20
add esp, 0xc
lea eax, [esi + 0x7d]
mov ecx, dword [ebp - 4]
push edi
push eax
push ebx
push dword [0x440540]
push dword [0x440508]
call fcn.0040239d
lea eax, [esi + 0x10c4]
push ebx
push eax
call fcn.00431a80
pop ecx
mov edi, 0x400
test eax, eax
pop ecx
jne 0x406f60
lea eax, [esi + 0x10c4]
push edi
mov ecx, dword [ebp - 4]
push eax
push ebx
push dword [0x440524]
push dword [0x440508]
call fcn.0040239d
push edi
call fcn.004311d7
pop ecx
mov dword [ebp - 0xc], eax
push edi
push eax
lea eax, [esi + 0x10c4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp - 0xc]
lea eax, [esi + 0x10c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi + 0x14cc], 5
je 0x406f60
lea eax, [esi + 0x10c4]
push 1
push eax
push 0x448254
mov ecx, esi
call fcn.00420755
cmp dword [esi + 0x14cc], 0
jne 0x406f91
lea eax, [ebp - 0x110]
push 0x104
mov ecx, dword [ebp - 4]
push eax
push 0
push dword [0x440528]
push dword [0x440508]
call fcn.004073eb
mov dword [esi + 0x14cc], eax
lea eax, [esi + 0x2518]
push edi
push 0
push eax
call fcn.00431a20
add esp, 0xc
lea eax, [esi + 0x2518]
mov ecx, dword [ebp - 4]
push edi
push eax
push ebx
push dword [0x44053c]
push dword [0x440508]
call fcn.0040239d
mov ecx, dword [ebp - 4]
lea edi, [esi + 0x2918]
push 0x104
push edi
push ebx
push str.DotNetVersion
push dword [0x440508]
call fcn.0040239d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x4070cb
push 3
push 0x448240
push edi
call fcn.004325e0
add esp, 0xc
test eax, eax
jne 0x40700d
mov byte [esi + 0x2b20], 1
jmp 0x40706d
push 3
push 0x44823c
push edi
call fcn.004325e0
add esp, 0xc
test eax, eax
jne 0x40702a
mov byte [esi + 0x2b21], 1
jmp 0x40706d
push 4
push str.v1.1
push edi
call fcn.004325e0
add esp, 0xc
test eax, eax
je 0x407021
push 3
push 0x448230
push edi
call fcn.004325e0
add esp, 0xc
test eax, eax
je 0x407066
push 4
push str.v2.0
push edi
call fcn.004325e0
add esp, 0xc
test eax, eax
jne 0x40706d
mov byte [esi + 0x2b22], 1
mov al, byte [0x44dbd0]
push 0x40
mov byte [ebp - 0x110], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x110]
push 0x104
push eax
push ebx
push str.DotNetSPRequired
push dword [0x440508]
call fcn.0040239d
cmp byte [ebp - 0x110], 0
je 0x4070cb
lea eax, [ebp - 0x110]
mov byte [esi + 0x2b23], 1
push eax
call fcn.004325cc
pop ecx
mov dword [esi + 0x2b24], eax
add esi, 0x302d
push 0x1001
push 0
push esi
call fcn.00431a20
add esp, 0xc
mov ecx, dword [ebp - 4]
push 0x1000
push esi
push ebx
push dword [0x440544]
push dword [0x440520]
call fcn.0040239d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret