Function at 0x4057a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
push str.ModifyTxtFile_DeleteLine____
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 0x405869
push esi
lea eax, [esp + 0x4c]
push str.ModifyTxtFile_DeleteLine_____open_txt_file
push eax
call sub.MFC42.DLL_operator_2
push str._failed
lea ecx, [esp + 0x48]
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 + 0x44]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
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 8
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 + 0x4c]
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 0x40596f
push 0x41fb08
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
push edi
push eax
lea eax, [esp + 0x50]
mov byte [esp + 0x44], 4
push eax
call sub.MFC42.DLL_operator
push str._not_found
lea ecx, [esp + 0x48]
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 + 0x44]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
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 8
mov edx, dword [edi]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
add eax, esi
push eax
push 0x41f1d8
call sub.MFC42.DLL_CString::Find_2
mov edi, eax
cmp edi, 0xffffffff
jne 0x405993
mov eax, dword [esp + 0xc]
mov edi, dword [eax - 8]
push 0
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [eax + esi]
cmp esi, 2
mov eax, esi
jl 0x4059c7
add ecx, 0xfffffffe
cmp byte [ecx + 1], 0xa
jne 0x4059ba
cmp byte [ecx], 0xd
je 0x405acc
dec eax
dec ecx
cmp eax, 2
jge 0x4059ab
cmp esi, eax
je 0x4059c7
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.00416594
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
mov byte [esp + 0x3c], 7
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xc]
sub eax, edi
push eax
push edx
call sub.MFC42.DLL_CString::Right
mov edi, eax
lea eax, [esp + 0x1c]
push esi
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 8
call sub.MFC42.DLL_CString::Left
push edi
lea ecx, [esp + 0x1c]
mov bl, 9
push eax
push ecx
mov byte [esp + 0x48], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0xa
call fcn.004165ee
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x24]
push 0
push 0
lea ecx, [esp + 0x2c]
call dword [edx + 0x30]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
call dword [eax + 0x40]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
push 0x41fae8
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 8
mov esi, eax
jmp 0x4059c7