Function at 0x4ada50
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x6f4
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0
push esi
push edi
mov esi, edx
mov edi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
jne 0x4ada85
mov dword [edi], 2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ada74
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push 0
push str.Please_wait...
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test al, al
je 0x4adabe
mov dword [edi], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
lea esi, [esp + 0x2a0]
xor edi, edi
call fcn.00401f70
mov eax, dword [esp + 0x2a0]
cmp eax, 0xffffffff
je 0x4adb46
lea ebx, [ebx]
cmp word [esp + 0x2d0], 0x2e
jne 0x4adb09
mov cx, word [esp + 0x2d2]
test cx, cx
je 0x4adb0c
cmp cx, 0x2e
jne 0x4adb09
cmp word [esp + 0x2d4], 0
je 0x4adb0c
add edi, 1
lea ecx, [esp + 0x2a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4adb2d
mov eax, dword [esp + 0x2a0]
cmp eax, 0xffffffff
jne 0x4adae0
jmp 0x4adb46
mov edx, dword [esp + 0x2a0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x2a0], 0xffffffff
push 0
call fcn.0069c84d
add esp, 4
test edi, edi
mov dword [esp + 0x20], eax
jbe 0x4adca7
fldz
mov dword [esp + 0x24], edi
fstp qword [esp + 0x18]
fild dword [esp + 0x24]
jge 0x4adb72
fadd qword [0x7235b8]
fld1
mov eax, ebx
fdivrp st(1)
lea esi, [esp + 0x48]
fstp qword [esp + 0x28]
call fcn.00401f70
cmp dword [esp + 0x48], 0xffffffff
je 0x4adca7
mov ebx, dword [ebp + 0xc]
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
test al, al
jne 0x4adcd8
cmp word [esp + 0x78], 0x2e
jne 0x4adbcf
mov ax, word [esp + 0x7a]
test ax, ax
je 0x4adc88
cmp ax, 0x2e
jne 0x4adbcf
cmp word [esp + 0x7c], 0
je 0x4adc88
push 0x6bc0cc
lea eax, [esp + 0x7c]
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x500]
push ecx
call fcn.004ad3a0
mov edx, dword [esp + 0x4c]
shr edx, 4
test dl, 1
je 0x4adc36
fld qword [esp + 0x18]
mov dword [esp + 0x34], esi
fstp qword [esp + 0x38]
mov eax, ebx
fld qword [esp + 0x28]
lea esi, [esp + 0x4f8]
lea edx, [esp + 0x30]
fstp qword [esp + 0x40]
lea edi, [esp + 0x24]
mov dword [esp + 0x30], 0x6dbc50
call fcn.004ada10
cmp dword [eax], 1
je 0x4adcfd
mov esi, dword [esp + 0x14]
jmp 0x4adc6d
lea eax, [esp + 0x4f8]
call fcn.004970a0
mov ecx, dword [esp + 0x20]
sub ecx, ebx
cmp eax, ecx
jg 0x4adc6d
push 0x80
lea edx, [esp + 0x4fc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
fld qword [esp + 0x28]
mov edx, dword [esi]
fadd qword [esp + 0x18]
mov eax, dword [edx + 0x24]
sub esp, 8
mov ecx, esi
fst qword [esp + 0x20]
fstp qword [esp]
call eax
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4adcba
cmp dword [esp + 0x48], 0xffffffff
jne 0x4adb93
mov eax, dword [esp + 0x10]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x48]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x10]
mov dword [esi], 1
je 0x4adcf2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x30], 0x70c5e4
jmp 0x4adcd8