Function at 0x41a520
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42b54b
mov eax, dword fs:[0]
push eax
mov eax, 0x13c0
mov dword fs:[0], esp
call fcn.0041c570
mov eax, dword [0x4377f4]
xor eax, esp
push ebx
push ebp
push esi
mov dword [esp + 0x13c8], eax
push edi
xor ebx, ebx
mov dword [esp + 0x13d8], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push ebx
push 1
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1410]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x140c], 2
mov byte [ecx + 4], bl
call fcn.004026ab
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041a180
mov edi, dword [esp + 0x44]
add esp, 0x2c
cmp edi, ebx
je 0x41a744
mov ecx, dword [esp + 0x1c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x41a744
mov ebp, eax
imul ebp, ebp, 0x1c
mov dword [esp + 0x10], eax
jmp 0x41a5e2
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov edx, dword [esp + 0x1400]
lea esi, [edx + 4]
lea esp, [esp]
test edx, edx
je 0x41a6ca
mov ecx, dword [esp + 0x1404]
sub ecx, edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x41a6ca
mov eax, dword [esi + 0x10]
mov edx, dword [edi + ebp - 8]
lea ecx, [edi + ebp - 0x1c]
push 0xffffffffffffffff
sub edx, eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004029c1
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edi, 0x10
cmp eax, edi
jae 0x41a64b
lea ecx, [esp + 0x28]
cmp dword [esi + 0x14], edi
jb 0x41a654
mov eax, dword [esi]
jmp 0x41a656
mov eax, esi
push ecx
push eax
call fcn.0041d945
add esp, 8
test eax, eax
mov eax, dword [esp + 0x3c]
je 0x41a6a2
cmp eax, edi
jb 0x41a679
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041c5ad
add esp, 4
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1400]
inc ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
add esi, 0x1c
jmp 0x41a5f0
cmp eax, edi
jb 0x41a6b3
mov edx, dword [esp + 0x28]
push edx
call fcn.0041c5ad
add esp, 4
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jmp 0x41a730
mov eax, dword [edi + ebp - 4]
mov esi, 0x10
cmp eax, esi
jb 0x41a6dd
mov edi, dword [edi + ebp - 0x18]
jmp 0x41a6e1
lea edi, [edi + ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41a715
test al, 0x10
je 0x41a715
mov eax, dword [esp + 0x18]
cmp dword [eax + ebp - 4], esi
jb 0x41a708
mov eax, dword [eax + ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x41a730
lea eax, [eax + ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x41a730
mov eax, dword [esp + 0x18]
cmp dword [eax + ebp - 4], esi
jb 0x41a725
mov eax, dword [eax + ebp - 0x18]
jmp 0x41a729
lea eax, [eax + ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
sub ebp, 0x1c
dec eax
mov dword [esp + 0x10], eax
jne 0x41a5dc
xor ebx, ebx
mov eax, dword [esp + 0x13f8]
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x13e4]
jae 0x41a762
lea eax, [esp + 0x13e4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [esp + 0x13f8], esi
mov eax, dword [esp + 0x13e4]
jae 0x41a780
lea eax, [esp + 0x13e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41a817
test al, 0x10
je 0x41a817
xor eax, eax
mov ecx, 0x4e2
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
cmp dword [esp + 0x13f8], esi
mov ecx, dword [esp + 0x13e4]
jae 0x41a7bc
lea ecx, [esp + 0x13e4]
lea edx, [esp + 0x44]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41a7c0
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x24]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x44]
push edx
mov word [esp + 0x44], ax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
mov word [esp + 0x38], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41a841
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push ecx
push eax
call fcn.00402aec
mov edx, dword [esp + 0x28]
push edx
call fcn.0041c5ad
add esp, 0x14
cmp dword [esp + 0x13f8], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
jb 0x41a866
mov eax, dword [esp + 0x13e4]
push eax
call fcn.0041c5ad
add esp, 4
mov esi, dword [esp + 0x1400]
cmp esi, ebx
mov dword [esp + 0x13f8], 0xf
mov dword [esp + 0x13f4], ebx
mov byte [esp + 0x13e4], 0
je 0x41a8af
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1404]
push ecx
lea edx, [esp + 0x1400]
push edx
push eax
push esi
call fcn.00402aec
push esi
call fcn.0041c5ad
add esp, 0x14
mov ecx, dword [esp + 0x13d0]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c4]
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c2f6
add esp, 0x13cc
ret