Function at 0x415700
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x436160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [ecx + 0xb80]
push esi
add eax, 0xd0
lea ecx, [esp + 0x14]
push eax
call fcn.00432388
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x415cac
push 0
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::CFile_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CFile::GetLength
test eax, eax
mov dword [esp + 4], eax
jbe 0x415c9e
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 4]
mov byte [esp + 0x38], 2
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 4]
lea ecx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CFile::Read
test eax, eax
jne 0x4157ba
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::ReleaseBuffer
jmp 0x415c90
mov ecx, dword [esp + 4]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x40], 3
call fcn.00408fd0
add esp, 8
test eax, eax
je 0x415c82
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx - 8]
lea ecx, [esp + 0xc]
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::GetBuffer
test eax, eax
mov dword [esp + 8], eax
je 0x415c6d
push ebx
push ebp
push edi
lea edx, [esp + 0x24]
push 1
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x34], 0
call fcn.00415e30
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x34]
add esp, 0x10
mov ecx, edi
and esi, 0xff
call sub.MFC42.DLL_CString::Empty
push esi
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push esi
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00415e30
add esp, 0x10
mov ecx, edi
mov ebx, eax
push esi
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [edi + 4]
push 2
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00415e30
lea ecx, [edi + 6]
mov esi, eax
push 2
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x2c]
and esi, ebx
push edx
push eax
and esi, 1
call fcn.00415e30
lea ecx, [edi + 8]
and esi, eax
push 1
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00415e30
lea ecx, [edi + 0xc]
and esi, eax
push 4
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.00415e30
and esi, eax
mov eax, dword [esp + 0x54]
add esp, 0x40
lea ecx, [edi + 0x10]
test eax, eax
je 0x41590a
test ecx, ecx
je 0x41590a
mov edx, dword [esp + 0x10]
cmp edx, 4
jae 0x4158f1
xor ecx, ecx
jmp 0x415910
mov ebx, dword [eax]
sub edx, 4
add eax, 4
mov dword [ecx], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov ecx, 1
jmp 0x415910
mov edx, dword [esp + 0x10]
xor ecx, ecx
and esi, ecx
lea ecx, [edi + 0x14]
test eax, eax
je 0x41593b
test ecx, ecx
je 0x41593b
cmp edx, 4
jb 0x41593b
mov ebx, dword [eax]
sub edx, 4
add eax, 4
mov dword [ecx], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov ecx, 1
jmp 0x41593d
xor ecx, ecx
and esi, ecx
lea ecx, [edi + 0x18]
test eax, eax
je 0x415968
test ecx, ecx
je 0x415968
cmp edx, 4
jb 0x415968
mov ebx, dword [eax]
sub edx, 4
add eax, 4
mov dword [ecx], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, 1
jmp 0x41596a
xor eax, eax
lea ecx, [esp + 0x4c]
and esi, eax
push 1
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ebx, [edi + 0x1c]
mov byte [esp + 0x5c], 0
call fcn.00415e30
mov ebp, dword [esp + 0x5c]
add esp, 0x10
mov ecx, ebx
and ebp, 0xff
call sub.MFC42.DLL_CString::Empty
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push ebp
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00415e30
add esp, 0x10
mov ecx, ebx
mov dword [esp + 0x24], eax
push ebp
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x4c]
push 1
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
and esi, ebx
push edx
lea ebx, [edi + 0x20]
mov byte [esp + 0x5c], 0
call fcn.00415e30
mov ebp, dword [esp + 0x5c]
add esp, 0x10
mov ecx, ebx
and ebp, 0xff
call sub.MFC42.DLL_CString::Empty
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push ebp
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00415e30
add esp, 0x10
mov ecx, ebx
mov dword [esp + 0x24], eax
push ebp
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
and esi, ecx
push 1
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ebx, [edi + 0x24]
mov byte [esp + 0x5c], 0
call fcn.00415e30
mov ebp, dword [esp + 0x5c]
add esp, 0x10
mov ecx, ebx
and ebp, 0xff
call sub.MFC42.DLL_CString::Empty
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push ebp
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00415e30
add esp, 0x10
mov ecx, ebx
mov dword [esp + 0x24], eax
push ebp
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [edi + 0x28]
push 4
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00415e30
mov ebp, dword [esp + 0x34]
lea ebx, [edi + 0x2c]
push 4
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x2c]
and eax, ebp
push ecx
push edx
and esi, eax
call fcn.00415e30
and esi, eax
mov eax, dword [ebx]
add esp, 0x20
test eax, eax
je 0x415bdc
lea eax, [edi + 0x30]
push 4
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00415e30
and esi, eax
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [edi + 0x34]
test eax, eax
je 0x415b1a
test ecx, ecx
je 0x415b1a
mov ebx, dword [esp + 0x10]
mov edx, 2
cmp ebx, edx
jb 0x415b1a
mov bx, word [eax]
mov word [ecx], bx
mov ebx, dword [esp + 0x10]
sub ebx, edx
add eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov eax, 1
jmp 0x415b1c
xor eax, eax
and esi, eax
lea eax, [esp + 0x4c]
push 1
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea ebx, [edi + 0x38]
mov byte [esp + 0x5c], 0
call fcn.00415e30
mov ebp, dword [esp + 0x5c]
add esp, 0x10
mov ecx, ebx
and ebp, 0xff
call sub.MFC42.DLL_CString::Empty
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push ebp
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00415e30
add esp, 0x10
mov ecx, ebx
mov dword [esp + 0x24], eax
push ebp
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
and esi, ecx
push 1
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ebx, [edi + 0x3c]
mov byte [esp + 0x5c], 0
call fcn.00415e30
mov ebp, dword [esp + 0x5c]
add esp, 0x10
mov ecx, ebx
and ebp, 0xff
call sub.MFC42.DLL_CString::Empty
push ebp
mov ecx, ebx
call sub.MFC42.DLL_CString::GetBuffer
push ebp
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00415e30
add esp, 0x10
mov ecx, ebx
mov dword [esp + 0x24], eax
push ebp
call sub.MFC42.DLL_CString::ReleaseBuffer
and esi, dword [esp + 0x24]
lea ecx, [edi + 0x40]
push 1
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00415ce0
add edi, 0x44
push 4
lea ecx, [esp + 0x24]
push edi
lea edx, [esp + 0x2c]
push ecx
push edx
and esi, eax
call fcn.00415e30
add esp, 0x20
and esi, eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 0
call fcn.0043238e
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebp
mov eax, esi
pop ebx
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.0043238e
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 4