Function at 0x4d8b40
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51272b
push eax
mov dword fs:[0], esp
sub esp, 0x410
or ecx, 0xffffffff
xor eax, eax
push edi
mov edi, 0x54c0a8
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4d8d85
mov edi, 0x54a29c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov eax, ecx
mov esi, edi
mov edi, 0x54c0a8
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, 0x54a298
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x54c0b4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x110]
push 0x104
push eax
push 0
mov dword [esp + 0x42c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x4d8c3f
push 0
lea ecx, [esp + 0x218]
push 0
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
push 0x54a294
lea ecx, [esp + 0x22c]
push str.Gender
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x334]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__makepath]
add esp, 0x28
lea ecx, [esp + 0x314]
push ecx
lea ecx, [esp + 0xc]
call fcn.004c8322
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edx
lea eax, [esp + 0x18]
push 0xff
push eax
push 0x54aebc
push str.Male
push str.System
call ebx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4d8ca9
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jae 0x4d8ca9
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x54c0a8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push 0xff
push ecx
push 0x54aebc
push str.Female
push str.System
call ebx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4d8d0c
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jae 0x4d8d0c
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x54c0b4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push 0xff
push ecx
push 0x54aebc
push str.Other
push str.System
call ebx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
pop ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4d8d70
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xa
jae 0x4d8d70
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x54c0c0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
mov dword [esp + 0x420], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 0x414]
pop edi
mov dword fs:[0], ecx
add esp, 0x41c
ret