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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cf60
mov eax, dword fs:[0]
push eax
sub esp, 0x2f4
mov eax, dword [0x493014]
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
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x44]
movlpd qword [ebp - 0x2e8], xmm0
call fcn.00403ac0
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x44]
call fcn.004187c0
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x60]
movlpd qword [ebp - 0x88], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
movlpd qword [ebp - 0x68], xmm0
call fcn.00403aa0
mov byte [ebp - 4], 2
push 4
mov dword [ebp - 0x14], 0
call fcn.00434f50
add esp, 4
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 3
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x44]
push 0x481520
lea ecx, [ebp - 0x2c]
call fcn.0040bc40
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0041eaa0
mov bl, al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039b0
mov esi, dword [ebp - 0x14]
test bl, bl
je 0x415bf1
mov edi, dword [ebp - 0x68]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x415a0f
mov al, 1
jmp 0x415a11
xor al, al
test al, al
je 0x415a62
lea ecx, [ebp - 0x60]
call fcn.00403bb0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x415a62
mov ebx, dword [eax + 0x14]
mov edx, eax
cmp ebx, 8
jb 0x415a30
mov edx, dword [eax]
cmp word [edx], 0x2e
jne 0x415a62
cmp ecx, 1
je 0x415a4e
cmp ebx, 8
jb 0x415a42
mov eax, dword [eax]
cmp word [eax + 2], 0x2e
jne 0x415a62
cmp ecx, 2
jne 0x415a62
mov eax, dword [ebp - 0x2e8]
mov ebx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2dc], eax
jmp 0x415abc
or edi, 0
je 0x415a6b
mov al, 1
jmp 0x415a6d
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push eax
je 0x415a90
call fcn.00416340
add esp, 4
mov byte [ebp - 4], 6
mov ecx, eax
call fcn.004158f0
jmp 0x415aa8
call fcn.00416340
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.0041ede0
movzx eax, al
cdq
mov ebx, edx
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039b0
mov edi, dword [ebp - 0x2dc]
cmp dword [esi], 0xffffffff
je 0x415bfd
push 0x250
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.0044bf20
add esp, 0xc
lea eax, [ebp - 0x2d8]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x415bfd
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x2d8]
push eax
call fcn.0041e8e0
mov edi, dword [ebp - 0x68]
and edi, 0x10
mov eax, edi
or eax, 0
je 0x415b1c
mov al, 1
jmp 0x415b1e
xor al, al
test al, al
je 0x415b62
lea ecx, [ebp - 0x60]
call fcn.00403bb0
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x415b62
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x415b3b
mov edx, dword [eax]
cmp word [edx], 0x2e
jne 0x415b62
cmp ecx, 1
je 0x415abc
cmp dword [eax + 0x14], 8
jb 0x415b52
mov eax, dword [eax]
cmp word [eax + 2], 0x2e
jne 0x415b62
cmp ecx, 2
je 0x415abc
or edi, 0
je 0x415b6b
mov al, 1
jmp 0x415b6d
xor al, al
test al, al
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x60]
push eax
je 0x415bb5
lea ecx, [ebp - 0x300]
call fcn.00416340
add esp, 4
mov byte [ebp - 4], 8
mov ecx, eax
call fcn.004158f0
mov edi, dword [ebp - 0x2dc]
add edi, eax
mov dword [ebp - 0x2dc], edi
adc ebx, edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x300]
call fcn.004039b0
jmp 0x415ac2
lea ecx, [ebp - 0x2c]
call fcn.00416340
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.0041ede0
mov edi, dword [ebp - 0x2dc]
movzx eax, al
cdq
add edi, eax
mov dword [ebp - 0x2dc], edi
adc ebx, edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039b0
jmp 0x415ac2
mov ebx, dword [ebp - 0x2e4]
mov edi, dword [ebp - 0x2e8]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x415c15
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x415c15
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x415d3c
lea ecx, [ebp - 0x2c]
call fcn.00403aa0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0041f010
test al, al
je 0x415c5e
lea ecx, [ebp - 0x2c]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x415d30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039b0
lea ecx, [ebp - 0x44]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2dc], eax
cmp eax, 0xffffffff
jne 0x415cc9
lea ecx, [ebp - 0x2c]
call fcn.00403aa0
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0041f010
test al, al
je 0x415cb4
lea ecx, [ebp - 0x2c]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x2dc], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039b0
cmp dword [ebp - 0x2dc], 0xffffffff
je 0x415d42
xor edx, edx
lea ecx, [ebp - 0x44]
call fcn.0041ec80
lea ecx, [ebp - 0x44]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x415d3c
lea ecx, [ebp - 0x2c]
call fcn.00403aa0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0041f010
test al, al
je 0x415d14
lea ecx, [ebp - 0x2c]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x415d30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039b0
mov edx, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x44]
call fcn.0041ec80
jmp 0x415d42
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004039b0
add edi, 1
adc ebx, 0
mov byte [ebp - 4], 2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x415d5e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x415d5e
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.00434f80
add esp, 8
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004039b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004039b0
mov eax, edi
mov edx, ebx
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.00434f3f
mov esp, ebp
pop ebp
ret