Function at 0x405370
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4385f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x24]
call sub.MFC70.DLL_Ordinal_503
xor ebp, ebp
mov dword [esp + 0x54], ebp
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 8]
cmp eax, ebp
mov byte [esp + 0x54], 1
mov dword [esp + 0x18], eax
jle 0x40544e
mov edi, dword [sym.imp.MSVCR70.dll__mbscmp]
lea esp, [esp]
mov edx, dword [esp + 0x5c]
push 1
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edx + 4]
lea esi, [ebp*4]
add ecx, esi
call fcn.004018f0
mov eax, dword [eax]
push 0x43a8ec
push eax
call edi
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40541c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x405445
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
mov eax, 0x43a8ec
add ecx, esi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405431
sub eax, esi
push eax
push 0x43a8ec
call fcn.00401ac0
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jl 0x4053d0
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edi
jle 0x405695
lea esp, [esp]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 4]
lea eax, [edi*4]
add edx, eax
push str.acad.lsp
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004020a0
add esp, 0xc
mov eax, dword [eax]
mov ebx, dword [esp + 0x10]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
mov byte [esp + 0x54], 2
je 0x40552b
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jge 0x4054b3
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401690
jmp 0x40552b
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4054d5
cmp eax, dword [esi]
jne 0x4054d5
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40550d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x405935
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405524
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40554e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403050
add esp, 4
test al, al
je 0x405572
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x2c]
call sub.MFC70.DLL_Ordinal_5473
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
lea eax, [edi*4]
push str.acadapp.lsp
add ecx, eax
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004020a0
add esp, 0xc
mov eax, dword [eax]
mov ebx, dword [esp + 0x10]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
mov byte [esp + 0x54], 3
je 0x40563d
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jge 0x4055c5
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401690
jmp 0x40563d
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x4055e7
cmp eax, dword [esi]
jne 0x4055e7
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40561f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x405935
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405636
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x54], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405660
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
call fcn.00403050
add esp, 4
test al, al
je 0x405684
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x2c]
call sub.MFC70.DLL_Ordinal_5473
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x405460
lea ecx, [esp + 0x38]
call sub.MFC70.DLL_Ordinal_503
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
mov byte [esp + 0x54], 4
mov ebx, eax
jle 0x40570d
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4056c0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + esi*4]
push eax
call fcn.00404570
add esp, 4
test eax, eax
je 0x405708
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
push 0x20
push eax
call edi
test eax, eax
je 0x405708
mov edx, dword [esp + 0x28]
mov eax, dword [edx + esi*4]
push eax
call ebp
test eax, eax
jne 0x405708
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
lea eax, [eax + esi*4]
push eax
push ecx
lea ecx, [esp + 0x40]
call sub.MFC70.DLL_Ordinal_5473
inc esi
cmp esi, ebx
jl 0x4056c0
mov esi, dword [esp + 0x40]
mov dword [esp + 0x18], esi
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x5c], ebp
test esi, esi
mov byte [esp + 0x54], 5
mov dword [esp + 0x14], 0
jle 0x405832
lea ecx, [ecx]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebp - 0xc]
mov edi, eax
mov eax, dword [ebp - 4]
lea ebx, [edx + ecx]
mov dword [esp + 0x1c], ecx
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
mov esi, edi
sub eax, ebx
sub esi, ebp
or eax, ecx
mov dword [esp + 0x20], edx
jge 0x405787
push ebx
lea ecx, [esp + 0x60]
call fcn.00401470
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
cmp esi, edx
ja 0x40578e
lea edi, [esi + ebp]
mov ecx, dword [esp + 0x1c]
mov esi, edi
lea edi, [edx + ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x43a938
mov eax, esi
mov dword [ebp - 0xc], ebx
mov byte [ebx + ebp], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4057b6
mov edi, dword [ebp - 0xc]
sub eax, ecx
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
lea ebx, [edi + edx]
mov dword [esp + 0x1c], esi
sub eax, ebx
sub esi, ebp
or eax, ecx
mov dword [esp + 0x20], edx
jge 0x4057f6
push ebx
lea ecx, [esp + 0x60]
call fcn.00401470
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
cmp esi, edi
ja 0x405800
add esi, ebp
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x1c]
mov ecx, edx
mov eax, ecx
shr ecx, 2
add edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [ebp - 0xc], ebx
mov byte [ebx + ebp], 0
mov dword [esp + 0x14], eax
jl 0x405740
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x4058c0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x20]
push 0x43aa90
push edx
call fcn.00402f80
push 0x43aa80
push eax
lea eax, [esp + 0x34]
mov bl, 6
push eax
mov byte [esp + 0x6c], bl
call fcn.004020a0
add esp, 0x18
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x60], 7
call sub.MFC70.DLL_Ordinal_1014
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x54], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40589d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x54], 4
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4058e0
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 1
call sub.MFC70.DLL_Ordinal_686
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405911
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC70.DLL_Ordinal_686
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret
jmp fcn.004011b0