Function at 0x100552a
Capabilities:
Check os version
Delete directory
Delete file
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa08
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb
pop ecx
push 0x14
mov esi, 0x10018bc
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov ebx, dword [ebp + 8]
mov esi, 0x1001868
lea edi, [ebp - 0x2cc]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xf
pop ecx
mov esi, 0x1001824
lea edi, [ebp - 0x278]
rep movsd dword es:[edi], dword [esi]
push 0x10017ec
mov dword [ebp - 0xa08], ebx
movsw word es:[edi], word [esi]
call fcn.0100517d
pop ecx
xor esi, esi
push esi
mov dword [ebx], esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, esi
mov dword [ebp - 0xa04], eax
jl 0x100586c
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x4d4]
push eax
push esi
push esi
push 0x26
push esi
mov word [ebp - 0x4d4], si
call edi
cmp eax, esi
mov dword [ebp - 0xa04], eax
jl 0x1005866
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x4d4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x100584c
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push 0x1a
push esi
mov word [ebp - 0x238], si
call edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
jl 0x100567a
mov eax, dword [0x1009320]
cmp eax, esi
jne 0x1005612
call fcn.010048a5
push 0x104
lea ecx, [ebp - 0x6dc]
push ecx
push 2
push eax
call ebx
test eax, eax
je 0x100566c
lea eax, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x100567a
lea eax, [ebp - 0x6dc]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x100567a
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.01005355
jmp 0x100567a
push 2
push 0x1001768
call fcn.0100517d
pop ecx
pop ecx
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push 2
push esi
mov word [ebp - 0x238], si
call edi
test eax, eax
jl 0x10056bb
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10056bb
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.01005355
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push 2
push esi
mov word [ebp - 0x238], si
call edi
test eax, eax
jl 0x1005866
push 0x118
lea eax, [ebp - 0x9fc]
push esi
push eax
mov word [ebp - 0x8e4], si
mov word [ebp - 0x6dc], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa00]
push eax
mov dword [ebp - 0xa00], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005837
cmp dword [ebp - 0x9fc], 6
mov eax, dword [0x1009320]
sbb edi, edi
add edi, 4
cmp eax, esi
jne 0x1005734
call fcn.010048a5
push 0x104
lea ecx, [ebp - 0x8e4]
push ecx
push edi
push eax
call ebx
test eax, eax
je 0x100582f
mov eax, dword [0x1009320]
cmp eax, esi
jne 0x100575a
call fcn.010048a5
push 0x104
lea ecx, [ebp - 0x6dc]
push ecx
xor esi, esi
inc esi
push esi
push eax
call ebx
test eax, eax
je 0x100582c
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x8e4]
push eax
lea eax, [ebp - 0x238]
push eax
call edi
test eax, eax
je 0x1005866
lea eax, [ebp - 0x6dc]
push eax
lea eax, [ebp - 0x238]
push eax
call edi
test eax, eax
je 0x1005866
lea eax, [ebp - 0x4d4]
push eax
call fcn.010076b2
test al, al
je 0x1005817
mov eax, dword [ebp - 0xa08]
mov dword [eax], esi
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1005866
lea eax, [ebp - 0x238]
push eax
push 0x1001720
call fcn.0100517d
pop ecx
pop ecx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1005866
lea eax, [ebp - 0x238]
push eax
push 0x10016d8
jmp 0x1005843
lea eax, [ebp - 0x4d4]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.01005355
jmp 0x1005866
push esi
jmp 0x1005830
push edi
push 0x1001658
jmp 0x1005843
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001610
call fcn.0100517d
pop ecx
pop ecx
jmp 0x1005866
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1005860
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0xa04], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa04]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005c74
leave
ret 4