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

Disassembly:
sub esp, 0x12c
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x4277a8]
xor ebp, ebp
test eax, eax
je 0x401d8b
push str.windir
jmp 0x401d90
push str.SystemRoot
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x401e3b
mov eax, dword [0x4277a8]
test eax, eax
je 0x401dc7
lea ecx, [esp + 0x14]
push 0x411334
push ecx
jmp 0x401dd1
lea edx, [esp + 0x14]
push 0x411304
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x14]
push 6
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
lea eax, [esp + 0x14]
push 0x4112e8
push eax
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x14]
push 1
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
mov eax, dword [0x4277a8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 8
test eax, eax
je 0x40226e
lea ecx, [esp + 0x28]
push str.win.ini
lea edx, [esp + 0x30]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
push 0x100
push ecx
push 0x4277e4
push str.Load
push str.Windows
call ebx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
mov edi, 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402081
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x402081
push 0x20
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
test esi, esi
jle 0x401f66
lea edx, [esp + 0x2c]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
jmp 0x401f7d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x401fcf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x41129c
push edx
xor edi, edi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
push 4
push edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
jmp 0x401ff6
lea eax, [esp + 0x1c]
push 0x411114
lea ecx, [esp + 0x34]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x28]
call fcn.0040c9ee
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x401ef7
test edi, edi
jne 0x402081
mov eax, dword [esp + 0x140]
test eax, eax
je 0x402081
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push str.Load
push str.windows
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x402054
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x1c]
push 0x411268
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 5
jmp 0x40206d
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push 0x41117c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
push 0x100
push ecx
push 0x4277e4
push 0x411264
push str.Windows
call ebx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
mov edi, 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402265
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x402265
push 0x20
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
test esi, esi
jle 0x40214a
lea edx, [esp + 0x30]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
jmp 0x402161
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x4021b3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x41129c
push edx
xor edi, edi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
push 4
push edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
jmp 0x4021da
lea eax, [esp + 0x1c]
push 0x411114
lea ecx, [esp + 0x30]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x28]
call fcn.0040c9ee
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4020db
test edi, edi
jne 0x402265
mov eax, dword [esp + 0x140]
test eax, eax
je 0x402265
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push 0x411264
push str.windows
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x402238
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x1c]
push 0x411268
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 5
jmp 0x402251
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push 0x41117c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
xor eax, eax
test edi, edi
sete al
mov ebp, eax
lea ecx, [esp + 0x28]
push str._system.ini
lea edx, [esp + 0x34]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push eax
push 0x100
push ecx
push 0x4277e4
push 0x411250
push str.Windows
call ebx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
mov edi, 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402479
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x402479
push 0x20
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_3
mov esi, eax
test esi, esi
jle 0x40235e
lea edx, [esp + 0x30]
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
jmp 0x402375
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0040c9c4
call fcn.00402ee0
add esp, 4
test eax, eax
jne 0x4023c7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x41129c
push edx
xor edi, edi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x14]
push 4
push edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
jmp 0x4023ee
lea eax, [esp + 0x1c]
push 0x411114
lea ecx, [esp + 0x30]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x28]
call fcn.0040c9ee
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x4022ef
test edi, edi
jne 0x402479
mov eax, dword [esp + 0x140]
test eax, eax
je 0x402479
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push 0x411250
push str.Windows
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x40244c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x1c]
push 0x411268
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 5
jmp 0x402465
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push 0x41117c
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 3
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
xor eax, eax
test edi, edi
sete al
or eax, ebp
jne 0x402490
lea ecx, [esp + 0x14]
push 0x41122c
push ecx
jmp 0x40249a
lea edx, [esp + 0x14]
push 0x411214
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x14]
push 1
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.00401240
add esp, 8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x12c
ret