Function at 0x404a70
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x544f68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebp
push esi
push edi
mov eax, dword [0x591d64]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
call fcn.00415458
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x404ab2
push 0x80004005
call fcn.0040e230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], edi
mov ecx, dword [eax + 8]
cmp ecx, edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edi
jle 0x404bf5
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x404af4
mov eax, dword [esp + 0x44]
test edi, edi
jl 0x404cbc
cmp edi, dword [eax + 8]
jge 0x404cbc
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi*4]
lea eax, [ecx + edi*4]
mov eax, dword [ebx + 0xe8]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call fcn.0040de30
mov esi, dword [esp + 0x24]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404be6
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x404c33
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x34], esp
mov edi, esp
push eax
call fcn.0040e260
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [edi], eax
call fcn.00409ef0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push str.Msg:Delete_directory_succeed_
push eax
call fcn.0040d960
add esp, 0xc
push 0x56ece8
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x48], 1
call fcn.0040db20
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404bbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404be2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
inc edi
cmp edi, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
jl 0x404af0
lea eax, [esi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x30
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push str.Msg:Delete_file_succeed_
push edx
call fcn.0040d960
add esp, 0xc
push 0x56ece8
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x48], 2
call fcn.0040db20
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404be6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404be6
call fcn.0041359b
int3