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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45553d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x48f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], edx
mov edi, ecx
mov dword [ebp - 0x80], edi
xor bl, bl
xor esi, esi
mov byte [ebp - 0x79], bl
test edi, edi
jne 0x4158ee
mov esi, 0x57
jmp 0x4159c4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415901
lea esi, [eax + 3]
jmp 0x4159c4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41591d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x57
jmp 0x4159c4
shr eax, 4
and al, 1
je 0x4158e4
xor al, al
push edi
mov byte [ebp - 0x7a], al
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4159c4
push ecx
push edi
lea ecx, [ebp - 0x78]
call fcn.00415430
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x41595f
mov esi, eax
call fcn.004151f0
jmp 0x415d30
lea eax, [ebp - 0x88]
push eax
call fcn.00415130
mov ebx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x84], eax
nop dword [eax]
test eax, eax
jne 0x4159e2
test ebx, ebx
jne 0x4159ea
test esi, esi
jne 0x415ce0
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
test eax, eax
je 0x415cea
call fcn.004151f0
cmp byte [ebp - 0x7a], bl
jne 0x415cef
mov bl, byte [ebp - 0x79]
test bl, bl
mov eax, 0xbc2
cmovne esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fc58
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x415b40
mov eax, dword [ebx]
shr eax, 4
test al, 1
je 0x415b69
lea edi, [ebx + 0x2c]
test edi, edi
je 0x415a73
mov ecx, 0x479e18
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415a2b
test dx, dx
je 0x415a27
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415a2b
add eax, 4
add ecx, 4
test dx, dx
jne 0x415a05
xor eax, eax
jmp 0x415a30
sbb eax, eax
or eax, 1
test eax, eax
je 0x415b37
mov ecx, 0x479e1c
mov eax, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415a66
test dx, dx
je 0x415a62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415a66
add eax, 4
add ecx, 4
test dx, dx
jne 0x415a40
xor eax, eax
jmp 0x415a6b
sbb eax, eax
or eax, 1
test eax, eax
je 0x415b37
mov esi, dword [ebp - 0x80]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415a90
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.0040b340
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 0
je 0x415d3d
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.00405fb0
test al, al
je 0x415c9a
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x8c]
cmovae ecx, dword [ebp - 0x40]
call fcn.004158a0
mov esi, eax
test esi, esi
je 0x415af9
cmp esi, 0xbc2
jne 0x415af5
mov byte [ebp - 0x79], 1
xor esi, esi
jmp 0x415af9
mov byte [ebp - 0x7a], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x415b37
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415b2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e15
push edx
push ecx
call fcn.0043fc69
add esp, 8
mov edi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x84]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x84]
jne 0x415980
xor ebx, ebx
mov dword [ebp - 0x84], 0
xor eax, eax
jmp 0x415980
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b82
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.0040b340
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0
je 0x415dd7
lea edx, [ebx + 0x2c]
lea ecx, [ebp - 0x28]
call fcn.00405fb0
test al, al
je 0x415d7f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x8c]
cmovae ecx, dword [ebp - 0x28]
call fcn.004157f0
mov esi, eax
test esi, esi
je 0x415c43
cmp esi, 0xbc2
jne 0x415be8
mov byte [ebp - 0x79], 1
xor esi, esi
jmp 0x415bec
mov byte [ebp - 0x7a], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x415c2a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415c20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e1a
push edx
push ecx
call fcn.0043fc69
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x415b3a
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x415c2a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415c77
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e1a
push edx
push ecx
call fcn.0043fc69
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x415b3a
mov byte [ebp - 4], 0
mov esi, 0x7a
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x415cdd
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415cd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e15
push edx
push ecx
call fcn.0043fc69
add esp, 8
mov edi, dword [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.004151f0
mov ebx, dword [ebp - 0x8c]
test bl, 1
je 0x415d0b
mov ecx, edi
call fcn.00415fc0
mov esi, eax
test esi, esi
je 0x4159b7
shr ebx, 1
test bl, 1
je 0x415d2d
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x415e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov bl, byte [ebp - 0x79]
test esi, esi
jne 0x4159c4
jmp 0x4159ba
mov byte [ebp - 4], 0
mov esi, 0x7a
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x415cdd
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415cd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e15
jmp 0x415cd3
mov byte [ebp - 4], 0
mov esi, 0x7a
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x415dbe
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415db4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e1a
push edx
push ecx
call fcn.0043fc69
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x415ce0
mov byte [ebp - 4], 0
mov esi, 0x7a
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x415dbe
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415db4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415e1a
jmp 0x415db4
mov bl, 1
jmp 0x415d30
call fcn.0044316c
call fcn.0044316c
int3