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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x414e29
push eax
mov eax, 0x18c8
mov dword fs:[0], esp
call fcn.00413f20
push ebx
push ebp
push esi
push edi
xor esi, esi
mov dword [esp + 0x18e0], esi
call fcn.0040c5c0
push ecx
mov byte [0x4208cc], al
mov ecx, esp
mov dword [esp + 0x20], esp
push str.Entering_CompareUUID
call fcn.00413dc4
call fcn.0040c2c0
lea eax, [esp + 0x18ec]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42u.DLL_CString::CString_2
call fcn.0040c2c0
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x24]
push 0x41e428
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18f0]
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x40b8eb
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.couldnt_open_uuid_file
call fcn.00413dc4
call fcn.0040c2c0
add esp, 4
jmp 0x40bc55
mov ebp, dword [sym.imp.MSVCRT.dll_fgetc]
mov bl, 0x10
test byte [edi + 0xc], bl
jne 0x40b90b
push edi
call ebp
add esp, 4
mov byte [esp + esi + 0x54], al
inc esi
cmp esi, 0x80
jl 0x40b8f3
push edi
mov byte [esp + 0xd8], 0
call dword [sym.imp.MSVCRT.dll_fclose]
lea edx, [esp + 0x58]
push 0
push edx
call fcn.0040ad10
mov esi, eax
lea eax, [esp + 0x2c]
add esp, 0xc
xor ecx, ecx
sub esi, eax
lea eax, [esp + ecx + 0x20]
inc ecx
cmp ecx, 0x2f
mov dl, byte [esi + eax]
mov byte [eax], dl
jl 0x40b933
mov byte [esp + 0x50], 0
call fcn.0040c6b0
test al, al
je 0x40bafa
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.In_PreOS
call fcn.00413dc4
call fcn.0040c2c0
mov esi, dword [sym.imp.MSVCRT.dll_getenv]
push str.IBMSHARE
call esi
add esp, 8
test eax, eax
jne 0x40b98c
lea edx, [esp + 0x4d8]
mov edi, 0x41f024
jmp 0x40b99f
push str.IBMSHARE
call esi
add esp, 4
lea edx, [esp + 0x4d8]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x4d8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41f014
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Compare_UUID_to_location_...
call fcn.00413dc4
call fcn.0040c2c0
lea eax, [esp + 0x4dc]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42u.DLL_CString::CString_3
call fcn.0040c2c0
add esp, 4
lea ecx, [esp + 0x10d8]
lea edx, [esp + 0x4d8]
push 0x800
push ecx
push 0xffffffffffffffff
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x10d8]
lea ecx, [esp + 0x8d8]
push eax
push 0x400
push ecx
push str.help
push str.uuid
push str.system_summary
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
lea edx, [esp + 0x8dc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00413dc4
call fcn.0040c2c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 4
lea eax, [esp + 0x8d8]
push 0
push 0
push eax
call esi
lea ecx, [esp + 0xe0]
push eax
push ecx
lea edx, [esp + 0x8e8]
push edx
call esi
push eax
lea eax, [esp + 0x8ec]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ecx
mov byte [esp + eax + 0xdc], 0
mov ecx, esp
mov dword [esp + 0x14], esp
push str.A_PATH
call fcn.00413dc4
call fcn.0040c2c0
lea edx, [esp + 0xdc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42u.DLL_CString::CString_3
call fcn.0040c2c0
add esp, 4
jmp 0x40bb28
call fcn.0040a9f0
mov edi, 0x420894
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_3
mov byte [esp + 0x18e0], 1
call sub.MFC42u.DLL_AfxGetEmptyString
mov edx, dword [eax]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.00413e78
lea ecx, [esp + 0x18]
push str._
lea edx, [esp + 0x20]
mov bl, 2
push ecx
push edx
mov byte [esp + 0x18ec], bl
call sub.MFC42u.DLL_operator_1
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
push eax
push ecx
mov byte [esp + 0x18f0], 3
call sub.MFC42u.DLL_operator_3
call fcn.0040c2c0
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18e0], bl
call sub.MFC42u.DLL_CString::CString
xor eax, eax
movsx ecx, byte [esp + eax + 0xd8]
xor edx, edx
mov dl, byte [esp + eax + 0x20]
cmp ecx, edx
jne 0x40bc1a
inc eax
cmp eax, 0x2f
jl 0x40bbac
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.uuid_MATCH
call fcn.00413dc4
call fcn.0040c2c0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x18e0], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x18e0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18e8]
mov dword [esp + 0x18e0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x40bc71
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.No_uuid_MATCH
call fcn.00413dc4
call fcn.0040c2c0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x18e0], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x18e0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18e8]
mov dword [esp + 0x18e0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x18d8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18d4
ret