Function at 0x501730
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x86c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x78]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x78]
push 0x5c
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x5017af
lea ecx, [ebp - 0x78]
lea edx, [ebp - 0x74]
inc eax
push eax
push edx
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call fcn.0054c020
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x878]
mov eax, dword [ebp + 0xc]
push esp
push eax
push 0x791700
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x878]
push eax
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x878]
mov eax, dword [ebp + 8]
push eax
push 0x800
push edx
push 0x76acc0
push 0x791740
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x50186e
lea edx, [ebp - 0x6c]
lea eax, [ebp - 0x70]
push eax
push 0x791720
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0x54
lea eax, [ebp - 0x6c]
push eax
call fcn.0054c020
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x878]
push eax
push edx
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00501640
test eax, eax
je 0x501f22
mov edx, dword [ebp + 0xc]
imul ecx, edx, 0x74
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
add ecx, dword [ebx + 0x50]
push eax
call fcn.00503910
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x878]
mov eax, dword [ebp + 8]
push eax
push 0x800
push edx
push 0x76acc0
push 0x78e760
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x501952
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x70]
push eax
push 0x791780
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 4], 6
mov ecx, ebx
add ecx, 0x54
lea eax, [ebp - 0x60]
push eax
call fcn.0054c020
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x878]
push eax
push edx
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.00501640
test eax, eax
je 0x501e92
mov edx, ebx
mov ecx, dword [edx + 0x50]
add ecx, dword [ebp - 0x1c]
push eax
call fcn.004fee30
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x878]
mov eax, dword [ebp + 8]
push eax
push 0x800
push edx
push 0x76acc0
push 0x791820
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x501a01
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x878]
push eax
push edx
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.00501640
test eax, eax
je 0x501d30
mov edx, ebx
mov ecx, dword [edx + 0x50]
add ecx, dword [ebp - 0x1c]
push eax
call fcn.00503900
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x878]
mov eax, dword [ebp + 8]
push eax
push 0x800
push edx
push 0x76acc0
push 0x791620
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x501a76
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x878]
push eax
push edx
push ecx
call sub.MFC42.DLL_operator
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x4c]
push esp
push eax
call fcn.005020a0
add esp, 8
test eax, eax
je 0x501dd8
mov edx, ebx
mov ecx, dword [edx + 0x50]
add ecx, dword [ebp - 0x1c]
push eax
call fcn.004dd4e0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x878]
mov eax, dword [ebp + 8]
push eax
push 0x800
push edx
push 0x76acc0
push 0x791880
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x501b17
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x70]
push eax
push 0x791860
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 4], 0xd
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
mov ecx, dword [eax + 0x50]
lea edx, [ebp - 0x878]
add ecx, dword [ebp - 0x1c]
push edx
call fcn.00502ca0
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x878]
mov eax, dword [ebp + 8]
push eax
push 0x800
push edx
push 0x76acc0
push 0x7918c0
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x501bde
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x70]
push eax
push 0x7918a0
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 4], 0xe
mov ecx, ebx
add ecx, 0x54
lea eax, [ebp - 0x40]
push eax
call fcn.0054c020
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x878]
lea eax, [ebp - 0x3c]
push eax
push edx
call fcn.00501fc0
add esp, 8
movzx eax, al
test eax, eax
jne 0x501c83
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x70]
push eax
push 0x7918e0
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 4], 0xf
mov ecx, ebx
add ecx, 0x54
lea eax, [ebp - 0x2c]
push eax
call fcn.0054c020
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
mov ecx, dword [eax + 0x50]
lea edx, [ebp - 0x3c]
add ecx, dword [ebp - 0x1c]
push edx
call fcn.005038e0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x54]
push eax
push 0x7917e0
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 4], 0xa
mov ecx, ebx
add ecx, 0x54
lea eax, [ebp - 0x50]
push eax
call fcn.0054c020
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x4c]
push eax
push 0x791840
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 4], 0xc
mov ecx, ebx
add ecx, 0x54
lea eax, [ebp - 0x48]
push eax
call fcn.0054c020
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x5c]
push eax
push 0x7917a0
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 4], 8
mov ecx, ebx
add ecx, 0x54
lea eax, [ebp - 0x58]
push eax
call fcn.0054c020
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x68]
push eax
push 0x791760
push edx
call sub.MFC42.DLL_operator_2
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
add ecx, 0x54
lea eax, [ebp - 0x64]
push eax
call fcn.0054c020
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x64]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x68]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8