Function at 0x4bf160
Capabilities:
Check if file exists
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push eax
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bf1f5
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf1a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf1c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf1e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
push esi
mov ecx, 0x599458
call eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x258]
add eax, 0x10
push str._s________.log
push edx
mov dword [ebp - 0x258], eax
call fcn.0044ff30
mov ecx, dword [ebp - 0x258]
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x4bf360
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x228]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bf286
test dx, dx
je 0x4bf282
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bf286
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bf260
xor eax, eax
jmp 0x4bf28b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x4bf33c
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x228]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bf2c6
test dx, dx
je 0x4bf2c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bf2c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bf2a0
xor eax, eax
jmp 0x4bf2cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x4bf33c
push 0x560120
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x25c]
push eax
call fcn.0044f400
lea eax, [ebp - 0x228]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4bf2f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.0044a1a0
mov esi, dword [ebp - 0x25c]
push esi
call edi
test eax, eax
lea eax, [esi - 0x10]
setne bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bf33c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x260]
lea ecx, [ebp - 0x254]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4bf251
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
movzx esi, bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bf385
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf3a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf3c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf3e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret