Function at 0x401631
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x411c50
push 0xffffffffffffffff
push 0x425348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
push 0x4000
push str.Config.ini
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], 0
mov dword [esi + 0x1260], 0
call sub.MFC42.DLL_CStdioFile::CStdioFile_1
lea eax, [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x411f93
mov bl, 6
mov ecx, dword [esp + 0xc]
push str._ITEM_
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x411f7d
lea edx, [esp + 0xc]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x411f93
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040151e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 2
call fcn.00422160
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call fcn.00421f80
mov eax, dword [esi + 0x1260]
lea edx, [esp + 0xc]
push edx
lea eax, [eax + eax*8]
lea ecx, [esi + eax*4 + 0x60]
call fcn.00422160
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x411f93
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0040151e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 3
call fcn.00422160
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call fcn.00421f80
mov eax, dword [esi + 0x1260]
lea ecx, [esp + 0xc]
push ecx
lea edx, [eax + eax*8]
lea ecx, [esi + edx*4 + 0x64]
call fcn.00422160
lea eax, [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x411f93
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0040151e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 4
call fcn.00422160
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 1
call fcn.00421f80
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
push ecx
call edi
mov ecx, dword [esi + 0x1260]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [esp + 0x30]
mov dword [esi + edx*4 + 0x68], eax
lea eax, [esp + 0xc]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x411f93
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0040151e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 5
call fcn.00422160
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 1
call fcn.00421f80
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov ecx, dword [esi + 0x1260]
add esp, 4
add ecx, 3
lea edx, [ecx + ecx*8]
mov dword [esi + edx*4], eax
mov eax, dword [esi + 0x1260]
lea ecx, [eax + eax*8 + 0x1b]
cmp dword [esi + ecx*4], 0
je 0x411f77
lea edx, [eax + eax*8]
mov eax, dword [esi + edx*4 + 0x68]
test eax, eax
je 0x411f77
lea eax, [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x411f93
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 0x4323a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], bl
call sub.MFC42.DLL_CString::Find
mov edi, eax
test edi, edi
jl 0x411f69
lea ecx, [esp + 0x24]
push edi
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 7
call fcn.00422160
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], bl
call fcn.00421f80
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
sub eax, edi
dec eax
push eax
lea eax, [esp + 0x2c]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 8
call fcn.00422160
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], bl
call fcn.00421f80
mov eax, dword [esi + 0x1260]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + eax*8]
mov eax, dword [esi + ecx*4 + 0x78]
push eax
lea ecx, [esi + ecx*4 + 0x70]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0x4323a0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
mov edi, eax
test edi, edi
jge 0x411ed5
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 1
call fcn.00421f80
inc dword [esi + 0x1260]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x411cb8
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 0
call fcn.004222fe
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00421f80
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret