Function at 0x54604c
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 0x546054
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.00405ec4
xor eax, eax
push ebp
push 0x54638b
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 0x54627f
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 9], 1
mov eax, 0x104
call fcn.00402fb0
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.00405c3c
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.0042db68
lea eax, [ebp - 0xb0]
mov edx, 0x5463a8
call fcn.00405d10
mov eax, dword [ebp - 0xb0]
mov dl, 1
call fcn.0042e3f4
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 0x546164
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.0040fdac
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
cdq
cmp edx, dword [esp + 4]
jne 0x54613d
cmp eax, dword [esp]
pop edx
pop eax
jae 0x546160
jmp 0x546141
pop edx
pop eax
jge 0x546160
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.0040fdac
mov dword [ebp - 0x14], eax
inc ebx
dec esi
jne 0x54610a
mov eax, dword [ebp - 0x10]
call fcn.00404ae4
lea eax, [ebp - 0xc4]
mov edx, dword [ebp - 0x18]
call fcn.00405c3c
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.0042db68
lea eax, [ebp - 0xc0]
mov edx, 0x5463bc
call fcn.00405d10
mov eax, dword [ebp - 0xc0]
call fcn.00545c50
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 0x18]
call fcn.00405c3c
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.0042db68
lea eax, [ebp - 0xc8]
mov edx, 0x5463bc
call fcn.00405d10
mov eax, dword [ebp - 0xc8]
call fcn.0040fdac
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
cdq
cmp edx, dword [esp + 4]
jne 0x5461f7
cmp eax, dword [esp]
pop edx
pop eax
jae 0x546203
jmp 0x5461fb
pop edx
pop eax
jge 0x546203
mov eax, dword [ebp - 8]
call fcn.00545f34
lea eax, [ebp - 0xd4]
mov edx, dword [ebp - 0x18]
call fcn.00405c3c
mov eax, dword [ebp - 0xd4]
lea edx, [ebp - 0xd0]
call fcn.0042db68
lea eax, [ebp - 0xd0]
mov edx, 0x5463bc
call fcn.00405d10
mov ebx, dword [ebp - 0xd0]
mov dword [ebp - 0xd8], ebx
mov eax, dword [ebp - 0xd8]
call fcn.00405ed4
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0x18]
call fcn.00402fcc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x544eb8]
call fcn.00541964
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 0x5462ef
mov byte [0x5d3e04], 0
cmp byte [ebp - 9], 0
je 0x54635a
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.004063e4
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x270]
mov edx, 0x66
call fcn.0054323c
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xa8], 6
jb 0x54635a
mov byte [0x5d3e04], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546392
lea eax, [ebp - 0xdc]
call fcn.0040624c
lea eax, [ebp - 0xd4]
mov edx, 0xa
call fcn.00405a68
lea eax, [ebp - 4]
call fcn.00405a44
ret