Function at 0x4053a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4175d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
push str.ModifyTxtFile_InsertLine____
call fcn.00401180
add esp, 4
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::CFile
mov esi, dword [esp + 0x44]
push 0
push 2
lea ecx, [esp + 0x2c]
mov eax, dword [esi]
mov dword [esp + 0x44], 0
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x405469
push esi
lea eax, [esp + 0x48]
push str.ModifyTxtFile_InsertLine_____open_txt_file
push eax
call sub.MFC42.DLL_operator_2
push str._failed
lea ecx, [esp + 0x4c]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov byte [esp + 0x3c], 2
push eax
call fcn.00401180
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0041668a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x10
push 0x100000
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov ecx, 0x40000
xor eax, eax
mov edi, esi
push 0xfffff
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x28]
push esi
lea ecx, [esp + 0x2c]
call dword [edx + 0x3c]
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
push esi
mov byte [esp + 0x40], 3
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x50]
add esp, 4
lea ecx, [esp + 0xc]
mov eax, dword [edi]
push eax
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, 0xffffffff
jne 0x40556f
push 0x41fa7c
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_3
push edi
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x44], 4
push eax
call sub.MFC42.DLL_operator
push str._not_found
lea ecx, [esp + 0x4c]
mov bl, 5
push eax
push ecx
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov byte [esp + 0x3c], 6
push eax
call fcn.00401180
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
call fcn.0041668a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x10
lea ecx, [esp + 0x10]
call fcn.00416594
mov edx, dword [esp + 0x50]
push str.after
mov byte [esp + 0x40], 7
mov eax, dword [edx]
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40565f
mov eax, dword [edi]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
mov edi, dword [eax - 8]
mov eax, dword [ecx - 8]
add esi, edi
lea ecx, [esp + 0xc]
sub eax, esi
push eax
push edx
call sub.MFC42.DLL_CString::Right
mov edi, eax
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 8
call sub.MFC42.DLL_CString::Left
push 0x41f1d8
lea ecx, [esp + 0x54]
push eax
push ecx
mov byte [esp + 0x48], 9
call sub.MFC42.DLL_operator_1
mov edx, dword [esp + 0x48]
mov byte [esp + 0x3c], 0xa
push edx
push eax
lea eax, [esp + 0x54]
push eax
call sub.MFC42.DLL_operator
push edi
lea ecx, [esp + 0x48]
mov bl, 0xb
push eax
push ecx
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0xc
call fcn.004165ee
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x3c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 8
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x3c], 7
lea ecx, [esp + 0x18]
jmp 0x405718
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
sub eax, esi
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::Right
mov edi, eax
lea ecx, [esp + 0x1c]
push esi
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0xd
call sub.MFC42.DLL_CString::Left
mov edx, dword [esp + 0x48]
mov byte [esp + 0x3c], 0xe
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_operator
push 0x41f1d8
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x48], 0xf
call sub.MFC42.DLL_operator_1
push edi
lea edx, [esp + 0x54]
mov bl, 0x10
push eax
push edx
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0x11
call fcn.004165ee
lea ecx, [esp + 0x50]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 0xd
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x3c], 7
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
push 0
push 0
lea ecx, [esp + 0x2c]
call dword [eax + 0x30]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x2c]
call dword [edx + 0x40]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
push 0x41fa54
call fcn.00401180
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0041668a
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0x10