Function at 0x401b75
Capabilities:
Query environment variable
Read .ini file

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
call fcn.00401046
mov esi, eax
mov edi, 0x400
push edi
push 0
lea ebx, [esi + 0x4ac]
push ebx
call fcn.00417ce0
add esp, 0xc
mov ebp, 0x42fc58
push ebp
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42db80
push dword [0x424480]
push dword [0x42447c]
call ebx
lea eax, [esi + 0x4ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401c84
lea eax, [esi + 0x8ac]
push edi
push 0
push eax
call fcn.00417ce0
add esp, 0xc
lea eax, [esi + 0x8ac]
push ebp
push edi
push eax
push 0x42db80
push dword [0x424488]
push dword [0x42447c]
call ebx
lea eax, [esi + 0x8ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401c84
lea eax, [esi + 0xac]
push edi
push 0
push eax
call fcn.00417ce0
add esp, 0xc
push ebp
push edi
lea edi, [esi + 0xac]
push edi
push 0x42db80
push dword [0x424484]
push dword [0x42447c]
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
je 0x401c84
push 2
lea eax, [esp + 0x16]
push 0
push eax
call fcn.00417ce0
add esp, 0xc
lea eax, [esp + 0x12]
push ebp
push 2
push eax
push 0x42db80
push dword [0x42448c]
push dword [0x42447c]
call ebx
lea eax, [esp + 0x12]
push eax
call edi
test eax, eax
jne 0x401c8b
xor eax, eax
jmp 0x401f20
and dword [esi + 0xa8], 0
cmp dword [0x430b30], 0
jne 0x401cb9
lea eax, [esp + 0x12]
push 0x4291bc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401cb9
mov dword [esi + 0xa8], 1
and byte [esp + 0x18], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [esp + 0x19]
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0x42db80
push dword [0x424490]
push dword [0x424494]
call ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x10b0], 0x1f40
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401d14
lea eax, [esp + 0x18]
push eax
call fcn.00417ee7
pop ecx
mov dword [esi + 0x10b0], eax
and byte [esp + 0x11c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [esp + 0x11d]
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x120]
push 0x104
mov edi, 0x4291b8
push eax
push edi
push dword [0x4244a0]
push dword [0x42447c]
call ebx
lea eax, [esp + 0x11c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push eax
call edi
test eax, eax
jne 0x401d7b
cmp dword [0x430b30], eax
je 0x401d75
mov dword [esi + 4], 1
jmp 0x401d95
and dword [esi + 4], 0
jmp 0x401d95
lea eax, [esp + 0x11c]
push 0x4291b4
push eax
call edi
test eax, eax
je 0x401d6c
mov dword [esi + 4], 2
push ebp
lea eax, [esi + 8]
push 0x104
mov edi, 0x42db80
push eax
push edi
push dword [0x4244a8]
push dword [0x42447c]
call ebx
push ebp
lea eax, [esi + 0x3a]
push 0x104
push eax
push edi
push dword [0x4244a4]
push dword [0x42447c]
call ebx
lea eax, [esi + 0x6c]
push 0x32
push 0
push eax
call fcn.00417ce0
add esp, 0xc
lea eax, [esi + 0x6c]
push ebp
push 0x104
push eax
push edi
push dword [0x4244b0]
push dword [0x42447c]
call ebx
lea eax, [esi + 0x10b4]
push edi
push eax
call fcn.00417d40
pop ecx
test eax, eax
pop ecx
jne 0x401e76
push ebp
lea eax, [esi + 0x10b4]
push 0x400
push eax
push edi
push dword [0x424498]
push dword [0x42447c]
call ebx
push 0x400
call fcn.00417cc8
mov dword [esp], 0x400
mov dword [esp + 0x18], eax
push eax
lea eax, [esi + 0x10b4]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 0x14]
lea eax, [esi + 0x10b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esi + 0x14bc], 5
je 0x401e76
lea eax, [esi + 0x10b4]
push 1
push eax
push 0x4291b0
mov ecx, esi
call fcn.00410826
cmp dword [esi + 0x14bc], 0
jne 0x401e9a
push ebp
push 0
push dword [0x42449c]
push dword [0x42447c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x14bc], eax
lea eax, [esi + 0x290c]
push 0x400
push 0
push eax
call fcn.00417ce0
add esp, 0xc
lea eax, [esi + 0x290c]
push ebp
push 0x400
push eax
push edi
push dword [0x4244ac]
push dword [0x42447c]
call ebx
lea eax, [esi + 0x2d0d]
push ebp
push 0x104
push eax
push edi
push str.DotNetVersion
push dword [0x42447c]
call ebx
lea edi, [esi + 0x2d0d]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x401f1d
cmp byte [edi], 0x31
jne 0x401f15
cmp byte [esi + 0x2d0e], 0x2e
jne 0x401f15
cmp byte [esi + 0x2d0f], 0x30
jne 0x401f15
push 1
pop eax
jmp 0x401f17
xor eax, eax
mov byte [esi + 0x2e11], al
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret