Function at 0x401bd0
Capabilities:
Delete file

Disassembly:
sub esp, 0xd68
push edi
mov ecx, 0x102
xor eax, eax
lea edi, [esp + 0x961]
mov byte [esp + 0x960], 0
mov byte [esp + 0x148], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x102
xor eax, eax
lea edi, [esp + 0x149]
mov byte [esp + 0x554], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x102
xor eax, eax
lea edi, [esp + 0x555]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0xd74]
lea ecx, [esp + 0x960]
push eax
push str._s.
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 8]
lea eax, [esp + 0x960]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
jne 0x401c66
or eax, eax
pop edi
add esp, 0xd68
ret
push ebp
mov ebp, dword [esp + 0xd7c]
push esi
mov ecx, 0x102
mov eax, 0x20202020
lea edi, [esp + 0x150]
mov edx, dword [esp + 0xd7c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
stosb byte es:[edi], al
push ecx
push edx
lea eax, [esp + 0x158]
push 0x41939c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov esi, 0x419398
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401cd3
test cl, cl
je 0x401ccf
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401cd3
add eax, 2
add esi, 2
test cl, cl
jne 0x401caf
xor eax, eax
jmp 0x401cd8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401e87
mov esi, 0x419394
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401d0d
test cl, cl
je 0x401d09
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401d0d
add eax, 2
add esi, 2
test cl, cl
jne 0x401ce9
xor eax, eax
jmp 0x401d12
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401e87
mov ecx, 0x102
mov eax, 0x20202020
lea edi, [esp + 0x55c]
mov edx, dword [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x28]
stosb byte es:[edi], al
lea eax, [esp + 0x55c]
push eax
push ecx
push edx
call fcn.00404da0
lea eax, [esp + 0x15c]
push eax
call fcn.00404d60
add esp, 0x10
cmp eax, 2
jne 0x401dc9
mov esi, ebp
lea eax, [esp + 0x55c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401d87
test cl, cl
je 0x401d83
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401d87
add eax, 2
add esi, 2
test cl, cl
jne 0x401d63
xor eax, eax
jmp 0x401d8c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x401dc9
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
test eax, eax
jne 0x401db4
lea ecx, [esp + 0x150]
push ecx
push str._DirRemove__File_Delete_Succeed.......__s_
jmp 0x401dc1
lea edx, [esp + 0x150]
push edx
push str._DirRemove__File_Delete_Failure.......__s_
call fcn.00402650
add esp, 8
lea eax, [esp + 0x150]
push eax
call fcn.00404d60
add esp, 4
cmp eax, 1
jne 0x401e87
mov edx, dword [esp + 0xd78]
lea ecx, [esp + 0x150]
push ebp
push ecx
push edx
call fcn.00401bd0
add esp, 0xc
mov esi, ebp
lea eax, [esp + 0x55c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401e28
test cl, cl
je 0x401e24
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401e28
add eax, 2
add esi, 2
test cl, cl
jne 0x401e04
xor eax, eax
jmp 0x401e2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x401e87
lea eax, [esp + 0x150]
push 0x419338
push eax
call fcn.00401ec0
add esp, 8
test eax, eax
jne 0x401e87
test byte [esp + 0x10], 5
je 0x401e64
lea ecx, [esp + 0x150]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esp + 0x150]
push eax
push str._DirRemove__Remove_Directory_.......__s_
call fcn.00402650
add esp, 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401c6f
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebp
mov eax, 1
pop edi
add esp, 0xd68
ret