Function at 0x4097a0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6979
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x4e0214]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 3
mov dword [ebp - 0x2fc], edi
jbe 0x409b72
push 0x4d01c8
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004078b0
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
push 0x24c
lea edx, [ebp - 0x2f0]
push ebx
mov byte [ebp - 4], 1
push edx
mov dword [ebp - 0x2f4], ebx
call fcn.0047c5e0
mov eax, dword [ebp - 0xa0]
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0x8c], esi
jae 0x409843
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0x2f4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2f8], eax
cmp eax, 0xffffffff
jne 0x40989d
cmp dword [ebp - 0x1c], esi
jb 0x40986d
mov edx, dword [ebp - 0x30]
push edx
call fcn.004790ec
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
cmp dword [ebp - 0x8c], esi
jb 0x409b9f
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.004790ec
add esp, 4
jmp 0x409b9f
mov al, byte [ebp - 0x2f4]
test al, 0x10
je 0x409a18
mov ecx, 0x4d01d0
lea eax, [ebp - 0x2c8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4098dc
cmp dx, bx
je 0x4098d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4098dc
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4098b6
xor eax, eax
jmp 0x4098e1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x409b10
mov ecx, 0x4d01d4
lea eax, [ebp - 0x2c8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40991a
cmp dx, bx
je 0x409916
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40991a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4098f4
xor eax, eax
jmp 0x40991f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x409b10
xor edx, edx
lea eax, [ebp - 0x2c8]
mov word [ebp - 0x4c], dx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409940
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2c8]
lea esi, [ebp - 0x4c]
call fcn.00403870
push 0x4d0048
lea eax, [ebp - 0x84]
push edi
push eax
mov byte [ebp - 4], 2
call fcn.004078b0
add esp, 0xc
mov ecx, eax
lea edx, [ebp - 0x68]
push edx
mov eax, esi
mov byte [ebp - 4], 3
call fcn.00409fc0
add esp, 4
mov esi, 8
cmp dword [ebp - 0x70], esi
jb 0x4099a4
mov eax, dword [ebp - 0x84]
push eax
call fcn.004790ec
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], cx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x38], esi
jb 0x4099cc
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004790ec
add esp, 4
lea ecx, [ebp - 0x68]
xor eax, eax
push ecx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
call fcn.004097a0
mov eax, dword [ebp - 0x68]
add esp, 4
cmp dword [ebp - 0x54], esi
jae 0x4099f3
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], esi
jb 0x409b10
mov edx, dword [ebp - 0x68]
push edx
call fcn.004790ec
add esp, 4
jmp 0x409b10
test al, 6
jne 0x409b10
xor eax, eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409a40
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2c8]
lea esi, [ebp - 0x68]
call fcn.00403870
push 0x4d0048
lea ecx, [ebp - 0x4c]
push edi
push ecx
mov byte [ebp - 4], 7
call fcn.004078b0
add esp, 0xc
mov ecx, eax
lea edx, [ebp - 0x84]
push edx
mov eax, esi
mov byte [ebp - 4], 8
call fcn.00409fc0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.00401ca0
mov esi, 8
cmp dword [ebp - 0x70], esi
jb 0x409ab2
mov eax, dword [ebp - 0x84]
push eax
call fcn.004790ec
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], cx
cmp dword [ebp - 0x38], esi
jb 0x409ad7
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004790ec
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
cmp dword [ebp - 0x54], esi
jb 0x409af8
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004790ec
add esp, 4
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x409b03
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x2fc]
mov esi, dword [ebp - 0x2f8]
lea edx, [ebp - 0x2f4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40989d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
cmp dword [ebp - 0x1c], esi
jb 0x409b49
mov eax, dword [ebp - 0x30]
push eax
call fcn.004790ec
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp dword [ebp - 0x8c], esi
jb 0x409b77
mov edx, dword [ebp - 0xa0]
push edx
call fcn.004790ec
add esp, 4
jmp 0x409b77
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x409b80
mov eax, dword [edi]
jmp 0x409b82
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409b9f
cmp dword [edi + 0x14], esi
jb 0x409b96
mov eax, dword [edi]
jmp 0x409b98
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004790f7
mov esp, ebp
pop ebp
ret