Function at 0x401ad0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x402cc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 6
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 7
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov bl, 8
mov ecx, edi
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CPtrList::RemoveAll
mov eax, dword [esp + 0x54]
push 0
push 0
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x401c4b
mov ecx, dword [esp + 0x54]
lea edx, [esp + 8]
push ecx
push str.Replacement_File___s__Cant_be_open
push edx
call sub.MFC42.DLL_CString::Format
add esp, 8
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00402876
call fcn.00402270
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 7
call fcn.00402816
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop edi
pop ebx
add esp, 0x48
ret 4
push 0x4041b8
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x401f54
push esi
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00402876
lea eax, [esp + 0x20]
push 1
push eax
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x68], 9
call fcn.00402876
mov byte [esp + 0x64], bl
call fcn.00402350
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0x10
push 0x4041b4
push eax
call esi
add esp, 8
test eax, eax
je 0x401f3c
mov ecx, dword [esp + 0x1c]
push 0x4041b0
push ecx
call esi
add esp, 8
test eax, eax
jne 0x401d96
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00402876
lea eax, [esp + 0x30]
push 2
push eax
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x68], 0xa
call fcn.00402876
mov byte [esp + 0x64], bl
call fcn.00402350
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00402876
lea ecx, [esp + 0x24]
push 3
push ecx
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x68], 0xb
call fcn.00402876
mov byte [esp + 0x64], bl
call fcn.00402350
add esp, 0xc
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00402876
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x60], 0xc
call fcn.00402876
mov ecx, edi
mov byte [esp + 0x5c], bl
call fcn.00401800
jmp 0x401f38
mov eax, dword [esp + 0x1c]
push 0x4041ac
push eax
call esi
add esp, 8
test eax, eax
jne 0x401ed9
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00402876
lea eax, [esp + 0x2c]
push 2
push eax
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x68], 0xd
call fcn.00402876
mov byte [esp + 0x64], bl
call fcn.00402350
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00402876
lea ecx, [esp + 0x20]
push 3
push ecx
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x68], 0xe
call fcn.00402876
mov byte [esp + 0x64], bl
call fcn.00402350
add esp, 0xc
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00402876
lea ecx, [esp + 0x24]
push 4
push ecx
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x68], 0xf
call fcn.00402876
mov byte [esp + 0x64], bl
call fcn.00402350
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
call ebp
mov esi, eax
add esp, 4
test esi, esi
jle 0x401ea1
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00402876
push esi
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x64], 0x10
call fcn.00402876
mov ecx, edi
mov byte [esp + 0x60], bl
call fcn.00401950
jmp 0x401f38
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x18]
push str.Line__d_is_not_valid_:___s_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push str._nFieldNumber_soulld_be__0
call fcn.0040286a
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
jmp 0x401f2b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push str.Line__d_is_not_valid_:___s_
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
push str._n_tSould_be_in_format_:_n
call fcn.0040286a
push str.REP:OldString:NewString_or__n
lea ecx, [esp + 0x14]
call fcn.0040286a
push str.SET:Header:FieldNumber__0_:NewString
lea ecx, [esp + 0x14]
call fcn.0040286a
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00402876
call fcn.00402270
add esp, 4
inc dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x401c7f
pop ebp
pop esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 7
call fcn.00402816
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 4