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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083e01
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x100a7070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov edi, dword [ecx + 4]
test edi, edi
je 0x1003f5f4
mov edx, dword [ecx + 0x18]
cmp edi, edx
je 0x1003f5f4
mov eax, dword [edi + 0xc]
cmp eax, edx
je 0x1003f5ec
mov edi, eax
mov eax, dword [edi + 0xc]
cmp eax, edx
jne 0x1003f5e3
test edi, edi
je 0x1003f5f4
mov edx, ecx
jmp 0x1003f5f8
xor edx, edx
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edi
test edx, edx
je 0x1003f613
test edi, edi
je 0x1003f613
xor eax, eax
jmp 0x1003f618
mov eax, 1
test eax, eax
jne 0x1003fc2d
test edx, edx
je 0x1003f62c
test edi, edi
je 0x1003f62c
mov eax, dword [edi]
jmp 0x1003f631
mov eax, 0x100969a4
push eax
lea ecx, [ebp - 0x20]
call fcn.10018a60
mov dword [ebp - 4], 0
mov edx, str.files
mov eax, dword [ebp - 0x20]
mov ecx, eax
nop dword [eax + eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x1003f676
test si, si
je 0x1003f672
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1003f676
add ecx, 4
add edx, 4
test si, si
jne 0x1003f650
xor ecx, ecx
jmp 0x1003f67b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
test cl, cl
je 0x1003f6c6
lea ecx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fbcf
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003f6bd
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call ebx
jmp 0x1003fbcf
mov ecx, edx
call esi
jmp 0x1003fbcf
lea ecx, [ebp - 0x50]
call fcn.1003efe0
mov edx, dword [ebp - 0x24]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x38]
add esi, 0xfffffff0
mov edx, dword [edx + 0x1c]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x1003f74c
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1003f740
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1003f740
call fcn.10019540
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1003f735
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x10097a44
jne 0x1003f731
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x38], eax
jmp 0x1003f74c
mov ecx, edx
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x38], eax
jmp 0x1003f74c
push dword [edx - 0xc]
lea ecx, [ebp - 0x38]
push edx
call fcn.10019610
push 0x10097bb8
lea ecx, [ebp - 0x14]
call fcn.100328d0
test eax, eax
je 0x1003f7f9
push 0x10097bb8
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x14]
call fcn.10032960
cmp dword [eax], 0
je 0x1003f796
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1003f796
mov edx, dword [eax + 8]
test edx, edx
je 0x1003f796
cmp dword [ecx + 4], 0
je 0x1003f796
mov edx, dword [edx + 4]
test edx, edx
jne 0x1003f79b
xor ecx, ecx
jmp 0x1003f7af
mov edx, 0x100969a4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f7a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10019610
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x4c]
add ebx, 0xfffffff0
lea esi, [eax - 0x10]
cmp esi, ebx
je 0x1003f7f9
cmp dword [ebx + 0xc], 0
jl 0x1003f7ed
mov edx, dword [esi]
cmp edx, dword [ebx]
jne 0x1003f7ed
mov ecx, esi
call fcn.10019540
mov ecx, ebx
mov esi, eax
call fcn.10014570
lea eax, [esi + 0x10]
mov dword [ebp - 0x4c], eax
jmp 0x1003f7f9
push dword [eax - 0xc]
lea ecx, [ebp - 0x4c]
push eax
call fcn.10019610
push str.size
lea ecx, [ebp - 0x14]
call fcn.100328d0
test eax, eax
je 0x1003f85f
push str.size
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x14]
call fcn.10032960
cmp dword [eax], 0
je 0x1003f85a
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1003f85a
mov eax, dword [eax + 8]
test eax, eax
je 0x1003f85a
cmp dword [ecx + 4], 0
jne 0x1003f83b
mov eax, 0x100969a4
jmp 0x1003f842
mov eax, dword [eax + 4]
test eax, eax
je 0x1003f85a
push 0xa
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0
push ecx
push eax
call fcn.10065322
add esp, 0xc
jmp 0x1003f85c
xor eax, eax
mov dword [ebp - 0x30], eax
push str.restart_move
lea ecx, [ebp - 0x14]
call fcn.100328d0
test eax, eax
je 0x1003f8c8
push str.restart_move
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x14]
call fcn.10032960
cmp dword [eax], 0
je 0x1003f8c3
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1003f8c3
mov eax, dword [eax + 8]
test eax, eax
je 0x1003f8c3
cmp dword [ecx + 4], 0
jne 0x1003f8a4
mov eax, 0x100969a4
jmp 0x1003f8ab
mov eax, dword [eax + 4]
test eax, eax
je 0x1003f8c3
push 0xa
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push ecx
push eax
call fcn.10065322
add esp, 0xc
jmp 0x1003f8c5
xor eax, eax
mov dword [ebp - 0x28], eax
push str.path
lea ecx, [ebp - 0x14]
call fcn.100328d0
test eax, eax
je 0x1003f939
push str.path
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x14]
call fcn.10032960
cmp dword [eax], 0
je 0x1003f911
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1003f911
mov edx, dword [eax + 8]
test edx, edx
je 0x1003f911
cmp dword [ecx + 4], 0
je 0x1003f911
mov edx, dword [edx + 4]
test edx, edx
jne 0x1003f916
xor ecx, ecx
jmp 0x1003f92f
mov edx, 0x100969a4
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f920
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.10019610
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x48]
add esi, 0xfffffff0
mov edx, dword [eax + 0x1c]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x1003f9b3
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1003f9a7
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1003f9a7
call fcn.10019540
mov dword [ebp - 0x1c], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x1003f99c
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x10097a44
jne 0x1003f998
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x48], eax
jmp 0x1003f9b3
mov ecx, edx
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [ebp - 0x48], eax
jmp 0x1003f9b3
push dword [edx - 0xc]
lea ecx, [ebp - 0x48]
push edx
call fcn.10019610
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
jne 0x1003fa09
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x40]
lea ecx, [edx - 0x10]
lea ebx, [esi - 0x10]
cmp ecx, ebx
je 0x1003fae2
cmp dword [ebx + 0xc], 0
jl 0x1003f9f5
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x1003f9f5
call fcn.10019540
mov ecx, ebx
mov esi, eax
call fcn.10014570
add esi, 0x10
mov dword [ebp - 0x40], esi
jmp 0x1003fae2
push dword [edx - 0xc]
lea ecx, [ebp - 0x40]
push edx
call fcn.10019610
mov esi, dword [ebp - 0x40]
jmp 0x1003fae2
push ecx
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.1003fcf0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.1003b260
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [eax]
mov esi, dword [ebp - 0x40]
lea ecx, [edx - 0x10]
lea ebx, [esi - 0x10]
cmp ecx, ebx
je 0x1003fa6e
cmp dword [ebx + 0xc], 0
jl 0x1003fa5f
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x1003fa5f
call fcn.10019540
mov ecx, ebx
mov esi, eax
call fcn.10014570
add esi, 0x10
mov dword [ebp - 0x40], esi
jmp 0x1003fa6e
push dword [edx - 0xc]
lea ecx, [ebp - 0x40]
push edx
call fcn.10019610
mov esi, dword [ebp - 0x40]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003faa8
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003faa4
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003faa8
mov ecx, edx
call ebx
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fae2
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003fade
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1003fae2
mov ecx, edx
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003fb04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1003fb2d
cmp eax, 3
jne 0x1003fb82
jmp 0x1003fb2d
test al, 0x10
je 0x1003fb20
mov ecx, esi
call fcn.1003f1f0
test eax, eax
je 0x1003fb82
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1003fb2d
jmp 0x1003fb82
lea eax, [ebp - 0x50]
push eax
call fcn.1003fc50
test eax, eax
je 0x1003fb82
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 4]
call fcn.1003fef0
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], esi
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
test esi, esi
je 0x1003fb63
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 8]
call fcn.1003fdd0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov dword [esi + 4], ebx
mov dword [esi], 0
inc dword [ecx + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x1003fb7d
mov dword [eax], esi
jmp 0x1003fb7f
mov dword [ecx], esi
mov dword [ecx + 4], esi
lea ecx, [ebp - 0x50]
call fcn.1002fbe0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1003fbc9
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x10097a44
jne 0x1003fbc5
mov eax, dword [edx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call ebx
jmp 0x1003fbcf
mov ecx, edx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x1003fc24
test edi, edi
je 0x1003fc24
mov eax, dword [edi + 0x10]
mov ecx, dword [edx + 0x18]
cmp eax, ecx
je 0x1003fc00
mov edi, eax
test edi, edi
je 0x1003fbfc
mov eax, dword [edi + 0xc]
cmp eax, ecx
je 0x1003fc1c
mov edi, eax
mov eax, dword [edi + 0xc]
cmp eax, ecx
jne 0x1003fbf1
jmp 0x1003fc1c
xor edi, edi
jmp 0x1003fc1c
mov eax, dword [edi + 0x14]
cmp eax, ecx
je 0x1003fc15
cmp edi, dword [eax + 0x10]
jne 0x1003fc15
mov edi, eax
mov eax, dword [eax + 0x14]
cmp eax, ecx
jne 0x1003fc07
xor edi, edi
cmp eax, ecx
cmovne edi, eax
test edi, edi
jne 0x1003f5fe
xor edx, edx
xor edi, edi
jmp 0x1003f5fe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8