Function at 0x100302a
Capabilities:
Check if file exists
Check os version
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov edi, eax
lea eax, [ebp - 0x1a4]
push eax
mov dword [ebp - 0x1a4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp + edi - 0x2a8]
mov cl, byte [eax - 1]
cmp cl, 0x5c
je 0x1003080
cmp cl, 0x2f
je 0x1003080
sub esi, edi
push esi
push 0x1001680
jmp 0x1003088
sub esi, edi
push esi
push 0x1001678
push eax
call fcn.010038a0
add esp, 0xc
xor ebx, ebx
xor eax, eax
mov cl, byte [ebp + eax - 0x2a8]
mov byte [ebp + eax - 0x4ec], cl
inc eax
cmp cl, bl
jne 0x1003095
lea edi, [ebp - 0x4ec]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10030af
mov esi, 0x100166c
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x3e8]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x4ec]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10032a4
xor eax, eax
mov cl, byte [ebp + eax - 0x2a8]
mov byte [ebp + eax - 0x110], cl
inc eax
cmp cl, bl
jne 0x10030e1
lea eax, [ebp - 0x3bc]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10030fc
lea edi, [ebp - 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x100310c
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.01002f40
test eax, eax
je 0x100327e
cmp dword [ebp - 0x1a0], 6
jb 0x10031dc
push 0x100165c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x1003178
push 0x1001644
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1003171
push ebx
push ebx
lea ecx, [ebp - 0x3bc]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10031dc
lea eax, [ebp - 0x3bc]
mov dword [ebp - 0x5f0], 0x20642d
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100319c
lea edi, [ebp - 0x5f0]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x10031ac
mov ecx, eax
shr ecx, 2
push ebx
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push ebx
push 1
push ebx
mov ecx, eax
push 1
lea eax, [ebp - 0x5f0]
push eax
and ecx, 3
push 0x1001638
rep movsb byte es:[edi], byte [esi]
call fcn.010024f8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100327e
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x110]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
jne 0x1003232
push ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push 0x400
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100323b
sub eax, edx
mov byte [ebp + eax - 0x113], 0x70
lea eax, [ebp - 0x110]
push eax
call esi
mov esi, eax
call edi
cmp esi, ebx
jne 0x100327e
push ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push 0x400
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x3e8]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10030df
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
jmp 0x10032a6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret