Function at 0x418470
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a427b
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x3a4]
test eax, eax
push esi
push edi
jle 0x4185ec
lea esi, [eax - 1]
test esi, esi
mov dword [esp + 0x14], esi
jl 0x4185ec
lea eax, [ebp + 0x39c]
mov dword [esp + 0x18], eax
jmp 0x4184c0
mov eax, dword [esp + 0x18]
lea ebx, [ebx]
test esi, esi
jl 0x4186f4
cmp esi, dword [eax + 8]
jge 0x4186f4
mov eax, dword [eax + 4]
mov edi, dword [eax + esi*4]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.0040c800
push str..jfrec
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x30], 0
call fcn.004010a0
add esp, 0xc
test edi, edi
mov byte [esp + 0x24], 1
je 0x4185c5
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edi, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x418544
test cl, cl
je 0x418540
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x418544
add eax, 2
add esi, 2
test cl, cl
jne 0x418520
xor eax, eax
jmp 0x418549
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418602
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
nop
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x418584
test cl, cl
je 0x418580
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x418584
add eax, 2
add esi, 2
test cl, cl
jne 0x418560
xor eax, eax
jmp 0x418589
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418602
mov esi, dword [esp + 0x2c]
lea eax, [edi + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4185b8
test cl, cl
je 0x4185b4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4185b8
add eax, 2
add esi, 2
test cl, cl
jne 0x418594
xor eax, eax
jmp 0x4185bd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418602
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
dec esi
mov dword [esp + 0x14], esi
jns 0x4184b6
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
mov ecx, dword [ebp + 0x160]
test ecx, ecx
je 0x418612
push edi
call fcn.00404cf0
mov eax, dword [edi + 0x238]
test eax, eax
je 0x418626
push 1
push edi
mov ecx, ebp
call fcn.00417290
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [edi + 0x128]
push eax
call esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
push str..inpart
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004010a0
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
mov dword [edi + 0x240], 1
cmp dword [ebp + 0x394], edi
jne 0x4186ae
mov dword [ebp + 0x394], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 1
push eax
call sub.MFC71.DLL_CPtrArray::RemoveAt
push edi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
call fcn.004a11bc
int3