Function at 0x40178f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d22a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov dword [ebp - 0x120], ecx
push 0
push str.FdPath
push 0x412120
lea eax, [ebp - 0x118]
push eax
call fcn.00402510
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x128]
push edx
mov ecx, dword [ebp - 0x120]
add ecx, 0xa7c
call sub.MFC42.DLL_CString::operator
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.0040ca36
mov ecx, dword [ebp - 0x120]
add ecx, 0xa7c
call fcn.004024a0
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jle 0x4018ab
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 0xa84]
add ecx, 0x29
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4018ab
mov edx, dword [ebp - 0x114]
sub edx, 1
push edx
mov ecx, dword [ebp - 0x120]
add ecx, 0xa7c
call fcn.004024f0
movsx eax, al
cmp eax, 0x5c
je 0x401888
push 0x412128
mov ecx, dword [ebp - 0x120]
add ecx, 0xa7c
call fcn.0040ca72
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx + 0xa84]
add edx, 0x29
push edx
mov ecx, dword [ebp - 0x120]
add ecx, 0xa7c
call fcn.0040ca72
jmp 0x4018c8
push 0
push 0x6821
mov eax, dword [ebp - 0x120]
push eax
call sub.Ufxtwl.dll_Ordinal_57
add esp, 0xc
xor eax, eax
jmp 0x401a4b
push 0
push 0x41212c
push 0x412138
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00402510
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x120]
add ecx, 0xa80
call sub.MFC42.DLL_CString::operator
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.0040ca36
mov ecx, dword [ebp - 0x120]
add ecx, 0x17a
push ecx
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0x412aa0
push 0x412140
mov eax, dword [ebp - 0x120]
add eax, 0x7a
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x120]
add ecx, 0xa80
call fcn.004024a0
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jle 0x4019e1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4019e1
mov edx, dword [ebp - 0x114]
sub edx, 1
push edx
mov ecx, dword [ebp - 0x120]
add ecx, 0xa80
call fcn.004024f0
movsx eax, al
cmp eax, 0x5c
je 0x4019c7
push 0x412150
mov ecx, dword [ebp - 0x120]
add ecx, 0xa80
call fcn.0040ca72
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x120]
add ecx, 0xa80
call fcn.0040ca72
jmp 0x4019fb
push 0
push 0x7008
mov edx, dword [ebp - 0x120]
push edx
call sub.Ufxtwl.dll_Ordinal_57
add esp, 0xc
xor eax, eax
jmp 0x401a4b
mov ecx, dword [ebp - 0x120]
add ecx, 0xa80
call fcn.004024e0
push eax
mov ecx, dword [ebp - 0x120]
add ecx, 0xa7c
call fcn.004024e0
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401a46
push 0
push 0x7009
mov eax, dword [ebp - 0x120]
push eax
call sub.Ufxtwl.dll_Ordinal_57
add esp, 0xc
xor eax, eax
jmp 0x401a4b
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret