Function at 0x406c30
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 + 0x4ac]
push ebx
call fcn.00426630
add esp, 0xc
lea ecx, [esi + 0x4020]
mov dword [ebp - 4], ecx
push 0x441e50
call fcn.00402145
push edi
push ebx
mov ebx, 0x440140
mov ecx, dword [ebp - 4]
push ebx
push dword [0x4344ec]
push dword [0x4344e8]
call fcn.00402344
lea eax, [esi + 0x4ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x406d1a
lea eax, [esi + 0x8ac]
push edi
push 0
push eax
call fcn.00426630
add esp, 0xc
mov ecx, dword [ebp - 4]
push edi
lea edi, [esi + 0x8ac]
push edi
push ebx
push dword [0x4344f4]
push dword [0x4344e8]
call fcn.00402344
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
je 0x406d1a
mov ecx, dword [ebp - 0xc]
call fcn.0040711f
test al, al
je 0x406d1a
push 2
lea eax, [ebp - 6]
push 0
push eax
call fcn.00426630
add esp, 0xc
lea eax, [ebp - 6]
mov ecx, dword [ebp - 4]
push 2
push eax
push ebx
push dword [0x4344f8]
push dword [0x4344e8]
call fcn.00402344
lea eax, [ebp - 6]
push eax
call edi
test eax, eax
jne 0x406d21
xor eax, eax
jmp 0x40711a
xor eax, eax
mov dword [esi + 0xa8], eax
cmp dword [0x44312c], eax
jne 0x406d56
cmp dword [0x443128], eax
jne 0x406d56
lea eax, [ebp - 6]
push 0x43b250
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406d56
mov dword [esi + 0xa8], 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 [0x4344fc]
push dword [0x434500]
call fcn.00402344
lea eax, [ebp - 0x214]
mov dword [esi + 0x10b0], 0x1f40
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x406dbc
lea eax, [ebp - 0x214]
push eax
call fcn.00427151
pop ecx
mov dword [esi + 0x10b0], 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, 0x43b24c
mov ecx, dword [ebp - 4]
push eax
push edi
push dword [0x43450c]
push dword [0x4344e8]
call fcn.00402344
lea eax, [ebp - 0x318]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push eax
call edi
test eax, eax
jne 0x406e2b
cmp dword [0x44312c], eax
jne 0x406e22
cmp dword [0x443128], eax
jne 0x406e22
mov dword [esi + 4], eax
jmp 0x406e44
mov dword [esi + 4], 1
jmp 0x406e44
lea eax, [ebp - 0x318]
push 0x43b248
push eax
call edi
test eax, eax
je 0x406e22
mov dword [esi + 4], 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 0x43b250
push dword [0x434510]
push dword [0x4344e8]
call fcn.00402344
lea eax, [ebp - 0x41c]
push 0x43b250
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x406e9d
mov byte [esi + 8], 1
jmp 0x406ea1
and byte [esi + 8], 0
lea eax, [esi + 9]
push edi
mov ecx, dword [ebp - 4]
push eax
push ebx
push dword [0x434518]
push dword [0x4344e8]
call fcn.00402344
lea eax, [esi + 0x3b]
push edi
mov ecx, dword [ebp - 4]
push eax
push ebx
push dword [0x434514]
push dword [0x4344e8]
call fcn.00402344
lea eax, [esi + 0x6d]
push 0x32
push 0
push eax
call fcn.00426630
add esp, 0xc
lea eax, [esi + 0x6d]
mov ecx, dword [ebp - 4]
push edi
push eax
push ebx
push dword [0x434520]
push dword [0x4344e8]
call fcn.00402344
lea eax, [esi + 0x10b4]
push ebx
push eax
call fcn.00426690
pop ecx
mov edi, 0x400
test eax, eax
pop ecx
jne 0x406f7b
lea eax, [esi + 0x10b4]
push edi
mov ecx, dword [ebp - 4]
push eax
push ebx
push dword [0x434504]
push dword [0x4344e8]
call fcn.00402344
push edi
call fcn.00425de7
pop ecx
mov dword [ebp - 0xc], eax
push edi
push eax
lea eax, [esi + 0x10b4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp - 0xc]
lea eax, [esi + 0x10b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi + 0x14bc], 5
je 0x406f7b
lea eax, [esi + 0x10b4]
push 1
push eax
push 0x43b244
mov ecx, esi
call fcn.0041be27
cmp dword [esi + 0x14bc], 0
jne 0x406fac
lea eax, [ebp - 0x110]
push 0x104
mov ecx, dword [ebp - 4]
push eax
push 0
push dword [0x434508]
push dword [0x4344e8]
call fcn.00407406
mov dword [esi + 0x14bc], eax
lea eax, [esi + 0x2508]
push edi
push 0
push eax
call fcn.00426630
add esp, 0xc
lea eax, [esi + 0x2508]
mov ecx, dword [ebp - 4]
push edi
push eax
push ebx
push dword [0x43451c]
push dword [0x4344e8]
call fcn.00402344
mov ecx, dword [ebp - 4]
lea edi, [esi + 0x2908]
push 0x104
push edi
push ebx
push str.DotNetVersion
push dword [0x4344e8]
call fcn.00402344
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x4070e6
push 3
push 0x43b230
push edi
call fcn.004271f0
add esp, 0xc
test eax, eax
jne 0x407028
mov byte [esi + 0x2b10], 1
jmp 0x407088
push 3
push 0x43b22c
push edi
call fcn.004271f0
add esp, 0xc
test eax, eax
jne 0x407045
mov byte [esi + 0x2b11], 1
jmp 0x407088
push 4
push str.v1.1
push edi
call fcn.004271f0
add esp, 0xc
test eax, eax
je 0x40703c
push 3
push 0x43b220
push edi
call fcn.004271f0
add esp, 0xc
test eax, eax
je 0x407081
push 4
push str.v2.0
push edi
call fcn.004271f0
add esp, 0xc
test eax, eax
jne 0x407088
mov byte [esi + 0x2b12], 1
mov al, byte [0x440140]
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 [0x4344e8]
call fcn.00402344
cmp byte [ebp - 0x110], 0
je 0x4070e6
lea eax, [ebp - 0x110]
mov byte [esi + 0x2b13], 1
push eax
call fcn.004271dc
pop ecx
mov dword [esi + 0x2b14], eax
add esi, 0x301d
push 0x1001
push 0
push esi
call fcn.00426630
add esp, 0xc
mov ecx, dword [ebp - 4]
push 0x1000
push esi
push ebx
push dword [0x434524]
push dword [0x434500]
call fcn.00402344
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret