Function at 0x401010
Capabilities:
Delete directory
Delete file

Disassembly:
jmp 0x401020
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x466a42
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x104]
test eax, eax
je 0x4012f5
push ebx
push esi
push edi
call fcn.004318b0
test eax, eax
je 0x4010e9
push 0
lea eax, [esp + 0x44]
push str.CCabFile_::_CleanUpCabinetFiles_n
push eax
call fcn.0044cb10
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x240]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x240]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.004318e0
lea eax, [esp + 0x240]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
mov ecx, dword [0x4855a4]
mov dword [esp + 0x10], ecx
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x44c], 0
call fcn.0045ce46
push 0x47d0e0
lea edx, [esp + 0x20]
mov bl, 1
push eax
push edx
mov byte [esp + 0x454], bl
call fcn.0045d021
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44c], 2
call fcn.0045cec5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x448], bl
call fcn.0045cdd8
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 0
call fcn.0045cdd8
push 0xa
lea ecx, [esp + 0x24]
call fcn.0045c599
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x44c], 3
call fcn.004013a0
mov eax, dword [esp + 0x24]
mov bl, 4
test eax, eax
mov byte [esp + 0x448], bl
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], eax
je 0x40120c
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.00401310
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44c], 5
call fcn.0045cec5
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], bl
call fcn.0045cdd8
mov eax, dword [esp + 0x10]
push eax
call edi
mov esi, eax
call fcn.004318b0
test eax, eax
je 0x401204
mov ecx, dword [esp + 0x10]
push esi
push ecx
lea edx, [esp + 0x48]
push str.Delete_File_:__s____d_n
push edx
call fcn.0044cb10
add esp, 0x10
lea eax, [esp + 0x40]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x401194
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp - 1], al
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp + 0x104], 0
call fcn.004318b0
test eax, eax
je 0x4012cd
push 0
lea ecx, [esp + 0x344]
push str.CCabFile_::_CleanUpCabinetFiles_n
push ecx
call fcn.0044cb10
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x140]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x140]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x340]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x140]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.00431c70
call fcn.00431840
mov ecx, eax
call fcn.004318f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x448], 0
call fcn.0045c60d
lea ecx, [esp + 0x10]
mov dword [esp + 0x448], 0xffffffff
call fcn.0045cdd8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x434]
pop ebp
mov dword fs:[0], ecx
add esp, 0x43c
ret