Function at 0x4183a0
Capabilities:
Read .ini file
Read file on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x43cf1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x538
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
xor ebp, ebp
lea ecx, [esp + 0x44]
mov dword [esp + 0x550], ebp
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x558]
push 0x44a754
push eax
mov byte [esp + 0x558], 1
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x41883e
lea ecx, [edi + 0x4874]
push 0x44a754
call fcn.0043ac24
push 0x449120
lea ecx, [esp + 0x1c]
push 0x44ee44
push ecx
call sub.MFC42.DLL_operator_2
lea ebx, [edi + 0x340]
push eax
mov ecx, ebx
mov byte [esp + 0x554], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x550], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebx]
push ebp
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4184c5
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ebx
call sub.MFC42.DLL_CString::CString_3
mov ecx, edi
call fcn.00412ee0
cmp eax, ebp
jne 0x4184c5
push 0x44911c
lea edx, [esp + 0x18]
push ebx
push edx
call sub.MFC42.DLL_operator_2
push ecx
mov byte [esp + 0x554], 3
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x44d61c
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov ecx, edi
call fcn.00416230
lea ecx, [esp + 0x14]
mov byte [esp + 0x550], 1
call sub.MFC42.DLL_CString::CString
jmp 0x41883e
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [esp + 0x558]
push 0x448b20
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x418539
lea eax, [esp + 0x558]
push 0x44911c
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_2
push ecx
mov byte [esp + 0x554], 4
mov edx, esp
mov dword [esp + 0x14], esp
push 0x44c488
push eax
push edx
call sub.MFC42.DLL_operator_2
mov ecx, edi
call fcn.00416230
lea ecx, [esp + 0x14]
mov byte [esp + 0x550], 1
call sub.MFC42.DLL_CString::CString
jmp 0x41883e
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 4
lea eax, [esp + 0x7c]
push 1
push eax
call ebp
lea edx, [esp + 0x84]
mov ecx, 0x449114
add esp, 0x10
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
je 0x4185bb
lea ecx, [esp + 0x558]
push 0x44911c
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push ecx
mov byte [esp + 0x554], 5
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x44cc58
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov ecx, edi
call fcn.00416230
lea ecx, [esp + 0x14]
mov byte [esp + 0x550], 1
call sub.MFC42.DLL_CString::CString
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x41883e
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x44cd84
call fcn.0043abe8
mov ecx, edi
call fcn.00416230
push esi
push 1
lea edx, [esp + 0x7c]
push 1
push edx
call ebp
movsx ebx, byte [esp + 0x84]
lea edi, [ebx*4]
push edi
call sub.MFC42.DLL_operatornew
push edi
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x44]
mov ecx, ebx
mov edx, ecx
mov dword [esp + 0x30], eax
xor eax, eax
add esp, 0x18
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test ebx, ebx
rep stosb byte es:[edi], al
jle 0x4186ad
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
sub eax, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
push esi
push 1
lea eax, [esp + 0x7c]
push 1
push eax
call ebp
movsx eax, byte [esp + 0x84]
push esi
push eax
lea ecx, [esp + 0x8c]
push 1
push ecx
mov dword [esp + 0x48], eax
call ebp
mov edx, dword [esp + 0x48]
push esi
push 1
lea eax, [esp + 0x50]
push 4
push eax
mov byte [esp + edx + 0xa4], 0
call ebp
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0xa4]
push 0x449110
push eax
mov dword [edx + edi], ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov dword [edi], eax
mov eax, dword [esp + 0x58]
add esp, 0x38
add edi, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x41863e
mov edi, dword [sym.imp.MSVCRT.dll_ftell]
push esi
call edi
push 2
push 0
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call edi
mov edi, eax
mov eax, dword [esp + 0x3c]
mov ecx, 0xffffffec
push 0
sub ecx, eax
push eax
push esi
add edi, ecx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x20
lea ecx, [esp + 0x178]
call fcn.00439f30
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push ebx
push edx
push eax
push edi
push esi
lea ecx, [esp + 0x18c]
mov byte [esp + 0x564], 6
call fcn.0043a540
test ebx, ebx
jle 0x41873b
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x24]
add esp, 4
add ecx, 4
dec ebx
mov dword [esp + 0x20], ecx
jne 0x41871d
mov ecx, dword [esp + 0x28]
push 0
add edi, ecx
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
push 0x14
lea edx, [esp + 0x74]
push 1
push edx
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x4c]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x3c]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 0x28
lea ecx, [esp + 0x178]
call fcn.0043a650
mov edi, eax
lea esi, [esp + 0x60]
mov ecx, 5
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
push ecx
mov ecx, esp
je 0x4187ef
mov dword [esp + 0x14], esp
push 0x44c618
call fcn.0043abe8
mov ecx, dword [esp + 0x28]
call fcn.00416230
lea ecx, [esp + 0x178]
mov byte [esp + 0x550], 1
call fcn.00439fa0
lea ecx, [esp + 0x44]
mov byte [esp + 0x550], 0
call fcn.0043ae52
lea ecx, [esp + 0x558]
mov dword [esp + 0x550], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x418c67
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], esp
add eax, 0x340
push eax
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [esp + 0x28]
mov ecx, ebp
call fcn.00418190
cmp eax, 0xffffffff
jne 0x41886d
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x44cde8
call fcn.0043abe8
mov ecx, ebp
call fcn.00416230
lea ecx, [esp + 0x178]
mov byte [esp + 0x550], 1
call fcn.00439fa0
lea ecx, [esp + 0x44]
mov byte [esp + 0x550], 0
call fcn.0043ae52
lea ecx, [esp + 0x558]
mov dword [esp + 0x550], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x418c67
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x550], 7
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x550], 8
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x550], 9
call sub.MFC42.DLL_CString::CString_2
push 0xffffffffffffffff
lea ecx, [ebp + 0x50d8]
push 0
mov byte [esp + 0x558], 0xa
call sub.MFC42.DLL_CPtrArray::SetSize
mov eax, dword [ebp + 0x2e0]
add ebp, 0x2e0
push eax
push 0
push 0x449108
push 0x4490fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x18], 0
jle 0x418b4b
push 0x10
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
mov byte [esp + 0x550], 0xb
je 0x41894e
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 4]
mov byte [esp + 0x550], 0xc
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 8]
mov byte [esp + 0x550], 0xd
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0xc]
mov byte [esp + 0x550], 0xe
call sub.MFC42.DLL_CString::CString_2
jmp 0x418950
xor esi, esi
push 0x4490f4
lea ecx, [esp + 0x20]
mov byte [esp + 0x554], 0xa
call fcn.0043ac24
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push 0x448be8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x30]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x34c]
push 0x100
push ecx
push 0x4490dc
push 0x4490d4
push edx
call ebx
mov eax, dword [ebp]
mov ecx, dword [esp + 0x1c]
push eax
lea eax, [esp + 0x44c]
push 0x100
push eax
push 0x4490c0
push 0x4490b4
push ecx
call ebx
lea edi, [esi + 4]
lea edx, [esp + 0x348]
push edx
mov ecx, edi
call fcn.0043ac24
lea eax, [esp + 0x448]
mov ecx, esi
push eax
call fcn.0043ac24
mov eax, dword [edi]
push 0x448eec
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x418a26
push 0x448b20
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x418a9a
inc dword [esp + 0x34]
jmp 0x418a90
mov eax, dword [edi]
push 0x4490ac
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x418a5c
push 0x448b20
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x418a9a
inc dword [esp + 0x38]
jmp 0x418a90
mov edi, dword [edi]
push 0x448fc8
push edi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x418a9a
push 0x448b20
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
je 0x418a9a
inc dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x24c]
push 0x100
push ecx
push 0x44a754
push 0x4490a8
push edx
call ebx
lea edi, [esi + 8]
lea eax, [esp + 0x248]
push eax
mov ecx, edi
call fcn.0043ac24
mov eax, dword [ebp]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x24c]
push 0x100
push ecx
push 0x448d4c
push 0x44909c
push edx
call ebx
lea eax, [esp + 0x248]
lea ecx, [esi + 0xc]
push eax
call fcn.0043ac24
mov edi, dword [edi]
push 0x44a754
push edi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x418b22
push 0x448d48
lea ecx, [esi + 0xc]
call fcn.0043ac24
mov ecx, dword [esp + 0x24]
push esi
add ecx, 0x50d8
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CPtrArray::SetAtGrow
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4188f9
mov eax, dword [ebp]
lea edx, [esp + 0x348]
push eax
push 0x100
push edx
push 0x44a754
push 0x449094
push 0x44908c
call ebx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x348]
push eax
add ecx, 0x4874
call fcn.0043ac24
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push ebp
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.004200c0
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x44ce4c
call fcn.0043abe8
mov ecx, esi
call fcn.00416230
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x418bd8
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x418bd8
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x418bd8
mov dword [esi + 0x5054], 1
jmp 0x418be2
mov dword [esi + 0x5054], 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x550], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x550], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x550], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x550], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x178]
mov byte [esp + 0x550], 1
call fcn.00439fa0
lea ecx, [esp + 0x44]
mov byte [esp + 0x550], 0
call fcn.0043ae52
lea ecx, [esp + 0x558]
mov dword [esp + 0x550], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x548]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x544
ret 4