Function at 0x404d21
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.00401046
mov esi, eax
mov edi, 0x400
push edi
push 0
lea ebx, [esi + 0x4ac]
push ebx
call fcn.0041cbb0
add esp, 0xc
lea ecx, [esi + 0x3318]
push 0x434e80
call fcn.00401b31
push edi
push ebx
mov ebx, 0x432d90
lea ecx, [esi + 0x3318]
push ebx
push dword [0x429480]
push dword [0x42947c]
call fcn.00401d30
lea eax, [esi + 0x4ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x404e15
lea eax, [esi + 0x8ac]
push edi
push 0
push eax
call fcn.0041cbb0
add esp, 0xc
lea ecx, [esi + 0x3318]
push edi
lea edi, [esi + 0x8ac]
push edi
push ebx
push dword [0x429488]
push dword [0x42947c]
call fcn.00401d30
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
je 0x404e15
mov ecx, dword [ebp - 8]
call fcn.0040515a
test al, al
je 0x404e15
push 2
lea eax, [ebp - 2]
push 0
push eax
call fcn.0041cbb0
add esp, 0xc
lea eax, [ebp - 2]
lea ecx, [esi + 0x3318]
push 2
push eax
push ebx
push dword [0x42948c]
push dword [0x42947c]
call fcn.00401d30
lea eax, [ebp - 2]
push eax
call edi
test eax, eax
jne 0x404e1c
xor eax, eax
jmp 0x405155
xor eax, eax
mov dword [esi + 0xa8], eax
cmp dword [0x435d5c], eax
jne 0x404e51
cmp dword [0x435d58], eax
jne 0x404e51
lea eax, [ebp - 2]
push 0x42e1fc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404e51
mov dword [esi + 0xa8], 1
and byte [ebp - 0x10c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
lea ecx, [esi + 0x3318]
push eax
push ebx
push dword [0x429490]
push dword [0x429494]
call fcn.00401d30
lea eax, [ebp - 0x10c]
mov dword [esi + 0x10b0], 0x1f40
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x404eba
lea eax, [ebp - 0x10c]
push eax
call fcn.0041db27
pop ecx
mov dword [esi + 0x10b0], eax
and byte [ebp - 0x210], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x210]
mov edi, 0x42e1f8
push eax
push edi
push dword [0x4294a0]
lea ecx, [esi + 0x3318]
push dword [0x42947c]
call fcn.00401d30
lea eax, [ebp - 0x210]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push eax
call edi
test eax, eax
jne 0x404f2c
cmp dword [0x435d5c], eax
jne 0x404f23
cmp dword [0x435d58], eax
jne 0x404f23
mov dword [esi + 4], eax
jmp 0x404f45
mov dword [esi + 4], 1
jmp 0x404f45
lea eax, [ebp - 0x210]
push 0x42e1f4
push eax
call edi
test eax, eax
je 0x404f23
mov dword [esi + 4], 2
and byte [ebp - 0x314], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
lea eax, [ebp - 0x314]
push edi
push eax
push 0x42e1fc
lea ecx, [esi + 0x3318]
push dword [0x4294a4]
push dword [0x42947c]
call fcn.00401d30
lea eax, [ebp - 0x314]
push 0x42e1fc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404fa1
mov byte [esi + 8], 1
jmp 0x404fa5
and byte [esi + 8], 0
lea eax, [esi + 9]
push edi
push eax
push ebx
push dword [0x4294ac]
lea ecx, [esi + 0x3318]
push dword [0x42947c]
call fcn.00401d30
lea eax, [esi + 0x3b]
push edi
push eax
push ebx
push dword [0x4294a8]
lea ecx, [esi + 0x3318]
push dword [0x42947c]
call fcn.00401d30
lea eax, [esi + 0x6d]
push 0x32
push 0
push eax
call fcn.0041cbb0
add esp, 0xc
lea eax, [esi + 0x6d]
lea ecx, [esi + 0x3318]
push edi
push eax
push ebx
push dword [0x4294b4]
push dword [0x42947c]
call fcn.00401d30
lea eax, [esi + 0x10b4]
push ebx
push eax
call fcn.0041cc10
pop ecx
test eax, eax
pop ecx
jne 0x405093
lea eax, [esi + 0x10b4]
push 0x400
push eax
push ebx
push dword [0x429498]
lea ecx, [esi + 0x3318]
push dword [0x42947c]
call fcn.00401d30
push 0x400
call fcn.0041c6a8
mov dword [esp], 0x400
mov dword [ebp - 8], eax
push eax
lea eax, [esi + 0x10b4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp - 8]
lea eax, [esi + 0x10b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi + 0x14bc], 5
je 0x405093
lea eax, [esi + 0x10b4]
push 1
push eax
push 0x42e1f0
mov ecx, esi
call fcn.00414cd7
cmp dword [esi + 0x14bc], 0
jne 0x4050c3
lea eax, [ebp - 0x418]
push edi
push eax
push 0
push dword [0x42949c]
lea ecx, [esi + 0x3318]
push dword [0x42947c]
call fcn.0040545b
mov dword [esi + 0x14bc], eax
lea eax, [esi + 0x290c]
push 0x400
push 0
push eax
call fcn.0041cbb0
add esp, 0xc
lea eax, [esi + 0x290c]
lea ecx, [esi + 0x3318]
push 0x400
push eax
push ebx
push dword [0x4294b0]
push dword [0x42947c]
call fcn.00401d30
lea eax, [esi + 0x2d0d]
push edi
push eax
push ebx
push str.DotNetVersion
lea ecx, [esi + 0x3318]
push dword [0x42947c]
call fcn.00401d30
lea edi, [esi + 0x2d0d]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x405152
cmp byte [edi], 0x31
jne 0x40514a
cmp byte [esi + 0x2d0e], 0x2e
jne 0x40514a
cmp byte [esi + 0x2d0f], 0x30
jne 0x40514a
push 1
pop eax
jmp 0x40514c
xor eax, eax
mov byte [esi + 0x2e11], al
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret