Function at 0x405860
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4076c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4058ba
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004055e0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [esp + 0x44]
push 0x40a390
lea edx, [esp + 0x18]
mov byte [esp + 0x40], 2
lea eax, [ebx + 8]
push eax
push edx
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 0x48]
mov esi, dword [ebx]
push eax
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x40a458
push str.SOURCEPATH
push esi
call ebp
test eax, eax
je 0x4059c2
or esi, 0xffffffff
lea ecx, [esp + 0x10]
push esi
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, esi
je 0x4059c2
push eax
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Delete
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, esi
je 0x4059c2
mov edx, dword [esp + 0x48]
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
push edx
push eax
push 0x40a384
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
mov byte [esp + 0x3c], 2
lea ecx, [esp + 0x14]
je 0x4059a6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x3c], esi
jmp 0x405b55
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x3c], esi
jmp 0x405be8
lea ecx, [esp + 0x20]
call fcn.00406c36
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x44], 4
call fcn.004060a0
mov esi, eax
xor edi, edi
test esi, esi
mov dword [esp + 0x44], esi
jle 0x405a97
lea edx, [esp + 0x1c]
push edi
push edx
lea ecx, [esp + 0x28]
call fcn.00401af0
mov esi, dword [eax]
mov eax, dword [esp + 0x48]
push eax
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 5
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x40a458
push str.SOURCEPATH
push esi
call ebp
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x405a88
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x405a88
push eax
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Delete
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x405b68
mov eax, dword [esp + 0x44]
inc edi
cmp edi, eax
jl 0x4059f1
mov esi, eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push esi
lea edx, [esp + 0x1c]
push str._08X
push edx
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x54]
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push ecx
push eax
push 0x40a384
push edx
call esi
test eax, eax
je 0x405ba8
mov ecx, dword [esp + 0x48]
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x18]
push ecx
push eax
push str.SOURCEPATH
push edx
call esi
test eax, eax
je 0x405ba8
mov eax, dword [esp + 0x48]
mov ebx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x18]
push eax
push ebx
push str.TARGETPATH
push ecx
call esi
test eax, eax
je 0x405ba8
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x3c], 3
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x405bf3
mov ebx, dword [ebx + 4]
lea edx, [esp + 0x44]
push edi
push edx
lea ecx, [esp + 0x28]
call fcn.00401af0
mov ecx, dword [esp + 0x48]
mov eax, dword [eax]
push ecx
push ebx
push 0x40a384
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x44]
mov esi, eax
call sub.MFC42.DLL_CString::CString
test esi, esi
mov byte [esp + 0x3c], 3
lea ecx, [esp + 0x20]
je 0x405bbf
jmp 0x405b2c
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x3c], 3
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8