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.00416f70
add esp, 0xc
mov ebp, 0x42dba8
push ebp
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x42bad0
push dword [0x423470]
push dword [0x42346c]
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.00416f70
add esp, 0xc
lea eax, [esi + 0x8ac]
push ebp
push edi
push eax
push 0x42bad0
push dword [0x423478]
push dword [0x42346c]
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.00416f70
add esp, 0xc
push ebp
push edi
lea edi, [esi + 0xac]
push edi
push 0x42bad0
push dword [0x423474]
push dword [0x42346c]
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.00416f70
add esp, 0xc
lea eax, [esp + 0x12]
push ebp
push 2
push eax
push 0x42bad0
push dword [0x42347c]
push dword [0x42346c]
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 [0x42ea80], 0
jne 0x401cb9
lea eax, [esp + 0x12]
push 0x4271bc
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 0x42bad0
push dword [0x423480]
push dword [0x423484]
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.00417177
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, 0x4271b8
push eax
push edi
push dword [0x423490]
push dword [0x42346c]
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 [0x42ea80], eax
je 0x401d75
mov dword [esi + 4], 1
jmp 0x401d95
and dword [esi + 4], 0
jmp 0x401d95
lea eax, [esp + 0x11c]
push 0x4271b4
push eax
call edi
test eax, eax
je 0x401d6c
mov dword [esi + 4], 2
push ebp
lea eax, [esi + 8]
push 0x104
mov edi, 0x42bad0
push eax
push edi
push dword [0x423498]
push dword [0x42346c]
call ebx
push ebp
lea eax, [esi + 0x3a]
push 0x104
push eax
push edi
push dword [0x423494]
push dword [0x42346c]
call ebx
lea eax, [esi + 0x6c]
push 0x32
push 0
push eax
call fcn.00416f70
add esp, 0xc
lea eax, [esi + 0x6c]
push ebp
push 0x104
push eax
push edi
push dword [0x4234a0]
push dword [0x42346c]
call ebx
lea eax, [esi + 0x10b4]
push edi
push eax
call fcn.00416fd0
pop ecx
test eax, eax
pop ecx
jne 0x401e76
push ebp
lea eax, [esi + 0x10b4]
push 0x400
push eax
push edi
push dword [0x423488]
push dword [0x42346c]
call ebx
push 0x400
call fcn.00416f58
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 0x4271b0
mov ecx, esi
call fcn.004102c1
cmp dword [esi + 0x14bc], 0
jne 0x401e9a
push ebp
push 0
push dword [0x42348c]
push dword [0x42346c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x14bc], eax
lea eax, [esi + 0x290c]
push 0x400
push 0
push eax
call fcn.00416f70
add esp, 0xc
lea eax, [esi + 0x290c]
push ebp
push 0x400
push eax
push edi
push dword [0x42349c]
push dword [0x42346c]
call ebx
lea eax, [esi + 0x2d0d]
push ebp
push 0x104
push eax
push edi
push str.DotNetVersion
push dword [0x42346c]
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