Function at 0x1000158a
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov eax, 0x10013470
call int.100057b0
sub esp, 0x460
and byte [ebp - 0xd], 0
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x100018ee
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 4
cmp ecx, ebx
mov dword [ebp - 0x18], ecx
jle 0x100018ee
push esi
mov esi, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x3c]
mov al, byte [esi]
mov byte [ebp - 0x3c], al
call fcn.10001b79
push dword [0x100141c0]
lea ecx, [ebp - 0x3c]
push ebx
push esi
call fcn.10001a16
mov eax, dword [0x100141c0]
push 1
push eax
lea eax, [ebp + 0xb]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
mov byte [ebp + 0xb], 0x2e
call fcn.10001ae4
mov esi, eax
cmp esi, ebx
jl 0x100018df
cmp dword [ebp - 0x34], esi
jb 0x10001627
cmp dword [ebp - 0x38], ebx
je 0x10001627
lea ecx, [ebp - 0x3c]
call fcn.10001b4d
mov eax, dword [ebp - 0x38]
mov ebx, 0x100141bc
add eax, esi
jmp 0x1000162e
mov ebx, 0x100141bc
mov eax, ebx
and byte [eax], 0
mov esi, dword [ebp - 0x38]
test esi, esi
jne 0x1000163a
mov esi, ebx
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.10001b79
push esi
call fcn.100058c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001bed
xor esi, esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x24], esi
jbe 0x100018d1
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call fcn.10001b79
lea eax, [ebp - 0x2c]
push str..BlockTemp
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 2
call fcn.10002002
add esp, 0xc
push dword [0x100141c0]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
push esi
push eax
call fcn.10001a16
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.10001b79
mov eax, dword [ebp - 0x48]
cmp eax, esi
jne 0x100016bd
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x5c], al
call fcn.10001b79
lea eax, [ebp - 0x2c]
push str..block
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.10002002
add esp, 0xc
push dword [0x100141c0]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
push esi
push eax
call fcn.10001a16
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 4
call fcn.10001b79
mov eax, dword [ebp - 0x48]
cmp eax, esi
jne 0x10001717
mov eax, ebx
push eax
call fcn.100025e8
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x28]
cmp eax, esi
pop ecx
jne 0x1000172a
mov eax, ebx
push eax
call fcn.100025cf
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x58]
cmp eax, esi
pop ecx
jne 0x1000173d
mov eax, ebx
push eax
call fcn.100025cf
cmp dword [ebp + 8], 0xffffffff
pop ecx
mov dword [ebp - 0x1c], eax
je 0x10001887
cmp dword [ebp - 0x14], 0xffffffff
je 0x10001887
cmp eax, 0xffffffff
je 0x10001887
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0x18], esi
jle 0x100017fc
mov eax, dword [edi + 8]
cmp dword [esi + eax + 8], 1
jne 0x1000179f
push dword [esi + eax]
push dword [ebp - 0x14]
call fcn.10002618
pop ecx
test al, al
pop ecx
je 0x100017fc
mov eax, dword [edi + 8]
push dword [esi + eax + 4]
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x14]
jmp 0x100017c6
mov eax, dword [esi + eax + 0xc]
shl eax, 0xa
push eax
push dword [ebp - 0x1c]
call fcn.10002618
pop ecx
test al, al
pop ecx
je 0x100017fc
mov eax, dword [edi + 8]
push dword [esi + eax + 4]
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 0x1c]
call int.10004e75
add esp, 0xc
test al, al
je 0x100017fc
mov eax, dword [edi + 8]
push dword [esi + eax + 4]
lea eax, [ebp - 0x46c]
push eax
push dword [ebp + 8]
call fcn.10004eac
add esp, 0xc
test al, al
je 0x100017fc
inc ebx
add esi, 0x10
cmp ebx, dword [ebp - 0x18]
jl 0x10001771
fld dword [edi + 0x14]
fmul dword [0x100141c4]
push ecx
fstp dword [esp]
call fcn.10002d3a
cmp dword [ebp - 0x18], ebx
pop ecx
jne 0x10001882
lea eax, [ebp + 8]
push eax
call fcn.10002600
lea eax, [ebp - 0x14]
push eax
call fcn.10002600
mov eax, dword [ebp - 0x28]
pop ecx
test eax, eax
pop ecx
mov esi, 0x100141bc
jne 0x10001836
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x28]
and al, 0xfe
test ecx, ecx
jne 0x10001848
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10001859
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x10001869
mov ecx, esi
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x10001872
mov eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x10001882
mov byte [ebp - 0xd], 1
mov ebx, 0x100141bc
lea eax, [ebp + 8]
push eax
call fcn.10002600
lea eax, [ebp - 0x14]
push eax
call fcn.10002600
lea eax, [ebp - 0x1c]
push eax
call fcn.10002600
mov eax, dword [ebp - 0x58]
add esp, 0xc
test eax, eax
jne 0x100018ae
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.10001b79
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.10001b79
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001b79
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x3c]
call fcn.10001b79
pop esi
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4