Function at 0x5460cc
Capabilities:
Check os version
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1b
push 0
push 0
dec ecx
jne 0x5460d4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00405f18
xor eax, eax
push ebp
push 0x54640b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x270], edx
xor edx, edx
push ebp
push 0x5462ff
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 9], 1
mov eax, 0x104
call fcn.00402fc0
mov dword [ebp - 0x18], eax
push 0x104
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 0x18]
call fcn.00405c90
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.0042dbbc
lea eax, [ebp - 0xb0]
mov edx, 0x546428
call fcn.00405d64
mov eax, dword [ebp - 0xb0]
mov dl, 1
call fcn.0042e448
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
test esi, esi
jle 0x5461e4
mov ebx, 1
lea ecx, [ebp - 0xb8]
mov edx, ebx
dec edx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xb8]
call fcn.0040fe00
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
cdq
cmp edx, dword [esp + 4]
jne 0x5461bd
cmp eax, dword [esp]
pop edx
pop eax
jae 0x5461e0
jmp 0x5461c1
pop edx
pop eax
jge 0x5461e0
lea ecx, [ebp - 0xbc]
mov edx, ebx
dec edx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xbc]
call fcn.0040fe00
mov dword [ebp - 0x14], eax
inc ebx
dec esi
jne 0x54618a
mov eax, dword [ebp - 0x10]
call fcn.00404b38
lea eax, [ebp - 0xc4]
mov edx, dword [ebp - 0x18]
call fcn.00405c90
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.0042dbbc
lea eax, [ebp - 0xc0]
mov edx, 0x54643c
call fcn.00405d64
mov eax, dword [ebp - 0xc0]
call fcn.00545cd0
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 0x18]
call fcn.00405c90
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.0042dbbc
lea eax, [ebp - 0xc8]
mov edx, 0x54643c
call fcn.00405d64
mov eax, dword [ebp - 0xc8]
call fcn.0040fe00
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
cdq
cmp edx, dword [esp + 4]
jne 0x546277
cmp eax, dword [esp]
pop edx
pop eax
jae 0x546283
jmp 0x54627b
pop edx
pop eax
jge 0x546283
mov eax, dword [ebp - 8]
call fcn.00545fb4
lea eax, [ebp - 0xd4]
mov edx, dword [ebp - 0x18]
call fcn.00405c90
mov eax, dword [ebp - 0xd4]
lea edx, [ebp - 0xd0]
call fcn.0042dbbc
lea eax, [ebp - 0xd0]
mov edx, 0x54643c
call fcn.00405d64
mov ebx, dword [ebp - 0xd0]
mov dword [ebp - 0xd8], ebx
mov eax, dword [ebp - 0xd8]
call fcn.00405f28
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0x18]
call fcn.00402fdc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x544f38]
call fcn.005419e4
mov edx, dword [ebp - 8]
mov dword [edx + 0x270], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54636f
mov byte [0x5d3e08], 0
cmp byte [ebp - 9], 0
je 0x5463da
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x270]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
lea eax, [ebp - 0xdc]
mov edx, dword [ebp - 4]
call fcn.00406438
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x270]
mov edx, 0x66
call fcn.005432bc
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xa8], 6
jb 0x5463da
mov byte [0x5d3e08], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546412
lea eax, [ebp - 0xdc]
call fcn.004062a0
lea eax, [ebp - 0xd4]
mov edx, 0xa
call fcn.00405abc
lea eax, [ebp - 4]
call fcn.00405a98
ret