Function at 0x40bd10
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42e3a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [esp + 0x54]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CStdioFile::CStdioFile
push 0
push 0x5001
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], 0
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x40bd85
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0042d62a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 4
push 0x43844c
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10]
push eax
mov ebx, 1
push 0x438448
push ecx
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_operator_2
push 0x438444
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push eax
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 2
call fcn.0042d5b2
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], bl
call fcn.0042d5b2
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40be2c
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], al
call fcn.0042d5b2
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0042d62a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 4
push ebp
jmp 0x40be33
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 8]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov esi, 0x438dcc
mov eax, dword [ebp]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40be68
test cl, cl
je 0x40be64
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40be68
add eax, 2
add esi, 2
test cl, cl
jne 0x40be44
xor eax, eax
jmp 0x40be6d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bec2
push ebp
lea eax, [esp + 0x1c]
push 0x438440
push eax
call sub.MFC42.DLL_operator_2
push 0x438444
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0x54], 5
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 4
call fcn.0042d5b2
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], bl
call fcn.0042d5b2
mov eax, dword [ebp + 4]
lea edi, [ebp + 4]
mov esi, 0x438dcc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bef1
test cl, cl
je 0x40beed
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bef1
add eax, 2
add esi, 2
test cl, cl
jne 0x40becd
xor eax, eax
jmp 0x40bef6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bf4b
push edi
lea eax, [esp + 0x24]
push 0x43843c
push eax
call sub.MFC42.DLL_operator_2
push 0x438444
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x5c], 6
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0x54], 7
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 6
call fcn.0042d5b2
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], bl
call fcn.0042d5b2
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 0xc]
mov esi, 0x438dcc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bf7a
test cl, cl
je 0x40bf76
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bf7a
add eax, 2
add esi, 2
test cl, cl
jne 0x40bf56
xor eax, eax
jmp 0x40bf7f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bfd4
push edi
lea eax, [esp + 0x2c]
push 0x438438
push eax
call sub.MFC42.DLL_operator_2
push 0x438444
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x5c], 8
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0x54], 9
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x24]
mov byte [esp + 0x50], 8
call fcn.0042d5b2
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], bl
call fcn.0042d5b2
mov eax, dword [ebp + 8]
lea edi, [ebp + 8]
mov esi, 0x438dcc
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40c003
test cl, cl
je 0x40bfff
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40c003
add eax, 2
add esi, 2
test cl, cl
jne 0x40bfdf
xor eax, eax
jmp 0x40c008
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c05d
push edi
lea eax, [esp + 0x34]
push str.____n
push eax
call sub.MFC42.DLL_operator_2
push 0x438444
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x5c], 0xa
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0x54], 0xb
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 0xa
call fcn.0042d5b2
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], bl
call fcn.0042d5b2
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40be2f
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x58]
mov byte [esp + 0x50], 0
call fcn.0042d5b2
lea ecx, [esp + 0x34]
mov dword [esp + 0x50], 0xffffffff
call fcn.0042d62a
mov ecx, dword [esp + 0x48]
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 4